@wintermuted/ui-theme 0.21.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 +21 -0
- package/README.md +131 -0
- package/index.css +6 -0
- package/index.js +1 -0
- package/package.json +73 -0
- package/styles/base.css +145 -0
- package/styles/components/badge.css +17 -0
- package/styles/components/button.css +319 -0
- package/styles/components/card.css +92 -0
- package/styles/components/chart.css +54 -0
- package/styles/components/checkbox-filter.css +69 -0
- package/styles/components/code-block.css +89 -0
- package/styles/components/empty-state.css +29 -0
- package/styles/components/file-upload.css +29 -0
- package/styles/components/gallery.css +286 -0
- package/styles/components/inline-panel.css +53 -0
- package/styles/components/layout.css +525 -0
- package/styles/components/list.css +27 -0
- package/styles/components/modal.css +92 -0
- package/styles/components/separator.css +7 -0
- package/styles/components/side-nav.css +56 -0
- package/styles/components/slider.css +155 -0
- package/styles/components/stat-card.css +82 -0
- package/styles/components/tab-bar.css +175 -0
- package/styles/components/tag.css +29 -0
- package/styles/components/toast.css +120 -0
- package/styles/components/toggle-group.css +124 -0
- package/styles/components/toggle.css +116 -0
- package/styles/components/view-header.css +60 -0
- package/styles/components.css +25 -0
- package/styles/tokens.css +70 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
/* Button variants and sizes. */
|
|
2
|
+
|
|
3
|
+
.btn,
|
|
4
|
+
.wm-btn {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
gap: 0.5rem;
|
|
9
|
+
min-height: 2.75rem;
|
|
10
|
+
padding: 0.7rem 1rem;
|
|
11
|
+
border: 1px solid transparent;
|
|
12
|
+
border-radius: var(--wm-radius-xs);
|
|
13
|
+
background: var(--wm-color-surface-strong);
|
|
14
|
+
color: var(--wm-color-text-secondary);
|
|
15
|
+
font-size: 0.82rem;
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
letter-spacing: 0.04em;
|
|
18
|
+
text-transform: uppercase;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
transition:
|
|
21
|
+
transform 0.15s ease,
|
|
22
|
+
background 0.15s ease,
|
|
23
|
+
border-color 0.15s ease,
|
|
24
|
+
color 0.15s ease,
|
|
25
|
+
opacity 0.15s ease;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.btn:hover,
|
|
29
|
+
.wm-btn:hover {
|
|
30
|
+
transform: translateY(-1px);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.btn:disabled,
|
|
34
|
+
.wm-btn:disabled {
|
|
35
|
+
opacity: 0.55;
|
|
36
|
+
cursor: not-allowed;
|
|
37
|
+
transform: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.btn-primary,
|
|
41
|
+
.wm-btn-primary {
|
|
42
|
+
background: var(--wm-color-accent-soft);
|
|
43
|
+
border-color: var(--wm-color-accent-border);
|
|
44
|
+
color: var(--wm-color-accent);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.btn-primary:hover,
|
|
48
|
+
.wm-btn-primary:hover {
|
|
49
|
+
background: color-mix(in srgb, var(--wm-color-accent-soft) 68%, white);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.btn-secondary,
|
|
53
|
+
.wm-btn-secondary,
|
|
54
|
+
.btn-ghost,
|
|
55
|
+
.wm-btn-ghost {
|
|
56
|
+
background: var(--wm-color-surface-strong);
|
|
57
|
+
border-color: var(--wm-color-border);
|
|
58
|
+
color: var(--wm-color-text-secondary);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.btn-primary-neutral,
|
|
62
|
+
.wm-btn-primary-neutral {
|
|
63
|
+
background: var(--wm-color-surface-strong);
|
|
64
|
+
border-color: var(--wm-color-border-strong);
|
|
65
|
+
color: var(--wm-color-text);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.btn-primary-neutral:hover,
|
|
69
|
+
.wm-btn-primary-neutral:hover {
|
|
70
|
+
background: var(--wm-color-surface-muted);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-theme="dark"] .btn-primary-neutral,
|
|
74
|
+
[data-theme="dark"] .wm-btn-primary-neutral {
|
|
75
|
+
background: #fff;
|
|
76
|
+
border-color: #fff;
|
|
77
|
+
color: #0d0d0d;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-theme="dark"] .btn-primary-neutral:hover,
|
|
81
|
+
[data-theme="dark"] .wm-btn-primary-neutral:hover {
|
|
82
|
+
background: #f2f2f2;
|
|
83
|
+
border-color: #f2f2f2;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.btn-secondary-neutral,
|
|
87
|
+
.wm-btn-secondary-neutral {
|
|
88
|
+
background: transparent;
|
|
89
|
+
border-color: var(--wm-color-border);
|
|
90
|
+
color: var(--wm-color-text-secondary);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.btn-secondary-neutral:hover,
|
|
94
|
+
.wm-btn-secondary-neutral:hover {
|
|
95
|
+
background: var(--wm-color-surface-strong);
|
|
96
|
+
color: var(--wm-color-text);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.btn-secondary:hover,
|
|
100
|
+
.wm-btn-secondary:hover,
|
|
101
|
+
.btn-ghost:hover,
|
|
102
|
+
.wm-btn-ghost:hover {
|
|
103
|
+
background: var(--wm-color-surface-muted);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.btn-danger,
|
|
107
|
+
.wm-btn-danger {
|
|
108
|
+
background: var(--wm-color-danger-soft);
|
|
109
|
+
border-color: var(--wm-color-danger-border);
|
|
110
|
+
color: var(--wm-color-danger);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.btn-danger:hover,
|
|
114
|
+
.wm-btn-danger:hover {
|
|
115
|
+
background: color-mix(in srgb, var(--wm-color-danger-soft) 80%, white);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.btn-success,
|
|
119
|
+
.wm-btn-success {
|
|
120
|
+
background: var(--wm-color-success-soft);
|
|
121
|
+
border-color: var(--wm-color-success-border);
|
|
122
|
+
color: var(--wm-color-success);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.btn-warning,
|
|
126
|
+
.wm-btn-warning {
|
|
127
|
+
background: var(--wm-color-warning-soft);
|
|
128
|
+
border-color: var(--wm-color-warning-border);
|
|
129
|
+
color: var(--wm-color-warning);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.btn-sm,
|
|
133
|
+
.wm-btn-sm {
|
|
134
|
+
min-height: unset;
|
|
135
|
+
padding: 0.3rem 0.7rem;
|
|
136
|
+
font-size: 0.7rem;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.btn-link,
|
|
140
|
+
.wm-btn-link {
|
|
141
|
+
background: none;
|
|
142
|
+
border: none;
|
|
143
|
+
padding: 0;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
color: var(--wm-color-accent);
|
|
146
|
+
font-size: inherit;
|
|
147
|
+
font-weight: 500;
|
|
148
|
+
text-decoration: underline;
|
|
149
|
+
text-underline-offset: 2px;
|
|
150
|
+
display: inline-flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
gap: 0.25rem;
|
|
153
|
+
min-height: unset;
|
|
154
|
+
letter-spacing: 0;
|
|
155
|
+
text-transform: none;
|
|
156
|
+
border-radius: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.btn-link:hover,
|
|
160
|
+
.wm-btn-link:hover {
|
|
161
|
+
color: color-mix(in srgb, var(--wm-color-accent) 82%, black);
|
|
162
|
+
background: none;
|
|
163
|
+
transform: none;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* .btn-square / .wm-btn-square
|
|
168
|
+
* Shape modifier alias for explicitness in markup. Base buttons are already
|
|
169
|
+
* squared by default; this class keeps the rectangular treatment when teams
|
|
170
|
+
* prefer shape to be opt-in at call sites. Combine with any
|
|
171
|
+
* semantic variant (.btn-primary, .btn-secondary, etc.).
|
|
172
|
+
*
|
|
173
|
+
* <button class="btn btn-primary btn-square">Start</button>
|
|
174
|
+
* <button class="btn btn-secondary btn-square btn-sm">Next</button>
|
|
175
|
+
*/
|
|
176
|
+
.btn-square,
|
|
177
|
+
.wm-btn-square {
|
|
178
|
+
border-radius: var(--wm-radius-xs);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* .btn-pill / .wm-btn-pill
|
|
183
|
+
* Compact muted pill for UI chrome controls (theme toggle, view toggle, print).
|
|
184
|
+
* No action affordance — use for low-emphasis utility controls only.
|
|
185
|
+
*/
|
|
186
|
+
.btn-pill,
|
|
187
|
+
.wm-btn-pill {
|
|
188
|
+
background: var(--wm-color-surface-strong);
|
|
189
|
+
border: 1px solid var(--wm-color-border);
|
|
190
|
+
border-radius: var(--wm-radius-pill);
|
|
191
|
+
padding: 0.3rem 0.7rem;
|
|
192
|
+
cursor: pointer;
|
|
193
|
+
font-family: inherit;
|
|
194
|
+
font-size: 0.7rem;
|
|
195
|
+
font-weight: 500;
|
|
196
|
+
text-transform: uppercase;
|
|
197
|
+
letter-spacing: 0.06em;
|
|
198
|
+
color: var(--wm-color-text-muted);
|
|
199
|
+
line-height: 1;
|
|
200
|
+
min-height: unset;
|
|
201
|
+
display: inline-flex;
|
|
202
|
+
align-items: center;
|
|
203
|
+
gap: 0.3rem;
|
|
204
|
+
transition:
|
|
205
|
+
background 0.15s ease,
|
|
206
|
+
border-color 0.15s ease,
|
|
207
|
+
color 0.15s ease;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.btn-pill:hover,
|
|
211
|
+
.wm-btn-pill:hover {
|
|
212
|
+
background: var(--wm-color-surface-muted);
|
|
213
|
+
color: var(--wm-color-text);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* .btn-group / .wm-btn-group
|
|
218
|
+
* Connects a set of buttons into a single horizontal unit by collapsing
|
|
219
|
+
* internal borders and square-off the inner corners. Works with any
|
|
220
|
+
* semantic variant and the .btn-sm size modifier.
|
|
221
|
+
*
|
|
222
|
+
* <div class="btn-group">
|
|
223
|
+
* <button class="btn btn-secondary btn-sm">Left</button>
|
|
224
|
+
* <button class="btn btn-secondary btn-sm">Middle</button>
|
|
225
|
+
* <button class="btn btn-secondary btn-sm">Right</button>
|
|
226
|
+
* </div>
|
|
227
|
+
*/
|
|
228
|
+
.btn-group,
|
|
229
|
+
.wm-btn-group {
|
|
230
|
+
display: inline-flex;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.btn-group > .btn,
|
|
234
|
+
.btn-group > .wm-btn,
|
|
235
|
+
.wm-btn-group > .btn,
|
|
236
|
+
.wm-btn-group > .wm-btn {
|
|
237
|
+
border-radius: 0;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.btn-group > .btn:first-child,
|
|
241
|
+
.btn-group > .wm-btn:first-child,
|
|
242
|
+
.wm-btn-group > .btn:first-child,
|
|
243
|
+
.wm-btn-group > .wm-btn:first-child {
|
|
244
|
+
border-radius: var(--wm-radius-xs) 0 0 var(--wm-radius-xs);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.btn-group > .btn:last-child,
|
|
248
|
+
.btn-group > .wm-btn:last-child,
|
|
249
|
+
.wm-btn-group > .btn:last-child,
|
|
250
|
+
.wm-btn-group > .wm-btn:last-child {
|
|
251
|
+
border-radius: 0 var(--wm-radius-xs) var(--wm-radius-xs) 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.btn-group > .btn:not(:first-child),
|
|
255
|
+
.btn-group > .wm-btn:not(:first-child),
|
|
256
|
+
.wm-btn-group > .btn:not(:first-child),
|
|
257
|
+
.wm-btn-group > .wm-btn:not(:first-child) {
|
|
258
|
+
margin-left: -1px;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.btn-group > .btn:hover,
|
|
262
|
+
.btn-group > .wm-btn:hover,
|
|
263
|
+
.wm-btn-group > .btn:hover,
|
|
264
|
+
.wm-btn-group > .wm-btn:hover {
|
|
265
|
+
position: relative;
|
|
266
|
+
z-index: 1;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* .btn-expand / .wm-btn-expand
|
|
271
|
+
* Borderless disclosure / section-expansion trigger. Use for inline "Show
|
|
272
|
+
* more", "Show examples", expand-collapse controls where a full button
|
|
273
|
+
* treatment would be too heavy. Renders as a muted text row with a leading
|
|
274
|
+
* chevron that rotates when the [aria-expanded="true"] state is set.
|
|
275
|
+
*
|
|
276
|
+
* <button class="btn btn-expand" aria-expanded="false">Show examples</button>
|
|
277
|
+
* <button class="btn btn-expand" aria-expanded="true">Hide examples</button>
|
|
278
|
+
*/
|
|
279
|
+
.btn-expand,
|
|
280
|
+
.wm-btn-expand {
|
|
281
|
+
background: none;
|
|
282
|
+
border: none;
|
|
283
|
+
padding: 0.2rem 0;
|
|
284
|
+
min-height: unset;
|
|
285
|
+
gap: 0.3rem;
|
|
286
|
+
color: var(--wm-color-text-muted);
|
|
287
|
+
font-size: 0.78rem;
|
|
288
|
+
font-weight: 500;
|
|
289
|
+
text-transform: none;
|
|
290
|
+
letter-spacing: 0;
|
|
291
|
+
border-radius: 0;
|
|
292
|
+
transition: color 0.15s ease;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.btn-expand::before,
|
|
296
|
+
.wm-btn-expand::before {
|
|
297
|
+
content: '▶';
|
|
298
|
+
display: inline-block;
|
|
299
|
+
font-size: 0.6em;
|
|
300
|
+
transition: transform 0.2s ease;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.btn-expand[aria-expanded="true"]::before,
|
|
304
|
+
.wm-btn-expand[aria-expanded="true"]::before {
|
|
305
|
+
transform: rotate(90deg);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.btn-expand:hover,
|
|
309
|
+
.wm-btn-expand:hover {
|
|
310
|
+
color: var(--wm-color-text);
|
|
311
|
+
background: none;
|
|
312
|
+
transform: none;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.btn-expand:disabled,
|
|
316
|
+
.wm-btn-expand:disabled {
|
|
317
|
+
color: var(--wm-color-text-muted);
|
|
318
|
+
opacity: 0.5;
|
|
319
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* ── Card ─────────────────────────────────────────────────────────────────────
|
|
2
|
+
* Base surface container. Provides background, border, radius, and elevation.
|
|
3
|
+
* Add padding via a .card-body child or directly on the element as needed.
|
|
4
|
+
* ─────────────────────────────────────────────────────────────────────────── */
|
|
5
|
+
|
|
6
|
+
.card,
|
|
7
|
+
.wm-card {
|
|
8
|
+
background: var(--wm-color-surface);
|
|
9
|
+
border: 1px solid var(--wm-color-border);
|
|
10
|
+
border-radius: var(--wm-radius-md);
|
|
11
|
+
box-shadow: var(--wm-shadow-soft);
|
|
12
|
+
backdrop-filter: blur(16px);
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* ── Structural slots ────────────────────────────────────────────────────── */
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* .card-header — Title / action row at the top of the card.
|
|
20
|
+
* Sits above .card-body with a bottom border separator.
|
|
21
|
+
*/
|
|
22
|
+
.card-header,
|
|
23
|
+
.wm-card-header {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
gap: 0.75rem;
|
|
28
|
+
padding: 0.875rem 1.25rem;
|
|
29
|
+
border-bottom: 1px solid var(--wm-color-border);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.card-header h3,
|
|
33
|
+
.card-header h4,
|
|
34
|
+
.wm-card-header h3,
|
|
35
|
+
.wm-card-header h4 {
|
|
36
|
+
margin: 0;
|
|
37
|
+
font-size: 0.9375rem;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* .card-body — Primary content area.
|
|
43
|
+
* Provides consistent internal padding.
|
|
44
|
+
*/
|
|
45
|
+
.card-body,
|
|
46
|
+
.wm-card-body {
|
|
47
|
+
padding: 1.25rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* .card-footer — Secondary action / metadata row at the bottom.
|
|
52
|
+
* Muted surface with a top border separator.
|
|
53
|
+
*/
|
|
54
|
+
.card-footer,
|
|
55
|
+
.wm-card-footer {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: flex-end;
|
|
59
|
+
gap: 0.5rem;
|
|
60
|
+
padding: 0.75rem 1.25rem;
|
|
61
|
+
border-top: 1px solid var(--wm-color-border);
|
|
62
|
+
background: var(--wm-color-surface-muted);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* ── Accent border variants ──────────────────────────────────────────────── */
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Left-border accent variants. Communicate semantic tone at a glance.
|
|
69
|
+
* Apply to .card in addition to the base class.
|
|
70
|
+
*
|
|
71
|
+
* <div class="card card-accent-success">…</div>
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
.card-accent-info,
|
|
75
|
+
.wm-card-accent-info {
|
|
76
|
+
border-left: 4px solid var(--wm-color-accent);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.card-accent-success,
|
|
80
|
+
.wm-card-accent-success {
|
|
81
|
+
border-left: 4px solid var(--wm-color-success);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.card-accent-warning,
|
|
85
|
+
.wm-card-accent-warning {
|
|
86
|
+
border-left: 4px solid var(--wm-color-warning);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.card-accent-danger,
|
|
90
|
+
.wm-card-accent-danger {
|
|
91
|
+
border-left: 4px solid var(--wm-color-danger);
|
|
92
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* ── Chart Container & Utilities ────────────────────────────────────────────── */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* .chart-container / .wm-chart-container
|
|
5
|
+
* Card wrapper for a chart. Provides a heading slot above the chart body.
|
|
6
|
+
* Typically wraps a third-party chart component (e.g. Recharts <ResponsiveContainer>).
|
|
7
|
+
*/
|
|
8
|
+
.chart-container,
|
|
9
|
+
.wm-chart-container {
|
|
10
|
+
background: var(--wm-color-surface);
|
|
11
|
+
border: 1px solid var(--wm-color-border);
|
|
12
|
+
border-radius: var(--wm-radius-base, 8px);
|
|
13
|
+
padding: 1.25rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.chart-container h3,
|
|
17
|
+
.wm-chart-container h3 {
|
|
18
|
+
margin: 0 0 1rem;
|
|
19
|
+
font-size: 1rem;
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* .chart-empty / .wm-chart-empty
|
|
25
|
+
* Muted placeholder text shown when no chart data is available.
|
|
26
|
+
* Render this instead of the chart library component when data is empty.
|
|
27
|
+
*/
|
|
28
|
+
.chart-empty,
|
|
29
|
+
.wm-chart-empty {
|
|
30
|
+
color: var(--wm-color-text-muted);
|
|
31
|
+
font-size: 0.875rem;
|
|
32
|
+
text-align: center;
|
|
33
|
+
padding: 2rem 1rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Token → Chart color mapping (for use with Recharts or any SVG chart library):
|
|
38
|
+
*
|
|
39
|
+
* Role Token Typical chart use
|
|
40
|
+
* ───────────────── ──────────────────────────── ─────────────────────────
|
|
41
|
+
* Primary series --wm-color-accent Spending / main bar
|
|
42
|
+
* Positive / savings --wm-color-success Realized savings bar
|
|
43
|
+
* Projected / muted + --wm-color-success-border Projected savings bar
|
|
44
|
+
* Warning series --wm-color-warning Budget threshold
|
|
45
|
+
* Danger series --wm-color-danger Overage / alert
|
|
46
|
+
* Grid lines --wm-color-border CartesianGrid stroke
|
|
47
|
+
* Axis text --wm-color-text-muted XAxis / YAxis tick color
|
|
48
|
+
* Tooltip background --wm-color-surface-solid Tooltip container fill
|
|
49
|
+
* Tooltip border --wm-color-border Tooltip container stroke
|
|
50
|
+
*
|
|
51
|
+
* In React, read tokens at render time via a useCssVar hook:
|
|
52
|
+
* const color = useCssVar("--wm-color-accent", "#1a73e8");
|
|
53
|
+
* Then pass as: <Bar fill={color} />
|
|
54
|
+
*/
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* ── Checkbox Filter List ────────────────────────────────────────────────────── */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* .checkbox-filter-group / .wm-checkbox-filter-group
|
|
5
|
+
* Vertical stack of labeled checkbox rows. Used in sidebar filter panels.
|
|
6
|
+
*/
|
|
7
|
+
.checkbox-filter-group,
|
|
8
|
+
.wm-checkbox-filter-group {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: 0.1rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* .checkbox-filter-label / .wm-checkbox-filter-label
|
|
16
|
+
* Clickable row: checkbox + name + optional count badge.
|
|
17
|
+
* The <label> wraps both the <input> and the text so the full row is tappable.
|
|
18
|
+
*/
|
|
19
|
+
.checkbox-filter-label,
|
|
20
|
+
.wm-checkbox-filter-label {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 0.5rem;
|
|
24
|
+
padding: 0.35rem 0.25rem;
|
|
25
|
+
border-radius: var(--wm-radius-xs, 4px);
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
font-size: 0.85rem;
|
|
28
|
+
color: var(--wm-color-text-secondary);
|
|
29
|
+
transition: background-color 0.1s;
|
|
30
|
+
user-select: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.checkbox-filter-label:hover,
|
|
34
|
+
.wm-checkbox-filter-label:hover {
|
|
35
|
+
background: var(--wm-color-surface-strong);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.checkbox-filter-label input[type="checkbox"],
|
|
39
|
+
.wm-checkbox-filter-label input[type="checkbox"] {
|
|
40
|
+
width: 15px;
|
|
41
|
+
height: 15px;
|
|
42
|
+
flex-shrink: 0;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
accent-color: var(--wm-color-accent);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* .checkbox-filter-name / .wm-checkbox-filter-name
|
|
49
|
+
* Text portion of the label — grows to fill available space.
|
|
50
|
+
*/
|
|
51
|
+
.checkbox-filter-name,
|
|
52
|
+
.wm-checkbox-filter-name {
|
|
53
|
+
flex: 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* .checkbox-filter-count / .wm-checkbox-filter-count
|
|
58
|
+
* Small count badge aligned to the right of each row.
|
|
59
|
+
*/
|
|
60
|
+
.checkbox-filter-count,
|
|
61
|
+
.wm-checkbox-filter-count {
|
|
62
|
+
font-size: 0.72rem;
|
|
63
|
+
font-weight: 600;
|
|
64
|
+
color: var(--wm-color-text-muted);
|
|
65
|
+
background: rgb(0 0 0 / 7%);
|
|
66
|
+
padding: 0.05rem 0.35rem;
|
|
67
|
+
border-radius: var(--wm-radius-base, 8px);
|
|
68
|
+
margin-left: auto;
|
|
69
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Code Block — syntax-highlighted samples with a header bar and copy button.
|
|
3
|
+
|
|
4
|
+
Structure:
|
|
5
|
+
<div class="code-sample" data-lang="html">
|
|
6
|
+
<button class="code-copy-btn" type="button">Copy</button>
|
|
7
|
+
<pre class="code-block"><code class="language-html">…</code></pre>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
The header bar (language label) is rendered via ::before on .code-sample using
|
|
11
|
+
the data-lang attribute. The copy button is absolutely positioned in that bar.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
.code-sample {
|
|
15
|
+
position: relative;
|
|
16
|
+
border: 1px solid var(--wm-color-border);
|
|
17
|
+
border-radius: var(--wm-radius-xs);
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Header bar — shows the language label */
|
|
22
|
+
.code-sample::before {
|
|
23
|
+
content: attr(data-lang);
|
|
24
|
+
display: block;
|
|
25
|
+
padding: 0 0.85rem;
|
|
26
|
+
line-height: 2rem;
|
|
27
|
+
min-height: 2rem;
|
|
28
|
+
background: var(--wm-color-surface-strong);
|
|
29
|
+
border-bottom: 1px solid var(--wm-color-border);
|
|
30
|
+
font-size: 0.68rem;
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, monospace;
|
|
33
|
+
letter-spacing: 0.06em;
|
|
34
|
+
color: var(--wm-color-text-muted);
|
|
35
|
+
text-transform: lowercase;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Copy button — top-right of the header bar */
|
|
39
|
+
.code-copy-btn {
|
|
40
|
+
all: unset;
|
|
41
|
+
position: absolute;
|
|
42
|
+
top: 0;
|
|
43
|
+
right: 0;
|
|
44
|
+
height: 2rem;
|
|
45
|
+
z-index: 1;
|
|
46
|
+
padding: 0 0.75rem;
|
|
47
|
+
font-size: 0.65rem;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
font-family: var(--wm-font-sans, 'Inter', sans-serif);
|
|
50
|
+
letter-spacing: 0.04em;
|
|
51
|
+
text-transform: uppercase;
|
|
52
|
+
color: var(--wm-color-text-muted);
|
|
53
|
+
border: none;
|
|
54
|
+
border-left: 1px solid var(--wm-color-border);
|
|
55
|
+
border-radius: 0;
|
|
56
|
+
background: transparent;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
line-height: 2rem;
|
|
59
|
+
transition: color 0.15s ease, background 0.15s ease;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.code-copy-btn:hover,
|
|
63
|
+
.code-copy-btn:focus {
|
|
64
|
+
background: var(--wm-color-surface-muted);
|
|
65
|
+
color: var(--wm-color-text);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Code block — the <pre> inside .code-sample */
|
|
69
|
+
pre.code-block {
|
|
70
|
+
background: var(--wm-color-bg);
|
|
71
|
+
border: none;
|
|
72
|
+
border-radius: 0;
|
|
73
|
+
padding: 0.85rem 1rem;
|
|
74
|
+
overflow-x: auto;
|
|
75
|
+
font-size: 0.75rem;
|
|
76
|
+
line-height: 1.7;
|
|
77
|
+
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, monospace;
|
|
78
|
+
color: var(--wm-color-text-secondary);
|
|
79
|
+
margin: 0;
|
|
80
|
+
tab-size: 2;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.code-block code {
|
|
84
|
+
font-family: inherit;
|
|
85
|
+
font-size: inherit;
|
|
86
|
+
color: inherit;
|
|
87
|
+
background: none;
|
|
88
|
+
padding: 0;
|
|
89
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* Empty state: centered placeholder for zero-data views. */
|
|
2
|
+
|
|
3
|
+
.empty-state,
|
|
4
|
+
.wm-empty-state {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
gap: 0.75rem;
|
|
10
|
+
padding: 3rem 2rem;
|
|
11
|
+
text-align: center;
|
|
12
|
+
color: var(--wm-color-text-muted);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.empty-state h2,
|
|
16
|
+
.empty-state h3,
|
|
17
|
+
.wm-empty-state h2,
|
|
18
|
+
.wm-empty-state h3 {
|
|
19
|
+
margin: 0;
|
|
20
|
+
font-size: 1.1rem;
|
|
21
|
+
font-weight: 600;
|
|
22
|
+
color: var(--wm-color-text-secondary);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.empty-state p,
|
|
26
|
+
.wm-empty-state p {
|
|
27
|
+
margin: 0;
|
|
28
|
+
font-size: 0.9rem;
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* File upload: drag-and-drop target zone. */
|
|
2
|
+
|
|
3
|
+
.file-upload,
|
|
4
|
+
.wm-file-upload {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
gap: 0.5rem;
|
|
10
|
+
border: 2px dashed var(--wm-color-border-strong);
|
|
11
|
+
border-radius: var(--wm-radius-xs, 4px);
|
|
12
|
+
padding: 2rem;
|
|
13
|
+
text-align: center;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
color: var(--wm-color-text-muted);
|
|
16
|
+
font-size: 0.9rem;
|
|
17
|
+
transition: border-color 0.2s, background-color 0.2s;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.file-upload:hover,
|
|
21
|
+
.wm-file-upload:hover {
|
|
22
|
+
border-color: var(--wm-color-accent);
|
|
23
|
+
background: color-mix(in srgb, var(--wm-color-accent-soft) 35%, transparent);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.file-upload input[type="file"],
|
|
27
|
+
.wm-file-upload input[type="file"] {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|