-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
53 lines (51 loc) · 1.21 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
const { fontFamily } = require('tailwindcss/defaultTheme');
module.exports = {
content: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}', './layouts/**/*.{js,ts,jsx,tsx}'],
darkMode: 'class',
theme: {
fontFamily: {
sans: ['Inter', ...fontFamily.sans],
mono: ['IBM Plex Mono', ...fontFamily.mono],
},
extend: {
colors: {
light: '#ffffff',
dark: '#000000',
},
animation: {
loader: 'loader 0.6s infinite alternate',
},
keyframes: {
loader: {
to: {
opacity: 0.1,
transform: 'translate3d(0, -1rem, 0)',
},
},
},
typography: (theme) => ({
default: {
css: {
color: theme('colors.gray.700'),
a: {
color: theme('colors.blue.500'),
},
},
},
dark: {
css: {
color: theme('colors.neutral.300'),
a: {
color: theme('colors.blue.500'),
},
},
},
}),
},
},
variants: {
typography: ['dark'],
transform: ['group-hover', 'hover'],
},
plugins: [require('@tailwindcss/typography')],
};