-
Notifications
You must be signed in to change notification settings - Fork 6
/
tailwind.config.js
85 lines (74 loc) · 2.34 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
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("tailwindcss/colors");
/** @type {import("tailwindcss/tailwind-config").TailwindConfig} */
module.exports = {
mode: "jit",
darkMode: "class",
content: ["./src/pages/**/*.{js,ts,jsx,tsx}", "./src/components/**/*.{js,ts,jsx,tsx}"],
theme: {
screens: {
xs: "475px",
...defaultTheme.screens,
},
extend: {
textColor: {
normal: "var(--colors-text-normal)",
subtle: "var(--colors-text-subtle)",
muted: "var(--colors-text-muted)",
"bg-accent": "var(--colors-bg-accent)",
"border-active": "var(--colors-border-active)",
"border-active2": "var(--colors-border-active2)",
},
backgroundColor: {
normal: "var(--colors-bg-normal)",
accent: "var(--colors-bg-accent)",
accent2: "var(--colors-bg-accent2)",
},
borderColor: {
normal: "var(--colors-border-normal)",
active: "var(--colors-border-active)",
active2: "var(--colors-border-active2)",
"bg-accent2": "var(--colors-bg-accent2)",
},
divideColor: {
normal: "var(--colors-border-normal)",
},
placeholderColor: {
"text-muted": "var(--colors-text-muted)",
},
colors: {
// success/error
success: "var(--colors-success)",
error: "var(--colors-error)",
// links
"link-normal": "var(--colors-link-normal)",
"link-secondary": "var(--colors-link-secondary)",
// buttons
"btn-normal-bg": "var(--colors-btn-normal-bg)",
"btn-normal-text": "var(--colors-btn-normal-text)",
// select
"select-active": "var(--colors-select-active)",
// tree
"tree-active": "var(--colors-tree-active)",
// badge
"badge-normal-bg": "var(--colors-badge-normal-bg)",
"badge-normal-text": "var(--colors-badge-normal-text)",
"badge-outlined-bg": "var(--colors-badge-outlined-bg)",
"badge-outlined-text": "var(--colors-badge-outlined-text)",
// inline code
"code-normal-bg": "var(--colors-code-normal-bg)",
"code-normal-text": "var(--colors-code-normal-text)",
// heatmap levels
"heat-level1": "var(--colors-heat-level1)",
"heat-level2": "var(--colors-heat-level2)",
"heat-level3": "var(--colors-heat-level3)",
"heat-level4": "var(--colors-heat-level4)",
},
fontFamily: {
sans: ["var(--font-inter)", ...defaultTheme.fontFamily.sans],
},
},
},
variants: {},
plugins: [],
};