-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
57 lines (56 loc) · 1.26 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
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
content: ["./**/*.{html,njk,md}"],
theme: {
extend: {
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.gray.900'),
maxWidth: '65ch',
img: {
borderRadius: '6px',
},
h1: {
fontWeight: '800',
},
h2: {
fontWeight: '700',
},
h3: {
fontWeight: '600',
},
'h4,h5,h6': {
fontWeight: '500',
},
a: {
color: theme('colors.blue.600'),
'&:hover': {
color: theme('colors.blue.800'),
},
},
},
},
lg: {
css: {
h1: {
fontSize: theme('fontSize.3xl')[0],
},
h2: {
fontSize: theme('fontSize.2xl')[0],
},
h3: {
fontSize: theme('fontSize.xl')[0],
},
},
},
}),
},
},
plugins: [
require('@tailwindcss/typography'),
],
}