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
|
const theme = require("tailwindcss/defaultTheme");
module.exports = {
important: true,
purge: ["layouts/**/*.html"],
darkMode: "class", // or 'media' or 'class'
theme: {
extend: {
backgroundColor: (theme) => ({
dark1: "#202124",
dark2: "#2a2b2e",
dark3: "#3c4043",
}),
typography: (theme) => ({
DEFAULT: {
css: {
a: {
color: theme(`colors.blue.700`),
textDecoration: "none",
"&:hover": {
color: theme(`colors.blue.900`),
textDecoration: "underline",
},
},
p: {
marginBottom: "0em",
lineHeight: "1.5em",
marginTop: "0.25em",
},
h2: {
marginBottom: "1em",
marginTop: "0",
},
},
},
dark: {
css: {
color: theme(`colors.gray.200`),
p: { color: theme(`colors.gray.200`) },
h1: { color: theme(`colors.gray.200`) },
h2: { color: theme(`colors.gray.200`) },
h3: { color: theme(`colors.gray.200`) },
h4: { color: theme(`colors.gray.200`) },
h5: { color: theme(`colors.gray.200`) },
h6: { color: theme(`colors.gray.200`) },
code: { color: theme(`colors.gray.200`) },
strong: { color: theme(`colors.gray.200`) },
td: { color: theme(`colors.gray.200`) },
blockquote: { color: theme(`colors.gray.200`) },
a: {
color: theme(`colors.yellow.500`),
"&:hover": { color: theme(`colors.yellow.300`) },
},
},
},
}),
},
},
variants: { typography: ["dark"], extend: {} },
plugins: [require("@tailwindcss/typography")],
};
|