-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtailwind.config.js
More file actions
118 lines (117 loc) · 3.09 KB
/
tailwind.config.js
File metadata and controls
118 lines (117 loc) · 3.09 KB
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
117
118
const { screens, fontFamily } = require("tailwindcss/defaultTheme");
module.exports = {
important: true,
darkMode: "class",
content: ["./pages/**/*.{js,jsx}", "./components/**/*.{js,jsx}"],
theme: {
extend: {
backgroundColor: {
dark: "#1C1D25",
light: "#FFFFF5"
},
colors: {
dark: "#1C1D25",
light: "#FFFFF5"
},
fontFamily: {
sans: ["IBM Plex Sans", ...fontFamily.sans]
},
screens: {
...screens,
big: "850px"
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme("colors.dark"),
a: {
color: theme("colors.dark"),
"&:hover": {
color: "rgba(28,29,37,0.8)"
}
},
blockquote: {
borderLeftColor: "rgba(28,29,37,0.75)",
color: theme("colors.dark")
},
"h2,h3,h4": {
color: theme("colors.dark")
},
ol: {
li: {
color: theme("colors.dark"),
"&::marker": {
color: "rgba(28,29,37,0.85)"
}
}
},
ul: {
li: {
color: theme("colors.dark"),
"&::marker": {
color: "rgba(28,29,37,0.85)"
}
}
},
strong: { color: theme("colors.dark") },
// disabled
"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
}
},
dark: {
css: {
color: theme("colors.light"),
a: {
color: theme("colors.light"),
"&:hover": {
color: "rgba(255,255,245,0.8)"
}
},
blockquote: {
borderLeftColor: "rgba(255,255,245,0.75)",
color: theme("colors.light")
},
"h2,h3,h4": {
color: theme("colors.light")
},
ol: {
li: {
color: theme("colors.light"),
"&::marker": {
color: "rgba(255,255,245,0.85)"
}
}
},
ul: {
li: {
color: theme("colors.light"),
"&::marker": {
color: "rgba(255,255,245,0.85)"
}
}
},
strong: { color: theme("colors.light") },
// disabled
"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
}
}
})
}
},
variants: {
typography: ["dark"]
},
plugins: [require("@tailwindcss/typography")]
};