-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtailwind.config.js
58 lines (56 loc) · 1.65 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 SourceHanSerif = "source-han-serif-sc"
const SourceHanSans = "source-han-sans-simplified-c"
const colors = require("tailwindcss/colors")
const monoFonts = (fontName) => `"${fontName}", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;`
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
darkMode: "class",
theme: {
colors: {
primary: "var(--primary)",
body: "var(--body)",
caption: "var(--caption)",
gray: colors.gray,
},
fontFamily: {
"serif": `"source-serif-4", "LXGW WenKai Lite", ${SourceHanSerif}, "Georgia", "serif"`,
"subtitle": `"Zilla Slab", "Georgia", "serif"`,
"display": `"Roboto Slab", ${SourceHanSans}, "sans-serif"`,
"mono": monoFonts("JetBrains Mono"),
},
extend: {
transitionProperty: {
colors: "color, background-color",
},
typography: (theme) => ({
DEFAULT: {
css: {
color: "var(--body)",
maxWidth: null,
"h1, h2, h3, h4, h5": {
color: "var(--body)",
},
a: {
color: "var(--primary)",
textDecoration: "none",
},
"code": null,
"code::before": null,
"code::after": null,
"blockquote p:first-of-type::before": null,
"blockquote p:last-of-type::after": null,
"hr": null,
},
},
dark: {
css: {
strong: {
color: colors.coolGray["50"],
},
},
},
}),
},
},
plugins: [require("@tailwindcss/typography")],
}