-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
50 lines (48 loc) · 1.08 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
const disabledCss = {
'code::before': false,
'code::after': false,
'blockquote p:first-of-type::before': false,
'blockquote p:last-of-type::after': false,
pre: false,
code: false,
'pre code': false,
'code::before': false,
'code::after': false,
};
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: ['./src/**/*.{js,ts,jsx,tsx}', './articles/*.mdx'],
theme: {
extend: {
typography: (theme) => ({
dark: {
css: {
// color: theme('colors.white'),
color: theme('red.500'),
...disabledCss,
},
},
DEFAULT: {
css: {
...disabledCss,
h1: {
'font-weight': 'bold',
},
},
},
sm: { css: disabledCss },
lg: { css: disabledCss },
xl: { css: disabledCss },
'2xl': { css: disabledCss },
}),
borderWidth: {
1: '1px',
},
},
},
plugins: [require('@tailwindcss/typography')],
variants: {
typography: ['dark'],
},
};