-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
133 lines (133 loc) · 3.2 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
module.exports = {
purge: {
content: [
"./src/**/*.js",
"./src/**/*.jsx",
"./src/**/*.ts",
"./src/**/*.tsx",
],
options: {
whitelist: ["ml-3"], // ml-3 for toc depth
},
},
theme: {
extend: {
margin: {
"-72": "-18rem",
"-80": "-20rem",
"-84": "-21rem",
"-88": "-22rem",
"-96": "-24rem",
"-120": "-30rem",
},
fontFamily: {
sans: [
"Nunito",
'"Segoe UI"',
"BlinkMacSystemFont",
"Roboto",
'"Helvetica Neue"',
"Arial",
'"Noto Sans"',
"sans-serif",
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
],
body: [
"Rock Salt"
],
},
backgroundColor: {
accent: "var(--color-bg-accent)",
primary: "var(--color-bg-primary)",
secondary: "var(--color-bg-secondary)",
hover: {
accent: "var(--color-bg-accent-hover)",
},
},
textColor: {
accent: "var(--color-text-accent)",
primary: "var(--color-text-primary)",
secondary: "var(--color-text-secondary)",
tertiary: "var(--color-text-tertiary)",
on: {
accent: "var(--color-text-on-accent)",
},
fill: {
primary: "var(--color-fill-primary)",
secondary: "var(--color-fill-secondary)",
},
},
divideColor: {
subtle: "var(--color-bg-secondary)",
},
borderColor: {
accent: "var(--color-text-accent)",
},
letterSpacing: {
widestest: "0.2em",
},
opacity: {
90: ".9",
},
},
typography: {
default: {
css: {
color: "var(--color-text-tertiary)",
a: {
color: "var(--color-text-tertiary)",
"&:hover": {
color: "var(--color-text-accent)",
},
},
h1: {
color: "var(--color-text-primary)",
},
h2: {
color: "var(--color-text-accent)",
},
h3: {
color: "var(--color-text-accent)",
},
h4: {
color: "var(--color-text-accent)",
},
blockquote: {
color: "var(--color-text-tertiary)",
},
strong: {
color: "var(--color-text-tertiary)",
},
blockquote: {
borderLeftWidth: "0.25rem",
borderLeftColor: "var(--color-text-accent)",
},
"blockquote p:first-of-type::before": {
content: "",
},
"blockquote p:last-of-type::after": {
content: "",
},
code: {
color: "var(--color-text-tertiary)",
fontWeight: "500",
},
"code::before": {
content: "",
},
"code::after": {
content: "",
},
},
},
},
},
variants: {
textColor: ["responsive", "hover", "focus", "group-hover"],
borderWidth: ["responsive", "hover", "focus"],
},
plugins: [require("@tailwindcss/typography")],
}