-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
118 lines (108 loc) · 3.98 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
import variablePlugin from "@mertasan/tailwindcss-variables";
import colorVariable from "@mertasan/tailwindcss-variables/colorVariable";
/** @type {import('tailwindcss').Config} */
export default {
darkMode: "class",
content: ["src/**/*.tsx"],
theme: {
variables: {
DEFAULT: {
colors: {
seje: {
body: "#fff",
text: "#000",
comment: "#818181",
link: "#616161",
border: "#ddd",
scrollbar: "#616161",
},
shiki: {
fg: "#383a42", // editor.foreground
bg: "#fafafa", // editor.background
highlight: "#e5e5e6", // editor.selectionBackground
error: "#e51400", // editorError.foreground
warning: "#bf8803", // editorWarning.foreground
insert: "#00809b", // diffEditor.insertedTextBackground
remove: "#ff0000", // diffEditor.removedTextBackground
},
},
},
},
darkVariables: {
DEFAULT: {
colors: {
seje: {
body: "#2f2f2f",
text: "#fff",
link: "#e5e5e5",
border: "#616161",
scrollbar: "#ddd",
},
shiki: {
fg: "#abb2bf", // editor.foreground
bg: "#282c34", // editor.background
highlight: "#3e4451", // editor.selectionBackground
error: "#f14c4c", // editorError.foreground
warning: "#cca700", // editorWarning.foreground
insert: "#00809b", // diffEditor.insertedTextBackground
remove: "#ff0000", // diffEditor.removedTextBackground
},
},
},
},
colors: {
seje: {
body: colorVariable("--colors-seje-body", true),
text: colorVariable("--colors-seje-text", true),
comment: colorVariable("--colors-seje-comment", true),
link: colorVariable("--colors-seje-link", true),
border: colorVariable("--colors-seje-border", true),
scrollbar: colorVariable("--colors-seje-scrollbar", true),
100: "#fff",
400: "#ddd",
500: "#818181",
600: "#616161",
800: "#2f2f2f",
900: "#000",
},
shiki: {
fg: colorVariable("--colors-shiki-fg", true),
bg: colorVariable("--colors-shiki-bg", true),
highlight: colorVariable("--colors-shiki-highlight", true),
error: colorVariable("--colors-shiki-error", true),
warning: colorVariable("--colors-shiki-warning", true),
insert: colorVariable("--colors-shiki-insert", true),
remove: colorVariable("--colors-shiki-remove", true),
},
},
fontFamily: {
serif: [
"Source Han Serif TC",
"Source Han Serif SC",
"Source Han Serif",
"Noto Serif CJK TC",
"Noto Serif CJK SC",
"Noto Serif CJK",
"Noto Serif TC",
"Noto Serif SC",
"Noto Serif",
"serif",
],
mono: ["monospace"],
},
extend: {
minHeight: {
half: "50%",
},
minWidth: {
half: "50%",
},
},
},
plugins: [
variablePlugin({
colorVariables: true,
forceRGB: true,
}),
],
};