-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
87 lines (83 loc) · 2.08 KB
/
tailwind.config.ts
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
import type { Config } from 'tailwindcss';
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> )',
border_focused: 'hsl(var(--border_focused) / <alpha-value> )',
icon: 'hsl(var(--icon) / <alpha-value> )',
cpu: {
high: 'hsl(var(--cpu-high-usage) / <alpha-value> )'
},
memory: {
high: 'hsl(var(--memory-high-usage) / <alpha-value> )'
},
ws: {
base: 'hsl(var(--ws-base) / <alpha-value>)',
'base-text': 'hsl(var(--ws-base-text) / <alpha-value>)',
hover: 'hsl(var(--ws-hover) / <alpha-value>)',
'hover-text': 'hsl(var(--ws-hover-text) / <alpha-value>)',
focused: 'hsl(var(--ws-focused) / <alpha-value>)',
'focused-text': 'hsl(var(--ws-focused-text) / <alpha-value>)',
displayed: 'hsl(var(--ws-displayed) / <alpha-value>)',
'displayed-text': 'hsl(var(--ws-displayed-text) / <alpha-value>)'
}
},
blend: generateBlends()
},
borderRadius: {
base: 'var(--radius)'
},
borderWidth: {
DEFAULT: 'var(--border-size)'
},
fontFamily: {
mono: [
'var(--font-default)',
'Inconsolata Nerd Font Mono',
'ui-monospace',
'SFMono-Regular',
'Menlo',
'Monaco',
'Consolas',
'Liberation Mono',
'Courier New',
'monospace'
]
},
fontWeight: {
base: 'var(--font-weight)'
},
height: {
bar: 'var(--height)'
},
margin: {
zbx: 'var(--bar-margin-x)',
zby: 'var(--bar-margin-y)'
}
}
},
safelist: [
'bg-zb-ws-base',
'text-zb-ws-base-text',
'bg-zb-ws-focused',
'text-zb-ws-focused-text',
'bg-zb-ws-displayed',
'text-zb-ws-displayed-text',
'justify-self-start',
'justify-self-center',
'justify-self-end'
],
plugins: []
} satisfies Config;
function generateBlends() {
const blends = {};
for (let i = 5; i <= 100; i += 5) {
blends[i] = `color-mix(in srgb, currentColor ${i}%, transparent)`;
}
return blends;
}