forked from EvanNotFound/hexo-theme-redefine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
118 lines (118 loc) · 4.79 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
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: "class",
content: ["source/**/*.js", "layout/**/*.ejs", "scripts/**/*.js"],
safelist: ["justify-center", "flex-row-reverse", "flex-row"],
theme: {
extend: {
spacing: {
unit: "38px",
},
margin: {
"spacing-unit": "38px",
},
maxWidth: {
content: "1000px", // You might want to adjust this value based on your use case
"has-toc-content": "120%",
},
zIndex: {
1: 1001,
2: 1002,
3: 1003,
4: 1004,
5: 1005,
6: 1006,
7: 1007,
8: 1008,
9: 1009,
},
borderRadius: {
none: "0px",
xsmall: "4px",
small: "9px",
medium: "14px",
large: "18px",
xlarge: "24px",
xxlarge: "48px",
},
fontFamily: {
// chinese: ["Noto Sans SC", "sans-serif"],
english: ["Geist Variable", "sans-serif"],
default: ["Geist Variable", "system-ui", "sans-serif"],
},
fontSize: {
default: "16px", // You might want to adjust this value based on your use case
// Add more font sizes if needed
},
lineHeight: {
default: "1.5", // You might want to adjust this value based on your use case
// Add more line heights if needed
},
colors: {
primary: "var(--primary-color)",
"nav-color-1": "var(--nav-color-1)",
"nav-color-2": "var(--nav-color-2)",
"nav-color-bg": "var(--nav-color-bg)",
// Define your other colors here
"background-color": "var(--background-color)",
"background-color-transparent": "var(--background-color-transparent)",
"background-color-transparent-15":
"var(--background-color-transparent-15)",
"background-color-transparent-40":
"var(--background-color-transparent-40)",
"background-color-transparent-80":
"var(--background-color-transparent-80)",
"second-background-color": "var(--second-background-color)",
"third-background-color": "var(--third-background-color)",
"third-background-color-transparent":
"var(--third-background-color-transparent)",
"first-text-color": "var(--first-text-color)",
"second-text-color": "var(--second-text-color)",
"third-text-color": "var(--third-text-color)",
"fourth-text-color": "var(--fourth-text-color)",
"default-text-color": "var(--default-text-color)",
"invert-text-color": "var(--invert-text-color)",
"border-color": "var(--border-color)",
"selection-color": "var(--selection-color)",
"shadow-color-1": "var(--shadow-color-1)",
"shadow-color-2": "var(--shadow-color-2)",
"shadow-hover-color": "var(--shadow-hover-color)",
"scrollbar-color": "var(--scrollbar-color)",
"scrollbar-color-hover": "var(--scrollbar-color-hover)",
"scroll-bar-bg-color": "var(--scroll-bar-bg-color)",
"link-color": "var(--link-color)",
"copyright-info-color": "var(--copyright-info-color)",
"avatar-background-color": "var(--avatar-background-color)",
"pjax-progress-bar-color": "var(--pjax-progress-bar-color)",
"archive-timeline-last-child-color":
"var(--archive-timeline-last-child-color)",
"note-blue-title-bg": "var(--note-blue-title-bg)",
"note-red-title-bg": "var(--note-red-title-bg)",
"note-cyan-title-bg": "var(--note-cyan-title-bg)",
"note-green-title-bg": "var(--note-green-title-bg)",
"note-yellow-title-bg": "var(--note-yellow-title-bg)",
"note-gray-title-bg": "var(--note-gray-title-bg)",
"note-type-title-bg": "var(--note-type-title-bg)",
"note-black-title-bg": "var(--note-black-title-bg)",
"note-purple-title-bg": "var(--note-purple-title-bg)",
"home-banner-img": "var(--home-banner-img)",
"home-banner-text-color": "var(--home-banner-text-color)",
"home-banner-icons-container-border-color":
"var(--home-banner-icons-container-border-color)",
"home-banner-icons-container-background-color":
"var(--home-banner-icons-container-background-color)",
},
boxShadow: {
redefine:
"0px 6px 24px 0px var(--shadow-color-2), 0px 0px 0px 1px var(--shadow-color-1)",
"redefine-hover":
"0px 6px 24px 0px var(--shadow-color-2), 0px 0px 0px 1px var(--shadow-color-1), 0px 0px 0px 1px inset var(--shadow-color-1)",
"redefine-flat":
"0px 1px 4px 0px var(--shadow-color-2), 0px 0px 0px 1px var(--shadow-color-1)",
"redefine-flat-hover":
"0px 1px 4px 0px var(--shadow-color-2), 0px 0px 0px 1px var(--shadow-color-1), 0px 0px 0px 1px inset var(--shadow-color-1)",
},
},
},
plugins: [],
};