-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
90 lines (89 loc) · 2.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
const plugin = require('tailwindcss/plugin');
module.exports = {
mode: 'jit',
content: ['./app/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
darkMode: 'class',
theme: {
fontFamily: {
sans: ['var(--font-inter)'],
serif: ['var(--font-lora)']
},
typography: theme => ({
DEFAULT: {
css: {
color: theme('colors.gray.700'),
a: {
color: theme('colors.pink.600'),
'&:hover': {
color: theme('colors.pink.700')
}
},
'h2,h3,h4': {
'margin-top': theme('spacing.6'),
'margin-bottom': theme('spacing.3'),
fontWeight: theme('fontWeight.semibold')
},
h3: {
'font-size': theme('fontSize.xl')
},
p: {
'margin-bottom': theme('spacing.5')
},
pre: {
backgroundColor: 'rgb(40, 44, 52)',
borderRadius: theme('borderRadius.lg'),
padding: theme('padding.4'),
'margin-top': theme('margin.6'),
'margin-bottom': theme('margin.6'),
fontSize: theme('fontSize.sm')
}
}
},
dark: {
css: {
color: theme('colors.gray.200'),
a: {
color: theme('colors.pink.400'),
'&:hover': {
color: theme('colors.pink.600')
}
},
blockquote: {
borderLeftColor: theme('colors.gray.700'),
color: theme('colors.gray.300')
},
'h2,h3,h4,p': {
color: theme('colors.gray.100')
}
}
}
}),
container: theme => ({
center: true,
padding: theme('spacing.4'),
screens: {
sm: '100%',
md: '100%',
lg: '100%',
xl: '720px'
}
})
},
variants: {
typography: ['dark']
},
plugins: [
require('@tailwindcss/typography'),
plugin(function ({ addUtilities }) {
addUtilities({
'.no-scrollbar::-webkit-scrollbar': {
display: 'none'
},
'.no-scrollbar': {
'-ms-overflow-style': 'none',
'scrollbar-width': 'none'
}
});
})
]
};