-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
60 lines (59 loc) · 1.5 KB
/
tailwind.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
const plugin = require('tailwindcss/plugin')
module.exports = {
mode: 'jit',
content: ['./app/**/*.{js,ts,jsx,tsx}', './src/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'], // remove unused styles in production
darkMode: 'media', // or 'media' or 'class'
theme: {
extend: {
colors: {
livable: '#002c24',
},
fontFamily: {
// serif: ['var(--eb_garamond)'],
serif: ['var(--sometimes)'],
mono: ['var(--ysabeau)'],
zh: ['var(--noto_serif_tc)'],
},
width: {
100: '25rem',
},
gridAutoRows: {
'1fr': 'minmax(0, 1fr)',
},
gridTemplateColumns: ({ theme }) => ({
'background-split': `1fr
${theme('width.96')}
calc(
${theme('maxWidth.7xl')} - ${theme('width.96')} - ${theme('padding.8')}
)
1fr`,
}),
keyframes: {
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
fadeOut: {
'0%': { opacity: '1' },
'100%': { opacity: '0' },
},
},
animation: {
fadeIn: 'fadeIn .5s ease-in-out ',
fadeOut: 'fadeOut .8s ease-in-out ',
},
},
},
variants: {
extend: {},
},
plugins: [
plugin(function ({ addBase, theme }) {
addBase({
h1: { fontSize: theme('fontSize.2xl') },
h2: { fontSize: theme('fontSize.xl') },
h3: { fontSize: theme('fontSize.lg') },
})
}),
],
}