-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.ts
117 lines (115 loc) · 2.84 KB
/
tailwind.config.ts
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import type { Config } from 'tailwindcss'
import colors from 'tailwindcss/colors'
import defaultTheme from 'tailwindcss/defaultTheme';
export default {
theme: {
fontFamily: {
serif: [
'"Source Serif 4"',
'IBM Plex Sans Thai Looped',
'"Adjusted Georgia Fallback"',
...defaultTheme.fontFamily.serif,
]
},
extend: {
content: {
external: 'url(/images/icons/external.svg)',
},
typography: {
DEFAULT: {
css: {
maxWidth: '700px',
a: {
'&:hover': {
color: colors.green[600],
}
},
color: colors.slate[900],
code: {
backgroundColor: colors.slate[200],
padding: '3px 4px',
borderRadius: '3px',
fontWeight: 'normal',
},
'code::before': {
content: ''
},
'code::after': {
content: ''
},
blockquote: {
backgroundColor: colors.slate[100],
fontWeight: 'normal',
padding: '0.1rem 2rem'
},
hr: {
width: '40%',
border: '0',
height: '6px',
marginTop: '4rem',
marginBottom: '4rem',
backgroundColor: colors.slate[800]
},
li: {
marginTop: '0',
marginBottom: '0.5rem'
},
p: {
marginTop: '0.75rem',
marginBottom: '0.75rem'
},
img: {
marginBottom: '0.75rem'
},
'ul ul, ul ol, ol ul, ol ol': {
marginTop: 0,
marginBottom: 0
}
},
},
lg: {
css: {
li: {
marginTop: '0',
marginBottom: '0'
},
hr: {
width: '30%',
marginTop: '4rem',
marginBottom: '4rem'
},
}
},
invert: {
css: {
a: {
color: colors.yellow[300],
textDecoration: 'none',
'&:hover': {
color: colors.yellow[500],
textDecoration: 'underline',
}
},
code: {
backgroundColor: 'transparent',
color: colors.lime[300],
},
hr: {
backgroundColor: colors.slate[100]
},
blockquote: {
backgroundColor: colors.slate[800],
},
}
},
},
}
},
content: [
'./src/**/*.{astro,js,jsx,svelte,ts,tsx,vue,md,mdx,mdoc}'
],
plugins: [
require('@tailwindcss/typography')
],
darkMode: 'selector'
} satisfies Config