@voidable/theme 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +25 -0
- package/README.md +42 -0
- package/package.json +18 -0
- package/src/components/accordion.css +58 -0
- package/src/components/alert.css +53 -0
- package/src/components/avatar.css +26 -0
- package/src/components/badge.css +36 -0
- package/src/components/banner.css +52 -0
- package/src/components/breadcrumbs.css +41 -0
- package/src/components/button.css +99 -0
- package/src/components/card.css +47 -0
- package/src/components/checkbox-group.css +27 -0
- package/src/components/checkbox.css +84 -0
- package/src/components/combobox.css +92 -0
- package/src/components/compose-input.css +68 -0
- package/src/components/dialog.css +77 -0
- package/src/components/divider.css +43 -0
- package/src/components/drawer.css +131 -0
- package/src/components/error-fallback.css +56 -0
- package/src/components/field.css +43 -0
- package/src/components/file-upload.css +103 -0
- package/src/components/hamburger.css +75 -0
- package/src/components/input.css +57 -0
- package/src/components/list.css +37 -0
- package/src/components/multiselect.css +170 -0
- package/src/components/nav-bar.css +28 -0
- package/src/components/pagination.css +75 -0
- package/src/components/panel.css +26 -0
- package/src/components/popover.css +44 -0
- package/src/components/progress.css +42 -0
- package/src/components/radio-group.css +24 -0
- package/src/components/radio.css +80 -0
- package/src/components/scroll-area.css +42 -0
- package/src/components/select.css +97 -0
- package/src/components/skeleton.css +31 -0
- package/src/components/slider.css +126 -0
- package/src/components/spinner.css +45 -0
- package/src/components/status-dot.css +21 -0
- package/src/components/stepper.css +68 -0
- package/src/components/switch.css +81 -0
- package/src/components/table.css +46 -0
- package/src/components/tabs.css +64 -0
- package/src/components/tag.css +51 -0
- package/src/components/textarea.css +57 -0
- package/src/components/toast.css +72 -0
- package/src/components/tooltip.css +49 -0
- package/src/index.css +46 -0
- package/src/primitives.css +192 -0
- package/src/reset.css +36 -0
- package/src/tokens.css +110 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
void-toast-container {
|
|
2
|
+
position: fixed;
|
|
3
|
+
bottom: 0;
|
|
4
|
+
right: 0;
|
|
5
|
+
z-index: 1100;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: var(--void-space-2);
|
|
9
|
+
padding: var(--void-space-4);
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
void-toast-container[position='top-right'] { top: 0; right: 0; bottom: auto; left: auto; }
|
|
14
|
+
void-toast-container[position='top-left'] { top: 0; left: 0; bottom: auto; right: auto; }
|
|
15
|
+
void-toast-container[position='bottom-right'] { bottom: 0; right: 0; top: auto; left: auto; }
|
|
16
|
+
void-toast-container[position='bottom-left'] { bottom: 0; left: 0; top: auto; right: auto; }
|
|
17
|
+
void-toast-container[position='top-center'] { top: 0; left: 50%; bottom: auto; right: auto; transform: translateX(-50%); }
|
|
18
|
+
void-toast-container[position='bottom-center'] { bottom: 0; left: 50%; top: auto; right: auto; transform: translateX(-50%); }
|
|
19
|
+
|
|
20
|
+
void-toast {
|
|
21
|
+
--tone: var(--void-color-accent);
|
|
22
|
+
position: relative;
|
|
23
|
+
pointer-events: auto;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: var(--void-space-1);
|
|
27
|
+
padding: var(--void-space-3) var(--void-space-4);
|
|
28
|
+
background: var(--void-color-bg-elevated);
|
|
29
|
+
border: 1px solid var(--void-color-border);
|
|
30
|
+
border-left: 3px solid var(--tone);
|
|
31
|
+
border-radius: var(--void-radius-md);
|
|
32
|
+
box-shadow: var(--void-shadow-lg);
|
|
33
|
+
min-width: 20rem;
|
|
34
|
+
max-width: 28rem;
|
|
35
|
+
color: var(--void-color-text);
|
|
36
|
+
font-family: var(--void-font-sans);
|
|
37
|
+
font-size: var(--void-text-sm);
|
|
38
|
+
line-height: var(--void-leading-normal);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
void-toast[color='error'] { --tone: var(--void-color-error); }
|
|
42
|
+
void-toast[color='warning'] { --tone: var(--void-color-warning); }
|
|
43
|
+
void-toast[color='success'] { --tone: var(--void-color-success); }
|
|
44
|
+
void-toast[color='info'] { --tone: var(--void-color-info); }
|
|
45
|
+
|
|
46
|
+
.void-toast-heading {
|
|
47
|
+
font-weight: var(--void-weight-medium);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.void-toast-close {
|
|
51
|
+
position: absolute;
|
|
52
|
+
top: var(--void-space-2);
|
|
53
|
+
right: var(--void-space-2);
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
width: 1.25rem;
|
|
58
|
+
height: 1.25rem;
|
|
59
|
+
padding: 0;
|
|
60
|
+
border: none;
|
|
61
|
+
border-radius: var(--void-radius-sm);
|
|
62
|
+
background: transparent;
|
|
63
|
+
color: inherit;
|
|
64
|
+
font-size: var(--void-text-base);
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
opacity: 0.6;
|
|
67
|
+
transition: opacity var(--void-duration-fast) var(--void-ease-in-out);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.void-toast-close:hover {
|
|
71
|
+
opacity: 1;
|
|
72
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
void-tooltip {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.void-tooltip-bubble {
|
|
7
|
+
position: absolute;
|
|
8
|
+
bottom: calc(100% + var(--void-space-1));
|
|
9
|
+
left: 50%;
|
|
10
|
+
transform: translateX(-50%);
|
|
11
|
+
background: var(--void-color-bg-elevated);
|
|
12
|
+
border: 1px solid var(--void-color-border);
|
|
13
|
+
border-radius: var(--void-radius-sm);
|
|
14
|
+
padding: var(--void-space-1) var(--void-space-2);
|
|
15
|
+
font-family: var(--void-font-sans);
|
|
16
|
+
font-size: var(--void-text-xs);
|
|
17
|
+
color: var(--void-color-text);
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
opacity: 0;
|
|
21
|
+
transition: opacity var(--void-duration-fast) var(--void-ease-in-out);
|
|
22
|
+
z-index: 1000;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
void-tooltip[visible] .void-tooltip-bubble {
|
|
26
|
+
opacity: 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
void-tooltip[position="bottom"] .void-tooltip-bubble {
|
|
30
|
+
bottom: auto;
|
|
31
|
+
top: calc(100% + var(--void-space-1));
|
|
32
|
+
left: 50%;
|
|
33
|
+
transform: translateX(-50%);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
void-tooltip[position="left"] .void-tooltip-bubble {
|
|
37
|
+
bottom: auto;
|
|
38
|
+
left: auto;
|
|
39
|
+
top: 50%;
|
|
40
|
+
right: calc(100% + var(--void-space-1));
|
|
41
|
+
transform: translateY(-50%);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
void-tooltip[position="right"] .void-tooltip-bubble {
|
|
45
|
+
bottom: auto;
|
|
46
|
+
left: calc(100% + var(--void-space-1));
|
|
47
|
+
top: 50%;
|
|
48
|
+
transform: translateY(-50%);
|
|
49
|
+
}
|
package/src/index.css
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@import './primitives.css';
|
|
2
|
+
@import './tokens.css';
|
|
3
|
+
@import './reset.css';
|
|
4
|
+
@import './components/badge.css';
|
|
5
|
+
@import './components/button.css';
|
|
6
|
+
@import './components/divider.css';
|
|
7
|
+
@import './components/spinner.css';
|
|
8
|
+
@import './components/skeleton.css';
|
|
9
|
+
@import './components/status-dot.css';
|
|
10
|
+
@import './components/switch.css';
|
|
11
|
+
@import './components/avatar.css';
|
|
12
|
+
@import './components/alert.css';
|
|
13
|
+
@import './components/tag.css';
|
|
14
|
+
@import './components/progress.css';
|
|
15
|
+
@import './components/panel.css';
|
|
16
|
+
@import './components/input.css';
|
|
17
|
+
@import './components/textarea.css';
|
|
18
|
+
@import './components/select.css';
|
|
19
|
+
@import './components/checkbox.css';
|
|
20
|
+
@import './components/radio.css';
|
|
21
|
+
@import './components/radio-group.css';
|
|
22
|
+
@import './components/field.css';
|
|
23
|
+
@import './components/multiselect.css';
|
|
24
|
+
@import './components/dialog.css';
|
|
25
|
+
@import './components/tabs.css';
|
|
26
|
+
@import './components/accordion.css';
|
|
27
|
+
@import './components/breadcrumbs.css';
|
|
28
|
+
@import './components/list.css';
|
|
29
|
+
@import './components/toast.css';
|
|
30
|
+
@import './components/stepper.css';
|
|
31
|
+
@import './components/drawer.css';
|
|
32
|
+
@import './components/card.css';
|
|
33
|
+
@import './components/popover.css';
|
|
34
|
+
@import './components/tooltip.css';
|
|
35
|
+
@import './components/banner.css';
|
|
36
|
+
@import './components/scroll-area.css';
|
|
37
|
+
@import './components/table.css';
|
|
38
|
+
@import './components/pagination.css';
|
|
39
|
+
@import './components/error-fallback.css';
|
|
40
|
+
@import './components/checkbox-group.css';
|
|
41
|
+
@import './components/combobox.css';
|
|
42
|
+
@import './components/slider.css';
|
|
43
|
+
@import './components/file-upload.css';
|
|
44
|
+
@import './components/nav-bar.css';
|
|
45
|
+
@import './components/hamburger.css';
|
|
46
|
+
@import './components/compose-input.css';
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
@voidable/theme — Tier 1 Primitives
|
|
3
|
+
Raw scales only. No semantic meaning.
|
|
4
|
+
============================================================ */
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
/* ── Stone palette ── */
|
|
8
|
+
--void-stone-50: #fafaf9;
|
|
9
|
+
--void-stone-100: #f5f5f4;
|
|
10
|
+
--void-stone-200: #e7e5e4;
|
|
11
|
+
--void-stone-300: #d6d3d1;
|
|
12
|
+
--void-stone-400: #a8a29e;
|
|
13
|
+
--void-stone-450: #908a85;
|
|
14
|
+
--void-stone-500: #78716c;
|
|
15
|
+
--void-stone-600: #57534e;
|
|
16
|
+
--void-stone-700: #44403c;
|
|
17
|
+
--void-stone-800: #292524;
|
|
18
|
+
--void-stone-900: #1c1917;
|
|
19
|
+
--void-stone-950: #0c0a09;
|
|
20
|
+
|
|
21
|
+
/* ── Red palette (status: error) ── */
|
|
22
|
+
--void-red-50: #fef2f2;
|
|
23
|
+
--void-red-100: #fee2e2;
|
|
24
|
+
--void-red-200: #fecaca;
|
|
25
|
+
--void-red-300: #fca5a5;
|
|
26
|
+
--void-red-400: #f87171;
|
|
27
|
+
--void-red-500: #ef4444;
|
|
28
|
+
--void-red-600: #dc2626;
|
|
29
|
+
--void-red-700: #b91c1c;
|
|
30
|
+
--void-red-800: #991b1b;
|
|
31
|
+
--void-red-900: #7f1d1d;
|
|
32
|
+
--void-red-950: #450a0a;
|
|
33
|
+
|
|
34
|
+
/* ── Amber palette (status: warning) ── */
|
|
35
|
+
--void-amber-50: #fefae4;
|
|
36
|
+
--void-amber-100: #fdf1be;
|
|
37
|
+
--void-amber-200: #f9e182;
|
|
38
|
+
--void-amber-300: #f1cb48;
|
|
39
|
+
--void-amber-400: #e5c03c;
|
|
40
|
+
--void-amber-500: #cca93c;
|
|
41
|
+
--void-amber-600: #a88a2a;
|
|
42
|
+
--void-amber-700: #846b20;
|
|
43
|
+
--void-amber-800: #655118;
|
|
44
|
+
--void-amber-900: #503f13;
|
|
45
|
+
--void-amber-950: #30260b;
|
|
46
|
+
|
|
47
|
+
/* ── Green palette (status: success) ── */
|
|
48
|
+
--void-green-50: #f0fdf4;
|
|
49
|
+
--void-green-100: #dcfce7;
|
|
50
|
+
--void-green-200: #bbf7d0;
|
|
51
|
+
--void-green-300: #86efac;
|
|
52
|
+
--void-green-400: #4ade80;
|
|
53
|
+
--void-green-500: #22c55e;
|
|
54
|
+
--void-green-600: #16a34a;
|
|
55
|
+
--void-green-700: #15803d;
|
|
56
|
+
--void-green-800: #166534;
|
|
57
|
+
--void-green-900: #14532d;
|
|
58
|
+
--void-green-950: #052e16;
|
|
59
|
+
|
|
60
|
+
/* ── Blue palette (status: info) ── */
|
|
61
|
+
--void-blue-50: #eff6ff;
|
|
62
|
+
--void-blue-100: #dbeafe;
|
|
63
|
+
--void-blue-200: #bfdbfe;
|
|
64
|
+
--void-blue-300: #93c5fd;
|
|
65
|
+
--void-blue-400: #60a5fa;
|
|
66
|
+
--void-blue-500: #3b82f6;
|
|
67
|
+
--void-blue-600: #2563eb;
|
|
68
|
+
--void-blue-700: #1d4ed8;
|
|
69
|
+
--void-blue-800: #1e40af;
|
|
70
|
+
--void-blue-900: #1e3a8a;
|
|
71
|
+
--void-blue-950: #172554;
|
|
72
|
+
|
|
73
|
+
/* ── Purple palette (status: notice) ── */
|
|
74
|
+
--void-purple-50: #faf5ff;
|
|
75
|
+
--void-purple-100: #f3e8ff;
|
|
76
|
+
--void-purple-200: #e9d5ff;
|
|
77
|
+
--void-purple-300: #d8b4fe;
|
|
78
|
+
--void-purple-400: #c084fc;
|
|
79
|
+
--void-purple-500: #a855f7;
|
|
80
|
+
--void-purple-600: #9333ea;
|
|
81
|
+
--void-purple-700: #7e22ce;
|
|
82
|
+
--void-purple-800: #6b21a8;
|
|
83
|
+
--void-purple-900: #581c87;
|
|
84
|
+
--void-purple-950: #3b0764;
|
|
85
|
+
|
|
86
|
+
/* ── Pink palette (status: highlight) ── */
|
|
87
|
+
--void-pink-50: #fdf2f8;
|
|
88
|
+
--void-pink-100: #fce7f3;
|
|
89
|
+
--void-pink-200: #fbcfe8;
|
|
90
|
+
--void-pink-300: #f9a8d4;
|
|
91
|
+
--void-pink-400: #f472b6;
|
|
92
|
+
--void-pink-500: #ec4899;
|
|
93
|
+
--void-pink-600: #db2777;
|
|
94
|
+
--void-pink-700: #be185d;
|
|
95
|
+
--void-pink-800: #9d174d;
|
|
96
|
+
--void-pink-900: #831843;
|
|
97
|
+
--void-pink-950: #500724;
|
|
98
|
+
|
|
99
|
+
/* ── Pure black & white ── */
|
|
100
|
+
--void-black: #000000;
|
|
101
|
+
--void-white: #ffffff;
|
|
102
|
+
|
|
103
|
+
/* ── Dark surface steps (near-blacks for elevation) ── */
|
|
104
|
+
--void-dark-1: #0a0a0a;
|
|
105
|
+
--void-dark-2: #0b0b0b;
|
|
106
|
+
--void-dark-3: #111111;
|
|
107
|
+
--void-dark-4: #141414;
|
|
108
|
+
|
|
109
|
+
/* ── Spacing (rem) ── */
|
|
110
|
+
--void-space-1: 0.25rem;
|
|
111
|
+
--void-space-2: 0.5rem;
|
|
112
|
+
--void-space-3: 0.75rem;
|
|
113
|
+
--void-space-4: 1rem;
|
|
114
|
+
--void-space-5: 1.25rem;
|
|
115
|
+
--void-space-6: 1.5rem;
|
|
116
|
+
--void-space-8: 2rem;
|
|
117
|
+
--void-space-10: 2.5rem;
|
|
118
|
+
--void-space-12: 3rem;
|
|
119
|
+
--void-space-16: 4rem;
|
|
120
|
+
--void-space-20: 5rem;
|
|
121
|
+
--void-space-24: 6rem;
|
|
122
|
+
|
|
123
|
+
--void-space-xs: var(--void-space-1);
|
|
124
|
+
--void-space-sm: var(--void-space-2);
|
|
125
|
+
--void-space-md: var(--void-space-3);
|
|
126
|
+
--void-space-lg: var(--void-space-4);
|
|
127
|
+
--void-space-xl: var(--void-space-6);
|
|
128
|
+
|
|
129
|
+
/* ── Typography — sizes ── */
|
|
130
|
+
--void-text-2xs: 0.625rem;
|
|
131
|
+
--void-text-xs: 0.75rem;
|
|
132
|
+
--void-text-sm: 0.8125rem;
|
|
133
|
+
--void-text-base: 0.875rem;
|
|
134
|
+
--void-text-md: 1rem;
|
|
135
|
+
--void-text-lg: 1.125rem;
|
|
136
|
+
--void-text-xl: 1.25rem;
|
|
137
|
+
--void-text-2xl: 1.5rem;
|
|
138
|
+
--void-text-3xl: 1.875rem;
|
|
139
|
+
--void-text-4xl: 2.25rem;
|
|
140
|
+
--void-text-5xl: 3rem;
|
|
141
|
+
|
|
142
|
+
/* ── Typography — weights ── */
|
|
143
|
+
--void-weight-normal: 400;
|
|
144
|
+
--void-weight-medium: 500;
|
|
145
|
+
--void-weight-semibold: 600;
|
|
146
|
+
--void-weight-bold: 700;
|
|
147
|
+
|
|
148
|
+
/* ── Typography — line heights ── */
|
|
149
|
+
--void-leading-tight: 1.2;
|
|
150
|
+
--void-leading-normal: 1.5;
|
|
151
|
+
--void-leading-relaxed: 1.7;
|
|
152
|
+
|
|
153
|
+
/* ── Font stacks ── */
|
|
154
|
+
--void-font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
155
|
+
--void-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Fira Code', monospace;
|
|
156
|
+
|
|
157
|
+
/* ── Border radius ── */
|
|
158
|
+
--void-radius-none: 0;
|
|
159
|
+
--void-radius-xs: 4px;
|
|
160
|
+
--void-radius-sm: 6px;
|
|
161
|
+
--void-radius-md: 8px;
|
|
162
|
+
--void-radius-lg: 12px;
|
|
163
|
+
--void-radius-xl: 16px;
|
|
164
|
+
--void-radius-full: 9999px;
|
|
165
|
+
|
|
166
|
+
/* ── Shadows — white glows (dark-surface elevation) ── */
|
|
167
|
+
--void-shadow-sm: 0 1px 3px rgba(255,255,255,.14);
|
|
168
|
+
--void-shadow-md: 0 2px 6px rgba(255,255,255,.12), 0 10px 24px rgba(255,255,255,.20);
|
|
169
|
+
--void-shadow-lg: 0 4px 10px rgba(255,255,255,.16), 0 22px 50px rgba(255,255,255,.28);
|
|
170
|
+
--void-shadow-xl: 0 6px 14px rgba(255,255,255,.20), 0 40px 88px rgba(255,255,255,.38);
|
|
171
|
+
|
|
172
|
+
/* ── Ring hairlines ── */
|
|
173
|
+
--void-ring-hair: 0 0 0 1px rgba(255,255,255,.06);
|
|
174
|
+
--void-ring-hair-strong: 0 0 0 1px rgba(255,255,255,.12);
|
|
175
|
+
|
|
176
|
+
/* ── Motion — durations ── */
|
|
177
|
+
--void-duration-fast: 100ms;
|
|
178
|
+
--void-duration-normal: 200ms;
|
|
179
|
+
--void-duration-slow: 300ms;
|
|
180
|
+
|
|
181
|
+
/* ── Motion — easings ── */
|
|
182
|
+
--void-ease-in: cubic-bezier(0.4, 0, 1, 0.2);
|
|
183
|
+
--void-ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
184
|
+
--void-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
185
|
+
|
|
186
|
+
/* ── Z-index layers ── */
|
|
187
|
+
--void-z-dropdown: 100;
|
|
188
|
+
--void-z-sticky: 200;
|
|
189
|
+
--void-z-modal: 300;
|
|
190
|
+
--void-z-toast: 400;
|
|
191
|
+
--void-z-tooltip: 500;
|
|
192
|
+
}
|
package/src/reset.css
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
html {
|
|
10
|
+
-webkit-font-smoothing: antialiased;
|
|
11
|
+
-moz-osx-font-smoothing: grayscale;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
font-family: var(--void-font-sans);
|
|
16
|
+
font-size: var(--void-text-base);
|
|
17
|
+
line-height: var(--void-leading-normal);
|
|
18
|
+
color: var(--void-color-text);
|
|
19
|
+
background: var(--void-color-bg);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
img,
|
|
23
|
+
picture,
|
|
24
|
+
video,
|
|
25
|
+
canvas,
|
|
26
|
+
svg {
|
|
27
|
+
display: block;
|
|
28
|
+
max-width: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
input,
|
|
32
|
+
button,
|
|
33
|
+
textarea,
|
|
34
|
+
select {
|
|
35
|
+
font: inherit;
|
|
36
|
+
}
|
package/src/tokens.css
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
@voidable/theme — Tier 2 Semantic Tokens
|
|
3
|
+
Dark mode is the default. Surfaces are TRUE BLACK.
|
|
4
|
+
============================================================ */
|
|
5
|
+
|
|
6
|
+
/* ── Dark theme (default) ── */
|
|
7
|
+
:root,
|
|
8
|
+
[data-theme="dark"] {
|
|
9
|
+
/* Surfaces */
|
|
10
|
+
--void-color-bg: var(--void-black);
|
|
11
|
+
--void-color-bg-secondary: var(--void-dark-1);
|
|
12
|
+
--void-color-bg-elevated: var(--void-dark-3);
|
|
13
|
+
--void-color-bg-hover: var(--void-dark-4);
|
|
14
|
+
--void-color-bg-accent: var(--void-dark-2);
|
|
15
|
+
--void-color-bg-overlay: color-mix(in srgb, var(--void-black) 70%, transparent);
|
|
16
|
+
|
|
17
|
+
/* Text */
|
|
18
|
+
--void-color-text: var(--void-stone-100);
|
|
19
|
+
--void-color-text-secondary: var(--void-stone-400);
|
|
20
|
+
--void-color-text-muted: var(--void-stone-500);
|
|
21
|
+
--void-color-text-tertiary: var(--void-stone-450);
|
|
22
|
+
--void-color-text-disabled: var(--void-stone-600);
|
|
23
|
+
--void-color-text-on-accent: var(--void-black);
|
|
24
|
+
|
|
25
|
+
/* Borders */
|
|
26
|
+
--void-color-border: color-mix(in srgb, var(--void-white) 14%, transparent);
|
|
27
|
+
--void-color-border-strong: color-mix(in srgb, var(--void-white) 22%, transparent);
|
|
28
|
+
--void-color-border-focus: color-mix(in srgb, var(--void-white) 55%, transparent);
|
|
29
|
+
|
|
30
|
+
/* Accent — monochrome */
|
|
31
|
+
--void-color-accent: var(--void-white);
|
|
32
|
+
--void-color-accent-hover: var(--void-stone-200);
|
|
33
|
+
|
|
34
|
+
/* Status — primary */
|
|
35
|
+
--void-color-error: var(--void-red-500);
|
|
36
|
+
--void-color-warning: var(--void-amber-500);
|
|
37
|
+
--void-color-success: var(--void-green-500);
|
|
38
|
+
--void-color-info: var(--void-blue-500);
|
|
39
|
+
--void-color-notice: var(--void-purple-500);
|
|
40
|
+
--void-color-highlight: var(--void-pink-500);
|
|
41
|
+
|
|
42
|
+
/* Status — subtle (14% color-mix) */
|
|
43
|
+
--void-color-error-subtle: color-mix(in srgb, var(--void-color-error) 14%, transparent);
|
|
44
|
+
--void-color-warning-subtle: color-mix(in srgb, var(--void-color-warning) 14%, transparent);
|
|
45
|
+
--void-color-success-subtle: color-mix(in srgb, var(--void-color-success) 14%, transparent);
|
|
46
|
+
--void-color-info-subtle: color-mix(in srgb, var(--void-color-info) 14%, transparent);
|
|
47
|
+
--void-color-notice-subtle: color-mix(in srgb, var(--void-color-notice) 14%, transparent);
|
|
48
|
+
--void-color-highlight-subtle: color-mix(in srgb, var(--void-color-highlight) 14%, transparent);
|
|
49
|
+
|
|
50
|
+
/* Named spacing aliases */
|
|
51
|
+
--void-spacing-xs: var(--void-space-xs);
|
|
52
|
+
--void-spacing-sm: var(--void-space-sm);
|
|
53
|
+
--void-spacing-md: var(--void-space-md);
|
|
54
|
+
--void-spacing-lg: var(--void-space-lg);
|
|
55
|
+
--void-spacing-xl: var(--void-space-xl);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* ── Light theme ── */
|
|
59
|
+
[data-theme="light"] {
|
|
60
|
+
/* Surfaces — pure white base */
|
|
61
|
+
--void-color-bg: var(--void-white);
|
|
62
|
+
--void-color-bg-secondary: var(--void-stone-100);
|
|
63
|
+
--void-color-bg-elevated: var(--void-white);
|
|
64
|
+
--void-color-bg-hover: var(--void-stone-200);
|
|
65
|
+
--void-color-bg-accent: var(--void-stone-100);
|
|
66
|
+
--void-color-bg-overlay: color-mix(in srgb, var(--void-black) 30%, transparent);
|
|
67
|
+
|
|
68
|
+
/* Text */
|
|
69
|
+
--void-color-text: var(--void-stone-900);
|
|
70
|
+
--void-color-text-secondary: var(--void-stone-600);
|
|
71
|
+
--void-color-text-muted: var(--void-stone-500);
|
|
72
|
+
--void-color-text-tertiary: var(--void-stone-400);
|
|
73
|
+
--void-color-text-disabled: var(--void-stone-300);
|
|
74
|
+
--void-color-text-on-accent: var(--void-white);
|
|
75
|
+
|
|
76
|
+
/* Borders */
|
|
77
|
+
--void-color-border: var(--void-stone-300);
|
|
78
|
+
--void-color-border-strong: var(--void-stone-400);
|
|
79
|
+
--void-color-border-focus: var(--void-stone-600);
|
|
80
|
+
|
|
81
|
+
/* Accent */
|
|
82
|
+
--void-color-accent: var(--void-stone-900);
|
|
83
|
+
--void-color-accent-hover: var(--void-stone-950);
|
|
84
|
+
|
|
85
|
+
/* Status — primary (-600 variants for light mode) */
|
|
86
|
+
--void-color-error: var(--void-red-600);
|
|
87
|
+
--void-color-warning: var(--void-amber-600);
|
|
88
|
+
--void-color-success: var(--void-green-600);
|
|
89
|
+
--void-color-info: var(--void-blue-600);
|
|
90
|
+
--void-color-notice: var(--void-purple-600);
|
|
91
|
+
--void-color-highlight: var(--void-pink-600);
|
|
92
|
+
|
|
93
|
+
/* Status — subtle (8% color-mix for light backgrounds) */
|
|
94
|
+
--void-color-error-subtle: color-mix(in srgb, var(--void-color-error) 8%, transparent);
|
|
95
|
+
--void-color-warning-subtle: color-mix(in srgb, var(--void-color-warning) 8%, transparent);
|
|
96
|
+
--void-color-success-subtle: color-mix(in srgb, var(--void-color-success) 8%, transparent);
|
|
97
|
+
--void-color-info-subtle: color-mix(in srgb, var(--void-color-info) 8%, transparent);
|
|
98
|
+
--void-color-notice-subtle: color-mix(in srgb, var(--void-color-notice) 8%, transparent);
|
|
99
|
+
--void-color-highlight-subtle: color-mix(in srgb, var(--void-color-highlight) 8%, transparent);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* ── Shape: sharp ── */
|
|
103
|
+
[data-shape="sharp"] {
|
|
104
|
+
--void-radius-xs: 0;
|
|
105
|
+
--void-radius-sm: 0;
|
|
106
|
+
--void-radius-md: 0;
|
|
107
|
+
--void-radius-lg: 0;
|
|
108
|
+
--void-radius-xl: 0;
|
|
109
|
+
--void-radius-full: 0;
|
|
110
|
+
}
|