@voidable/theme 0.2.0 → 0.3.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/package.json +1 -1
- package/src/components/badge.css +8 -0
- package/src/components/compose-input.css +1 -0
- package/src/components/progress.css +1 -0
- package/src/components/scroll-area.css +1 -0
- package/src/components/sidebar.css +1 -1
- package/src/components/stepper.css +10 -4
- package/src/components/textarea.css +1 -0
- package/src/primitives.css +32 -0
package/package.json
CHANGED
package/src/components/badge.css
CHANGED
|
@@ -10,6 +10,7 @@ void-badge {
|
|
|
10
10
|
padding: 0.25rem 0.375rem 0.125rem;
|
|
11
11
|
min-width: 1.25rem;
|
|
12
12
|
min-height: 1.25rem;
|
|
13
|
+
border: 1px solid transparent;
|
|
13
14
|
border-radius: var(--void-radius-full);
|
|
14
15
|
background: var(--tone);
|
|
15
16
|
color: var(--void-color-text-on-accent);
|
|
@@ -29,6 +30,13 @@ void-badge[color="info"] { --tone: var(--void-color-info); }
|
|
|
29
30
|
void-badge[color="notice"] { --tone: var(--void-color-notice); }
|
|
30
31
|
void-badge[color="highlight"] { --tone: var(--void-color-highlight); }
|
|
31
32
|
|
|
33
|
+
/* Variants */
|
|
34
|
+
void-badge[variant="outline"] {
|
|
35
|
+
background: color-mix(in srgb, var(--tone) 14%, transparent);
|
|
36
|
+
border: 1px solid color-mix(in srgb, var(--tone) 36%, transparent);
|
|
37
|
+
color: var(--tone);
|
|
38
|
+
}
|
|
39
|
+
|
|
32
40
|
/* Sizes */
|
|
33
41
|
void-badge[size="sm"] { min-width: 1rem; min-height: 1rem; font-size: var(--void-text-2xs); padding: 0.0625rem var(--void-space-1) 0; }
|
|
34
42
|
void-badge[size="lg"] { min-width: 1.75rem; min-height: 1.75rem; font-size: var(--void-text-sm); padding: 0.3125rem var(--void-space-3) 0.1875rem; }
|
|
@@ -8,9 +8,10 @@ void-stepper {
|
|
|
8
8
|
display: flex;
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
align-items: center;
|
|
11
|
-
gap: var(--void-space-
|
|
12
|
-
flex:
|
|
11
|
+
gap: var(--void-space-2);
|
|
12
|
+
flex: 0 0 auto;
|
|
13
13
|
position: relative;
|
|
14
|
+
padding-bottom: calc(var(--void-text-xs) + var(--void-space-2));
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.void-stepper-circle {
|
|
@@ -45,9 +46,14 @@ void-stepper {
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
.void-stepper-label {
|
|
49
|
+
position: absolute;
|
|
50
|
+
bottom: 0;
|
|
51
|
+
left: 50%;
|
|
52
|
+
transform: translateX(-50%);
|
|
48
53
|
font-size: var(--void-text-xs);
|
|
49
54
|
color: var(--void-color-text-muted);
|
|
50
55
|
text-align: center;
|
|
56
|
+
white-space: nowrap;
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
.void-stepper-step[data-state="active"] .void-stepper-label {
|
|
@@ -58,9 +64,9 @@ void-stepper {
|
|
|
58
64
|
.void-stepper-connector {
|
|
59
65
|
height: 2px;
|
|
60
66
|
background-color: var(--void-color-border);
|
|
61
|
-
flex: 1
|
|
67
|
+
flex: 1 1 0%;
|
|
62
68
|
align-self: flex-start;
|
|
63
|
-
margin-top: 1rem;
|
|
69
|
+
margin-top: calc(1rem - 1px);
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
.void-stepper-connector[data-state="completed"] {
|
package/src/primitives.css
CHANGED
|
@@ -108,17 +108,28 @@
|
|
|
108
108
|
|
|
109
109
|
/* ── Spacing (rem) ── */
|
|
110
110
|
--void-space-1: 0.25rem;
|
|
111
|
+
--void-space-1h: 0.375rem;
|
|
111
112
|
--void-space-2: 0.5rem;
|
|
113
|
+
--void-space-2h: 0.625rem;
|
|
112
114
|
--void-space-3: 0.75rem;
|
|
113
115
|
--void-space-4: 1rem;
|
|
114
116
|
--void-space-5: 1.25rem;
|
|
115
117
|
--void-space-6: 1.5rem;
|
|
118
|
+
--void-space-7: 1.75rem;
|
|
116
119
|
--void-space-8: 2rem;
|
|
120
|
+
--void-space-9: 2.25rem;
|
|
117
121
|
--void-space-10: 2.5rem;
|
|
118
122
|
--void-space-12: 3rem;
|
|
123
|
+
--void-space-14: 3.5rem;
|
|
124
|
+
--void-space-15: 3.75rem;
|
|
119
125
|
--void-space-16: 4rem;
|
|
120
126
|
--void-space-20: 5rem;
|
|
121
127
|
--void-space-24: 6rem;
|
|
128
|
+
--void-space-28: 7rem;
|
|
129
|
+
--void-space-30: 7.5rem;
|
|
130
|
+
--void-space-32: 8rem;
|
|
131
|
+
--void-space-35: 8.75rem;
|
|
132
|
+
--void-space-40: 10rem;
|
|
122
133
|
|
|
123
134
|
--void-space-xs: var(--void-space-1);
|
|
124
135
|
--void-space-sm: var(--void-space-2);
|
|
@@ -146,9 +157,23 @@
|
|
|
146
157
|
--void-weight-bold: 700;
|
|
147
158
|
|
|
148
159
|
/* ── Typography — line heights ── */
|
|
160
|
+
--void-leading-display: 0.92;
|
|
161
|
+
--void-leading-none: 1;
|
|
162
|
+
--void-leading-snug: 1.05;
|
|
149
163
|
--void-leading-tight: 1.2;
|
|
150
164
|
--void-leading-normal: 1.5;
|
|
151
165
|
--void-leading-relaxed: 1.7;
|
|
166
|
+
--void-leading-loose: 1.75;
|
|
167
|
+
|
|
168
|
+
/* ── Typography — letter spacing (tracking) ── */
|
|
169
|
+
--void-tracking-tightest: -0.05em;
|
|
170
|
+
--void-tracking-tighter: -0.04em;
|
|
171
|
+
--void-tracking-tight: -0.025em;
|
|
172
|
+
--void-tracking-snug: -0.01em;
|
|
173
|
+
--void-tracking-normal: 0em;
|
|
174
|
+
--void-tracking-wide: 0.04em;
|
|
175
|
+
--void-tracking-wider: 0.06em;
|
|
176
|
+
--void-tracking-widest: 0.1em;
|
|
152
177
|
|
|
153
178
|
/* ── Font stacks ── */
|
|
154
179
|
--void-font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
@@ -189,4 +214,11 @@
|
|
|
189
214
|
--void-z-modal: 300;
|
|
190
215
|
--void-z-toast: 400;
|
|
191
216
|
--void-z-tooltip: 500;
|
|
217
|
+
|
|
218
|
+
/* ── Icon ── */
|
|
219
|
+
--void-icon-stroke-width: 1.5;
|
|
220
|
+
|
|
221
|
+
/* ── Sidebar ── */
|
|
222
|
+
--void-sidebar-width: 15rem;
|
|
223
|
+
--void-sidebar-collapsed-width: 3.75rem;
|
|
192
224
|
}
|