-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathtailwind.config.js
128 lines (127 loc) · 3.25 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
/** @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",
},
fontFamily: {
gradual: "BwGradual, sans-serif",
mono: "Fira Mono, sans-serif",
atkinson: "Atkinson, sans-serif",
},
borderRadius: {
"2.5xl": "1.5rem",
"4xl": "2rem",
button: "0.875rem",
},
fontSize: {
4.5: "2.5rem",
6.5: "4rem",
},
screens: {
desktop: "1440px",
},
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%)",
},
},
},
plugins: [
require("@tailwindcss/typography"),
function ({ addVariant }) {
addVariant("children", "& > *");
},
],
};