This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathtailwind.config.js
97 lines (96 loc) · 3.14 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
// eslint-disable-next-line @typescript-eslint/no-require-imports
const defaultTheme = require("tailwindcss/defaultTheme");
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{html,js,svelte,ts}"],
theme: {
extend: {
colors: {
zb: {
text: "hsl( var(--text) / <alpha-value> )",
base: "hsl( var(--bg) / <alpha-value> )",
border: "hsl(var(--border) / <alpha-value> )",
shadow: "hsl(var(--shadow) / <alpha-value> )",
icon: "hsl(var(--icon) / <alpha-value> )",
memory: "hsl(var(--memory) / <alpha-value> )",
cpu: "hsl(var(--cpu) / <alpha-value> )",
"cpu-high-usage": "hsl(var(--cpu-high-usage) / <alpha-value> )",
battery: {
good: "hsl(var(--battery-good) / <alpha-value> )",
mid: "hsl(var(--battery-mid) / <alpha-value> )",
low: "hsl(var(--battery-low) / <alpha-value> )"
},
"focused-process": "hsl(var(--focused-process) / <alpha-value> )",
process: "hsl(var(--process) / <alpha-value> )",
displayed: "hsl(var(--displayed) / <alpha-value> )",
ws: {
0: "hsl(var(--ws-1) / <alpha-value> )",
1: "hsl(var(--ws-2) / <alpha-value> )",
2: "hsl(var(--ws-3) / <alpha-value> )",
3: "hsl(var(--ws-4) / <alpha-value> )",
4: "hsl(var(--ws-5) / <alpha-value> )"
},
"tiling-direction": "hsl(var(--tiling-direction) / <alpha-value> )",
spotify: {
playing: "hsl(var(--now-playing) / <alpha-value> )",
paused: "hsl(var(--not-playing) / <alpha-value> )"
},
network: "hsl(var(--network) / <alpha-value> )",
weather: "hsl(var(--weather) / <alpha-value> )"
},
blend: generateBlends()
},
borderRadius: {
base: "var(--radius)"
},
borderWidth: {
DEFAULT: "var(--border-size)"
},
boxShadow: {
button:
"var(--shadow-size-button) var(--shadow-size-button) 0 hsl(var(--shadow))",
bar: "var(--shadow-size-bar) var(--shadow-size-bar) 0 hsl(var(--shadow))"
},
translate: {
boxShadowX: "var(--shadow-size-button)",
boxShadowY: "var(--shadow-size-button)",
reverseBoxShadowX: "-var(--shadow-size-button)",
reverseBoxShadowY: "-var(--shadow-size-button)"
},
fontFamily: {
sans: ["SF Pro Display", ...defaultTheme.fontFamily.sans]
},
fontWeight: {
base: "var(--font-weight)"
},
fontSize: {
"zb-size": "var(--font-size)"
},
height: {
bar: "var(--height)"
},
margin: {
zbx: "var(--bar-margin-x)",
zby: "var(--bar-margin-y)"
}
}
},
safelist: [
"text-zb-ws-0",
"text-zb-ws-1",
"text-zb-ws-2",
"text-zb-ws-3",
"text-zb-ws-4",
"justify-self-start",
"justify-self-center",
"justify-self-end"
],
plugins: []
};
function generateBlends() {
const blends = {};
for (let i = 5; i <= 100; i += 5) {
blends[i] = `color-mix(in srgb, currentColor ${i}%, transparent)`;
}
return blends;
}