generated from mattjennings/sveltekit-blog-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
97 lines (95 loc) · 2.6 KB
/
tailwind.config.cjs
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
91
92
93
94
95
96
97
module.exports = {
darkMode: 'class',
content: ['./src/**/*.{html,js,svelte,ts,md,svx}'],
theme: {
extend: {
typography: ({ theme }) => {
return {
DEFAULT: {
css: {
pre: {
code: {
padding: '0 !important',
fontSize: theme('fontSize.base')[0]
}
},
code: {
borderRadius: theme('borderRadius.md'),
paddingTop: theme('spacing.1'),
paddingBottom: theme('spacing.1'),
paddingLeft: theme('spacing.1'),
paddingRight: theme('spacing.1'),
fontFamily: 'inherit !important',
fontWeight: '500 !important',
color: theme('colors.slate.900'),
backgroundColor: theme('colors.slate.300')
},
'code::before': {
content: '""'
},
'code::after': {
content: '""'
},
hr: {
borderColor: theme('colors.slate.300')
},
ul: {
marginTop: '0 !important',
marginBottom: '0 !important'
},
li: {
marginTop: '0 !important',
marginBottom: '0 !important'
},
img: {
marginLeft: 'auto',
marginRight: 'auto'
},
'h1,h2,h3,h4,h5,h6': {
a: {
color: 'inherit',
textDecoration: 'none'
}
}
}
},
sm: {
css: {
pre: {
code: {
fontSize: theme('fontSize.xs')[0]
}
}
}
},
lg: {
css: {
h1: {
fontSize: theme('fontSize.4xl')[0]
}
}
},
invert: {
css: {
hr: {
borderColor: theme('colors.slate.700')
},
code: {
color: theme('colors.slate.300'),
backgroundColor: theme('colors.slate.700')
},
'a code': {
color: theme('colors.white')
},
'pre, pre code': {
color: theme('colors.slate.200'),
backgroundColor: theme('colors.slate.800')
}
}
}
}
}
}
},
plugins: [require('@tailwindcss/typography')]
}