-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathtailwind.config.js
More file actions
149 lines (148 loc) · 3.77 KB
/
Copy pathtailwind.config.js
File metadata and controls
149 lines (148 loc) · 3.77 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: "class",
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
important: true,
theme: {
extend: {
colors: {
head: "#DDD",
body: "#A2A2A2",
orange: "#F09050",
grey100: "#D8D8D8",
grey300: "#7A7A7A",
shuttle: {
orange: "#FC540C",
yellow: "#FFD76F",
cyan: "#38D4E9",
},
grey500: "#E0E0E0",
grey600: "#A2A2A2",
grey700: "#FFFFFF4D",
grey800: "#000000CC",
},
fontFamily: {
gradual: "BwGradual, sans-serif",
mono: "Fira Mono, sans-serif",
atkinson: "Atkinson, sans-serif",
},
borderRadius: {
"2.5xl": "1.5rem",
"4xl": "2rem",
button: "0.875rem",
},
lineHeight: {
72: "72px",
64: "64px",
52: "52px",
48: "48px",
},
fontSize: {
4.5: "2.5rem",
6.5: "4rem",
40: "40px",
56: "56px",
64: "64px",
},
letterSpacing: {
1: "0.01em", // 1%
},
gridTemplateColumns: {
"50/50": "50% 50%",
},
typography: ({ theme }) => {
const tocCSS = {
ul: {
"list-style-type": "none",
"padding-left": 0,
margin: 0,
li: {
"padding-left": 0,
marginTop: "0.375rem",
marginBottom: "0.375rem",
},
a: {
display: "block",
"text-decoration": "none",
fontSize: "0.875rem",
fontWeight: "400",
color: "#525151",
transition: "all 0.5s ease-in-out",
position: "relative",
left: 0,
"&:hover": {
color: "#000000",
left: "1rem",
},
"font-weight": "400",
},
ul: {
"list-style-type": "none",
li: {
marginTop: "0.375rem",
marginBottom: "0.375rem",
"padding-left": "0 !important",
"margin-left": "0.75rem",
},
a: {
fontWeight: "200",
color: "#525151",
"&:hover": {
color: "#000000",
},
},
},
},
};
return {
toc: {
css: tocCSS,
},
"dark-toc": {
css: {
...tocCSS,
ul: {
...tocCSS.ul,
a: {
...tocCSS.ul.a,
color: "#C2C2C280",
"&:hover": {
...tocCSS.ul.a["&:hover"],
color: "#C2C2C2",
},
},
ul: {
...tocCSS.ul.ul,
a: {
...tocCSS.ul.ul.a,
color: "#C2C2C280",
"&:hover": {
...tocCSS.ul.ul.a["&:hover"],
color: "#C2C2C2",
},
},
},
},
},
},
};
},
backgroundImage: {
"gradient-1":
"linear-gradient(73deg, #FC540C -7.95%, rgba(255, 215, 111, 0.72) 45.94%, #38D4E9 116.73%)",
"gradient-2":
"linear-gradient(70deg, #FC540C 34.41%, rgba(255, 215, 111, 0.72) 93.53%, #38D4E9 118.82%)",
"gradient-3": "linear-gradient(to right, #FC540C 0%, #FFD76F 100%)",
},
},
},
plugins: [
require("@tailwindcss/typography"),
function ({ addVariant }) {
addVariant("children", "& > *");
},
],
};