@jaimevalasek/aioson 1.30.0 → 1.30.2

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.
Files changed (93) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/docs/design-previews/cognitive-core-ui-auth.html +95 -0
  3. package/docs/design-previews/cognitive-core-ui-kanban.html +231 -0
  4. package/docs/design-previews/cognitive-core-ui-list-detail.html +174 -0
  5. package/docs/design-previews/cognitive-core-ui-preview.css +1315 -0
  6. package/docs/design-previews/cognitive-core-ui-settings.html +142 -0
  7. package/docs/design-previews/cognitive-core-ui-website.html +190 -1009
  8. package/docs/design-previews/cognitive-core-ui.html +281 -463
  9. package/docs/design-previews/index.html +83 -31
  10. package/package.json +1 -1
  11. package/src/constants.js +578 -514
  12. package/template/.aioson/docs/integrations/dashboard-app-form-publish-mapping.md +183 -0
  13. package/template/.aioson/docs/play/README.md +74 -0
  14. package/template/.aioson/docs/play/agent-usage-guide.md +112 -0
  15. package/template/.aioson/docs/play/app-compatibility-guide.md +117 -0
  16. package/template/.aioson/docs/play/auth-services-and-testing.md +235 -0
  17. package/template/.aioson/docs/play/llm-data-and-bindings.md +238 -0
  18. package/template/.aioson/docs/play/manifest-and-runtime.md +267 -0
  19. package/template/.aioson/docs/play/source-map.md +104 -0
  20. package/template/.aioson/skills/design/aurora-command-ui/SKILL.md +266 -243
  21. package/template/.aioson/skills/design/aurora-command-ui/references/art-direction.md +293 -293
  22. package/template/.aioson/skills/design/aurora-command-ui/references/components.md +827 -827
  23. package/template/.aioson/skills/design/aurora-command-ui/references/dashboards.md +250 -250
  24. package/template/.aioson/skills/design/aurora-command-ui/references/design-tokens.md +585 -585
  25. package/template/.aioson/skills/design/aurora-command-ui/references/motion.md +365 -365
  26. package/template/.aioson/skills/design/aurora-command-ui/references/patterns.md +485 -482
  27. package/template/.aioson/skills/design/aurora-command-ui/references/websites.md +386 -387
  28. package/template/.aioson/skills/design/bold-editorial-ui/SKILL.md +228 -205
  29. package/template/.aioson/skills/design/bold-editorial-ui/references/art-direction.md +338 -338
  30. package/template/.aioson/skills/design/bold-editorial-ui/references/components.md +977 -977
  31. package/template/.aioson/skills/design/bold-editorial-ui/references/dashboards.md +218 -218
  32. package/template/.aioson/skills/design/bold-editorial-ui/references/design-tokens.md +326 -326
  33. package/template/.aioson/skills/design/bold-editorial-ui/references/motion.md +461 -461
  34. package/template/.aioson/skills/design/bold-editorial-ui/references/patterns.md +293 -293
  35. package/template/.aioson/skills/design/bold-editorial-ui/references/websites.md +352 -352
  36. package/template/.aioson/skills/design/clean-saas-ui/SKILL.md +233 -210
  37. package/template/.aioson/skills/design/clean-saas-ui/references/art-direction.md +319 -319
  38. package/template/.aioson/skills/design/clean-saas-ui/references/components.md +365 -365
  39. package/template/.aioson/skills/design/clean-saas-ui/references/dashboards.md +196 -196
  40. package/template/.aioson/skills/design/clean-saas-ui/references/design-tokens.md +244 -244
  41. package/template/.aioson/skills/design/clean-saas-ui/references/motion.md +235 -235
  42. package/template/.aioson/skills/design/clean-saas-ui/references/patterns.md +215 -215
  43. package/template/.aioson/skills/design/clean-saas-ui/references/websites.md +295 -295
  44. package/template/.aioson/skills/design/cognitive-core-ui/SKILL.md +239 -203
  45. package/template/.aioson/skills/design/cognitive-core-ui/references/art-direction.md +339 -339
  46. package/template/.aioson/skills/design/cognitive-core-ui/references/components.md +417 -407
  47. package/template/.aioson/skills/design/cognitive-core-ui/references/dashboards.md +289 -272
  48. package/template/.aioson/skills/design/cognitive-core-ui/references/design-tokens.md +525 -524
  49. package/template/.aioson/skills/design/cognitive-core-ui/references/motion.md +279 -279
  50. package/template/.aioson/skills/design/cognitive-core-ui/references/patterns.md +355 -289
  51. package/template/.aioson/skills/design/cognitive-core-ui/references/websites.md +443 -437
  52. package/template/.aioson/skills/design/glassmorphism-ui/SKILL.md +245 -222
  53. package/template/.aioson/skills/design/glassmorphism-ui/references/art-direction.md +159 -159
  54. package/template/.aioson/skills/design/glassmorphism-ui/references/components.md +498 -498
  55. package/template/.aioson/skills/design/glassmorphism-ui/references/dashboards.md +236 -236
  56. package/template/.aioson/skills/design/glassmorphism-ui/references/design-tokens.md +274 -274
  57. package/template/.aioson/skills/design/glassmorphism-ui/references/motion.md +355 -355
  58. package/template/.aioson/skills/design/glassmorphism-ui/references/patterns.md +198 -198
  59. package/template/.aioson/skills/design/glassmorphism-ui/references/websites.md +307 -307
  60. package/template/.aioson/skills/design/interface-design/SKILL.md +68 -47
  61. package/template/.aioson/skills/design/interface-design/references/components-and-states.md +105 -105
  62. package/template/.aioson/skills/design/interface-design/references/design-directions.md +101 -101
  63. package/template/.aioson/skills/design/interface-design/references/handoff-and-quality.md +92 -71
  64. package/template/.aioson/skills/design/interface-design/references/intent-and-domain.md +74 -74
  65. package/template/.aioson/skills/design/interface-design/references/tokens-and-depth.md +173 -173
  66. package/template/.aioson/skills/design/neo-brutalist-ui/SKILL.md +236 -213
  67. package/template/.aioson/skills/design/neo-brutalist-ui/references/art-direction.md +228 -228
  68. package/template/.aioson/skills/design/neo-brutalist-ui/references/components.md +855 -855
  69. package/template/.aioson/skills/design/neo-brutalist-ui/references/dashboards.md +334 -334
  70. package/template/.aioson/skills/design/neo-brutalist-ui/references/design-tokens.md +342 -342
  71. package/template/.aioson/skills/design/neo-brutalist-ui/references/motion.md +286 -286
  72. package/template/.aioson/skills/design/neo-brutalist-ui/references/patterns.md +458 -458
  73. package/template/.aioson/skills/design/neo-brutalist-ui/references/websites.md +723 -723
  74. package/template/.aioson/skills/design/premium-command-center-ui/SKILL.md +83 -62
  75. package/template/.aioson/skills/design/premium-command-center-ui/references/operations.md +74 -74
  76. package/template/.aioson/skills/design/premium-command-center-ui/references/patterns.md +116 -116
  77. package/template/.aioson/skills/design/premium-command-center-ui/references/validation.md +47 -47
  78. package/template/.aioson/skills/design/premium-command-center-ui/references/visual-system.md +215 -215
  79. package/template/.aioson/skills/design/pt.squarespace.com/.skill-meta.json +31 -31
  80. package/template/.aioson/skills/design/pt.squarespace.com/SKILL.md +94 -66
  81. package/template/.aioson/skills/design/pt.squarespace.com/references/components.md +366 -366
  82. package/template/.aioson/skills/design/pt.squarespace.com/references/design-tokens.md +150 -150
  83. package/template/.aioson/skills/design/pt.squarespace.com/references/motion.md +270 -270
  84. package/template/.aioson/skills/design/pt.squarespace.com/references/patterns.md +189 -189
  85. package/template/.aioson/skills/design/pt.squarespace.com/references/websites.md +161 -161
  86. package/template/.aioson/skills/design/warm-craft-ui/SKILL.md +232 -209
  87. package/template/.aioson/skills/design/warm-craft-ui/references/art-direction.md +324 -324
  88. package/template/.aioson/skills/design/warm-craft-ui/references/components.md +508 -508
  89. package/template/.aioson/skills/design/warm-craft-ui/references/dashboards.md +223 -223
  90. package/template/.aioson/skills/design/warm-craft-ui/references/design-tokens.md +374 -374
  91. package/template/.aioson/skills/design/warm-craft-ui/references/motion.md +356 -356
  92. package/template/.aioson/skills/design/warm-craft-ui/references/patterns.md +288 -288
  93. package/template/.aioson/skills/design/warm-craft-ui/references/websites.md +289 -289
@@ -1,977 +1,977 @@
1
- # Components — Bold Editorial UI
2
-
3
- All reusable component specifications. Uses tokens from `design-tokens.md`. Every component must respect the Bold Editorial visual language: minimal radius, cinematic shadows, mono captions, display font for impact numbers.
4
-
5
- ---
6
-
7
- ## Typography Components
8
-
9
- ### Display Heading
10
- ```css
11
- .display-heading {
12
- font-family: var(--font-display);
13
- font-weight: var(--weight-bold);
14
- letter-spacing: var(--tracking-tighter);
15
- line-height: var(--leading-none);
16
- color: var(--text-heading);
17
- }
18
-
19
- /* Size variants */
20
- .display-heading--xl { font-size: var(--text-6xl); } /* manifesto */
21
- .display-heading--lg { font-size: var(--text-5xl); } /* hero */
22
- .display-heading--md { font-size: var(--text-4xl); } /* section hero */
23
- .display-heading--sm { font-size: var(--text-3xl); } /* card title */
24
- ```
25
-
26
- ### Section Heading
27
- ```css
28
- .section-heading {
29
- font-family: var(--font-display);
30
- font-size: var(--text-2xl);
31
- font-weight: var(--weight-bold);
32
- letter-spacing: var(--tracking-tight);
33
- line-height: var(--leading-snug);
34
- color: var(--text-heading);
35
- }
36
- ```
37
-
38
- ### Subheading
39
- ```css
40
- .subheading {
41
- font-family: var(--font-body);
42
- font-size: var(--text-lg);
43
- font-weight: var(--weight-medium);
44
- letter-spacing: var(--tracking-wide);
45
- color: var(--text-primary);
46
- }
47
- ```
48
-
49
- ### Mono Caption
50
- The connective tissue of this system. Used for ALL metadata, overlines, categories, dates, version tags.
51
- ```css
52
- .mono-caption {
53
- font-family: var(--font-mono);
54
- font-size: var(--text-xs);
55
- font-weight: var(--weight-medium);
56
- letter-spacing: var(--tracking-widest);
57
- text-transform: uppercase;
58
- color: var(--text-secondary);
59
- }
60
-
61
- /* With accent */
62
- .mono-caption--accent {
63
- color: var(--accent);
64
- }
65
- ```
66
-
67
- ### Body Text
68
- ```css
69
- .body-text {
70
- font-family: var(--font-body);
71
- font-size: var(--text-base);
72
- font-weight: var(--weight-regular);
73
- line-height: var(--leading-relaxed);
74
- color: var(--text-primary);
75
- }
76
-
77
- .body-text--lead {
78
- font-size: var(--text-lg);
79
- line-height: var(--leading-normal);
80
- color: var(--text-primary);
81
- }
82
- ```
83
-
84
- ### Quote Block
85
- ```css
86
- .quote-block {
87
- font-family: var(--font-display);
88
- font-size: var(--text-2xl);
89
- font-style: italic;
90
- font-weight: var(--weight-medium);
91
- line-height: var(--leading-snug);
92
- color: var(--text-heading);
93
- border-left: 4px solid var(--accent);
94
- padding-left: var(--space-6);
95
- margin: var(--space-8) 0;
96
- }
97
- ```
98
-
99
- ### Counter / Stat Number
100
- ```css
101
- .stat-number {
102
- font-family: var(--font-display);
103
- font-weight: var(--weight-bold);
104
- letter-spacing: var(--tracking-tighter);
105
- line-height: var(--leading-none);
106
- color: var(--text-heading);
107
- }
108
-
109
- .stat-number--xl { font-size: var(--text-5xl); }
110
- .stat-number--lg { font-size: var(--text-4xl); }
111
- .stat-number--md { font-size: var(--text-3xl); }
112
- ```
113
-
114
- ---
115
-
116
- ## Navigation
117
-
118
- ### Top Bar
119
- ```css
120
- .topbar {
121
- height: 64px;
122
- display: flex;
123
- align-items: center;
124
- justify-content: space-between;
125
- padding: 0 var(--space-8);
126
- position: sticky;
127
- top: 0;
128
- z-index: var(--z-sticky);
129
- background: rgba(10, 10, 10, 0.85); /* --bg-base with opacity */
130
- backdrop-filter: blur(12px);
131
- border-bottom: 1px solid var(--border-subtle);
132
- transition: var(--transition-theme);
133
- }
134
-
135
- /* Logo */
136
- .topbar__logo {
137
- font-family: var(--font-display);
138
- font-size: var(--text-lg);
139
- font-weight: var(--weight-bold);
140
- color: var(--text-heading);
141
- text-decoration: none;
142
- }
143
-
144
- /* Nav links */
145
- .topbar__nav {
146
- display: flex;
147
- gap: var(--space-8);
148
- list-style: none;
149
- }
150
-
151
- .topbar__link {
152
- font-family: var(--font-body);
153
- font-size: var(--text-sm);
154
- font-weight: var(--weight-medium);
155
- color: var(--text-secondary);
156
- text-decoration: none;
157
- transition: color var(--transition-fast);
158
- }
159
-
160
- .topbar__link:hover {
161
- color: var(--text-heading);
162
- }
163
-
164
- /* Light variant */
165
- [data-theme="light"] .topbar {
166
- background: rgba(250, 250, 247, 0.90);
167
- }
168
- ```
169
-
170
- ### Sidebar (app shell)
171
- ```css
172
- .sidebar {
173
- width: 200px;
174
- flex-shrink: 0;
175
- background: var(--bg-base);
176
- border-right: 1px solid var(--border-subtle);
177
- display: flex;
178
- flex-direction: column;
179
- padding: var(--space-6) var(--space-3);
180
- gap: var(--space-1);
181
- overflow-y: auto;
182
- }
183
-
184
- .sidebar__item {
185
- display: flex;
186
- align-items: center;
187
- gap: var(--space-3);
188
- padding: var(--space-2) var(--space-3);
189
- border-radius: var(--radius-md);
190
- font-family: var(--font-mono);
191
- font-size: var(--text-xs);
192
- font-weight: var(--weight-medium);
193
- letter-spacing: var(--tracking-wider);
194
- text-transform: uppercase;
195
- color: var(--text-secondary);
196
- cursor: pointer;
197
- transition: background var(--transition-fast), color var(--transition-fast);
198
- }
199
-
200
- .sidebar__item:hover {
201
- background: var(--bg-surface);
202
- color: var(--text-primary);
203
- }
204
-
205
- .sidebar__item--active {
206
- background: var(--bg-surface);
207
- color: var(--text-heading);
208
- border-left: 2px solid var(--accent);
209
- padding-left: calc(var(--space-3) - 2px);
210
- }
211
-
212
- .sidebar__section-label {
213
- font-family: var(--font-mono);
214
- font-size: 0.65rem;
215
- font-weight: var(--weight-medium);
216
- letter-spacing: var(--tracking-widest);
217
- text-transform: uppercase;
218
- color: var(--text-muted);
219
- padding: var(--space-4) var(--space-3) var(--space-2);
220
- }
221
- ```
222
-
223
- ---
224
-
225
- ## Buttons
226
-
227
- ### Primary Button
228
- ```css
229
- .btn-primary {
230
- display: inline-flex;
231
- align-items: center;
232
- justify-content: center;
233
- gap: var(--space-2);
234
- height: 44px;
235
- padding: 0 var(--space-6);
236
- background: var(--accent);
237
- color: var(--accent-contrast);
238
- border: none;
239
- border-radius: var(--radius-md);
240
- font-family: var(--font-body);
241
- font-size: var(--text-sm);
242
- font-weight: var(--weight-semibold);
243
- letter-spacing: var(--tracking-wide);
244
- cursor: pointer;
245
- transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
246
- }
247
-
248
- .btn-primary:hover {
249
- background: var(--accent-hover);
250
- box-shadow: var(--shadow-sm);
251
- }
252
-
253
- .btn-primary:active {
254
- transform: scale(0.98);
255
- }
256
-
257
- .btn-primary:focus-visible {
258
- outline: 2px solid var(--accent);
259
- outline-offset: 2px;
260
- }
261
-
262
- .btn-primary:disabled {
263
- opacity: 0.4;
264
- cursor: not-allowed;
265
- }
266
- ```
267
-
268
- ### Hero CTA Button (large variant)
269
- ```css
270
- .btn-hero {
271
- height: 56px;
272
- padding: 0 var(--space-10);
273
- font-size: var(--text-base);
274
- font-weight: var(--weight-bold);
275
- letter-spacing: var(--tracking-wide);
276
- text-transform: uppercase;
277
- border-radius: var(--radius-md);
278
- background: var(--accent);
279
- color: var(--accent-contrast);
280
- box-shadow: var(--shadow-glow);
281
- transition: background var(--transition-fast), box-shadow var(--transition-base), transform var(--transition-fast);
282
- }
283
-
284
- .btn-hero:hover {
285
- background: var(--accent-hover);
286
- box-shadow: var(--shadow-glow), var(--shadow-md);
287
- transform: translateY(-1px);
288
- }
289
- ```
290
-
291
- ### Secondary Button
292
- ```css
293
- .btn-secondary {
294
- height: 44px;
295
- padding: 0 var(--space-6);
296
- background: transparent;
297
- color: var(--text-primary);
298
- border: 1px solid var(--border-medium);
299
- border-radius: var(--radius-md);
300
- font-size: var(--text-sm);
301
- font-weight: var(--weight-medium);
302
- cursor: pointer;
303
- transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
304
- }
305
-
306
- .btn-secondary:hover {
307
- background: var(--bg-elevated);
308
- border-color: var(--border-strong);
309
- color: var(--text-heading);
310
- }
311
- ```
312
-
313
- ### Ghost Button
314
- ```css
315
- .btn-ghost {
316
- height: 44px;
317
- padding: 0 var(--space-6);
318
- background: transparent;
319
- color: var(--text-secondary);
320
- border: 1px solid transparent;
321
- border-radius: var(--radius-md);
322
- font-size: var(--text-sm);
323
- font-weight: var(--weight-medium);
324
- cursor: pointer;
325
- transition: background var(--transition-fast), color var(--transition-fast);
326
- }
327
-
328
- .btn-ghost:hover {
329
- background: var(--bg-surface);
330
- color: var(--text-heading);
331
- }
332
- ```
333
-
334
- ### Icon Button
335
- ```css
336
- .btn-icon {
337
- width: 40px;
338
- height: 40px;
339
- display: inline-flex;
340
- align-items: center;
341
- justify-content: center;
342
- background: transparent;
343
- border: 1px solid var(--border-subtle);
344
- border-radius: var(--radius-md);
345
- color: var(--text-secondary);
346
- cursor: pointer;
347
- transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
348
- }
349
-
350
- .btn-icon:hover {
351
- background: var(--bg-surface);
352
- border-color: var(--border-medium);
353
- color: var(--text-heading);
354
- }
355
- ```
356
-
357
- ---
358
-
359
- ## Cards
360
-
361
- ### Base Card
362
- ```css
363
- .card {
364
- background: var(--bg-surface);
365
- border: 1px solid var(--border-subtle);
366
- border-radius: var(--radius-lg);
367
- padding: var(--space-6);
368
- box-shadow: var(--shadow-sm);
369
- transition: box-shadow var(--transition-base), border-color var(--transition-base);
370
- }
371
-
372
- .card:hover {
373
- box-shadow: var(--shadow-md);
374
- border-color: var(--border-medium);
375
- }
376
- ```
377
-
378
- ### Stat Card
379
- ```css
380
- .card-stat {
381
- background: var(--bg-surface);
382
- border: 1px solid var(--border-subtle);
383
- border-radius: var(--radius-lg);
384
- padding: var(--space-6) var(--space-8);
385
- box-shadow: var(--shadow-sm);
386
- }
387
-
388
- .card-stat__label {
389
- font-family: var(--font-mono);
390
- font-size: var(--text-xs);
391
- font-weight: var(--weight-medium);
392
- letter-spacing: var(--tracking-widest);
393
- text-transform: uppercase;
394
- color: var(--text-secondary);
395
- margin-bottom: var(--space-2);
396
- }
397
-
398
- .card-stat__value {
399
- font-family: var(--font-display);
400
- font-size: var(--text-4xl);
401
- font-weight: var(--weight-bold);
402
- letter-spacing: var(--tracking-tighter);
403
- line-height: var(--leading-none);
404
- color: var(--text-heading);
405
- margin-bottom: var(--space-2);
406
- }
407
-
408
- .card-stat__trend {
409
- display: inline-flex;
410
- align-items: center;
411
- gap: var(--space-1);
412
- font-family: var(--font-mono);
413
- font-size: var(--text-xs);
414
- font-weight: var(--weight-medium);
415
- letter-spacing: var(--tracking-wide);
416
- }
417
-
418
- .card-stat__trend--up { color: var(--semantic-green); }
419
- .card-stat__trend--down { color: var(--semantic-red); }
420
- ```
421
-
422
- ### Feature Card
423
- ```css
424
- .card-feature {
425
- background: var(--bg-surface);
426
- border: 1px solid var(--border-subtle);
427
- border-radius: var(--radius-lg);
428
- padding: var(--space-10);
429
- box-shadow: var(--shadow-sm);
430
- transition: box-shadow var(--transition-base), transform var(--transition-base);
431
- }
432
-
433
- .card-feature:hover {
434
- box-shadow: var(--shadow-md);
435
- transform: translateY(-2px);
436
- }
437
-
438
- .card-feature__icon-area {
439
- width: 48px;
440
- height: 48px;
441
- display: flex;
442
- align-items: center;
443
- justify-content: center;
444
- background: var(--accent-dim);
445
- border-radius: var(--radius-md);
446
- margin-bottom: var(--space-6);
447
- color: var(--accent);
448
- }
449
-
450
- .card-feature__title {
451
- font-family: var(--font-display);
452
- font-size: var(--text-xl);
453
- font-weight: var(--weight-bold);
454
- letter-spacing: var(--tracking-tight);
455
- color: var(--text-heading);
456
- margin-bottom: var(--space-3);
457
- }
458
-
459
- .card-feature__description {
460
- font-family: var(--font-body);
461
- font-size: var(--text-sm);
462
- line-height: var(--leading-relaxed);
463
- color: var(--text-secondary);
464
- }
465
- ```
466
-
467
- ### Media Card
468
- ```css
469
- .card-media {
470
- background: var(--bg-surface);
471
- border: 1px solid var(--border-subtle);
472
- border-radius: var(--radius-lg);
473
- overflow: hidden;
474
- box-shadow: var(--shadow-sm);
475
- transition: box-shadow var(--transition-base), transform var(--transition-base);
476
- }
477
-
478
- .card-media:hover {
479
- box-shadow: var(--shadow-md);
480
- transform: translateY(-2px);
481
- }
482
-
483
- .card-media__image {
484
- width: 100%;
485
- aspect-ratio: 16 / 9;
486
- object-fit: cover;
487
- display: block;
488
- transition: transform var(--transition-slow);
489
- }
490
-
491
- .card-media:hover .card-media__image {
492
- transform: scale(1.03);
493
- }
494
-
495
- .card-media__body {
496
- padding: var(--space-5);
497
- }
498
-
499
- .card-media__overline {
500
- /* uses .mono-caption */
501
- margin-bottom: var(--space-2);
502
- }
503
-
504
- .card-media__title {
505
- font-family: var(--font-display);
506
- font-size: var(--text-lg);
507
- font-weight: var(--weight-bold);
508
- letter-spacing: var(--tracking-tight);
509
- color: var(--text-heading);
510
- }
511
- ```
512
-
513
- ---
514
-
515
- ## Forms
516
-
517
- ### Input
518
- ```css
519
- .input {
520
- height: 44px;
521
- width: 100%;
522
- padding: 0 var(--space-4);
523
- background: transparent;
524
- border: 1px solid var(--border-medium);
525
- border-radius: var(--radius-md);
526
- font-family: var(--font-body);
527
- font-size: var(--text-sm);
528
- color: var(--text-heading);
529
- transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
530
- outline: none;
531
- }
532
-
533
- .input::placeholder {
534
- color: var(--text-muted);
535
- }
536
-
537
- .input:hover {
538
- border-color: var(--border-strong);
539
- }
540
-
541
- .input:focus {
542
- border-color: var(--accent);
543
- box-shadow: 0 0 0 3px var(--accent-dim);
544
- }
545
-
546
- .input--error {
547
- border-color: var(--semantic-red);
548
- }
549
-
550
- .input--error:focus {
551
- box-shadow: 0 0 0 3px var(--semantic-red-dim);
552
- }
553
- ```
554
-
555
- ### Minimal Input (editorial style — border-bottom only)
556
- ```css
557
- .input-minimal {
558
- width: 100%;
559
- height: 48px;
560
- background: transparent;
561
- border: none;
562
- border-bottom: 1px solid var(--border-medium);
563
- border-radius: 0;
564
- padding: var(--space-2) 0;
565
- font-family: var(--font-body);
566
- font-size: var(--text-base);
567
- color: var(--text-heading);
568
- transition: border-color var(--transition-fast);
569
- outline: none;
570
- }
571
-
572
- .input-minimal:focus {
573
- border-bottom-color: var(--accent);
574
- }
575
- ```
576
-
577
- ### Label
578
- ```css
579
- .label {
580
- display: block;
581
- font-family: var(--font-mono);
582
- font-size: var(--text-xs);
583
- font-weight: var(--weight-medium);
584
- letter-spacing: var(--tracking-widest);
585
- text-transform: uppercase;
586
- color: var(--text-secondary);
587
- margin-bottom: var(--space-2);
588
- }
589
- ```
590
-
591
- ### Helper / Error Text
592
- ```css
593
- .helper-text {
594
- font-family: var(--font-body);
595
- font-size: var(--text-xs);
596
- color: var(--text-muted);
597
- margin-top: var(--space-1);
598
- }
599
-
600
- .error-text {
601
- font-family: var(--font-mono);
602
- font-size: var(--text-xs);
603
- letter-spacing: var(--tracking-wide);
604
- color: var(--semantic-red);
605
- margin-top: var(--space-1);
606
- }
607
- ```
608
-
609
- ### Textarea
610
- ```css
611
- .textarea {
612
- width: 100%;
613
- min-height: 120px;
614
- padding: var(--space-3) var(--space-4);
615
- background: transparent;
616
- border: 1px solid var(--border-medium);
617
- border-radius: var(--radius-md);
618
- font-family: var(--font-body);
619
- font-size: var(--text-sm);
620
- line-height: var(--leading-relaxed);
621
- color: var(--text-heading);
622
- resize: vertical;
623
- outline: none;
624
- transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
625
- }
626
-
627
- .textarea:focus {
628
- border-color: var(--accent);
629
- box-shadow: 0 0 0 3px var(--accent-dim);
630
- }
631
- ```
632
-
633
- ### Checkbox
634
- ```css
635
- .checkbox-wrapper {
636
- display: flex;
637
- align-items: flex-start;
638
- gap: var(--space-3);
639
- cursor: pointer;
640
- }
641
-
642
- .checkbox {
643
- width: 18px;
644
- height: 18px;
645
- min-width: 18px;
646
- background: transparent;
647
- border: 1px solid var(--border-strong);
648
- border-radius: var(--radius-sm);
649
- display: flex;
650
- align-items: center;
651
- justify-content: center;
652
- transition: background var(--transition-fast), border-color var(--transition-fast);
653
- }
654
-
655
- .checkbox--checked {
656
- background: var(--accent);
657
- border-color: var(--accent);
658
- }
659
-
660
- /* SVG checkmark animates in via stroke-dashoffset */
661
- ```
662
-
663
- ### Toggle Switch
664
- ```css
665
- .toggle {
666
- width: 44px;
667
- height: 24px;
668
- background: var(--bg-elevated);
669
- border: 1px solid var(--border-medium);
670
- border-radius: var(--radius-full);
671
- position: relative;
672
- cursor: pointer;
673
- transition: background var(--transition-base), border-color var(--transition-base);
674
- }
675
-
676
- .toggle--checked {
677
- background: var(--accent);
678
- border-color: var(--accent);
679
- }
680
-
681
- .toggle__thumb {
682
- position: absolute;
683
- top: 3px;
684
- left: 3px;
685
- width: 16px;
686
- height: 16px;
687
- background: var(--text-heading);
688
- border-radius: var(--radius-full);
689
- box-shadow: var(--shadow-xs);
690
- transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
691
- }
692
-
693
- .toggle--checked .toggle__thumb {
694
- transform: translateX(20px);
695
- }
696
- ```
697
-
698
- ---
699
-
700
- ## Data Display
701
-
702
- ### Table
703
- ```css
704
- .table-container {
705
- overflow-x: auto;
706
- border-radius: var(--radius-lg);
707
- border: 1px solid var(--border-subtle);
708
- }
709
-
710
- .table {
711
- width: 100%;
712
- border-collapse: collapse;
713
- font-family: var(--font-body);
714
- font-size: var(--text-sm);
715
- }
716
-
717
- .table th {
718
- font-family: var(--font-mono);
719
- font-size: var(--text-xs);
720
- font-weight: var(--weight-medium);
721
- letter-spacing: var(--tracking-widest);
722
- text-transform: uppercase;
723
- color: var(--text-secondary);
724
- padding: var(--space-4) var(--space-5);
725
- text-align: left;
726
- border-bottom: 1px solid var(--border-medium);
727
- background: var(--bg-elevated);
728
- }
729
-
730
- .table td {
731
- padding: var(--space-4) var(--space-5);
732
- color: var(--text-primary);
733
- border-bottom: 1px solid var(--border-subtle);
734
- }
735
-
736
- .table tr:last-child td {
737
- border-bottom: none;
738
- }
739
-
740
- .table tr:hover td {
741
- background: var(--bg-elevated);
742
- }
743
- ```
744
-
745
- ### Badge
746
- ```css
747
- .badge {
748
- display: inline-flex;
749
- align-items: center;
750
- height: 22px;
751
- padding: 0 var(--space-2);
752
- border-radius: var(--radius-sm);
753
- font-family: var(--font-mono);
754
- font-size: 0.65rem;
755
- font-weight: var(--weight-medium);
756
- letter-spacing: var(--tracking-wider);
757
- text-transform: uppercase;
758
- }
759
-
760
- .badge--default { background: var(--bg-elevated); color: var(--text-secondary); }
761
- .badge--accent { background: var(--accent-dim); color: var(--accent); }
762
- .badge--green { background: var(--semantic-green-dim); color: var(--semantic-green); }
763
- .badge--amber { background: var(--semantic-amber-dim); color: var(--semantic-amber); }
764
- .badge--red { background: var(--semantic-red-dim); color: var(--semantic-red); }
765
- .badge--blue { background: var(--semantic-blue-dim); color: var(--semantic-blue); }
766
- ```
767
-
768
- ### Avatar
769
- ```css
770
- .avatar {
771
- border-radius: var(--radius-md); /* editorial: square-ish, not circular */
772
- object-fit: cover;
773
- background: var(--bg-elevated);
774
- flex-shrink: 0;
775
- }
776
-
777
- .avatar--xs { width: 24px; height: 24px; }
778
- .avatar--sm { width: 32px; height: 32px; }
779
- .avatar--md { width: 40px; height: 40px; }
780
- .avatar--lg { width: 56px; height: 56px; }
781
- .avatar--xl { width: 80px; height: 80px; }
782
- .avatar--circle { border-radius: var(--radius-full); }
783
- ```
784
-
785
- ### Code Block
786
- ```css
787
- .code-block {
788
- background: var(--bg-elevated);
789
- border: 1px solid var(--border-subtle);
790
- border-radius: var(--radius-md);
791
- overflow: hidden;
792
- }
793
-
794
- .code-block__header {
795
- display: flex;
796
- align-items: center;
797
- justify-content: space-between;
798
- padding: var(--space-3) var(--space-5);
799
- border-bottom: 1px solid var(--border-subtle);
800
- background: var(--bg-overlay);
801
- }
802
-
803
- .code-block__filename {
804
- font-family: var(--font-mono);
805
- font-size: var(--text-xs);
806
- color: var(--text-secondary);
807
- letter-spacing: var(--tracking-wide);
808
- }
809
-
810
- .code-block__body {
811
- padding: var(--space-5);
812
- font-family: var(--font-mono);
813
- font-size: var(--text-sm);
814
- line-height: var(--leading-loose);
815
- color: var(--text-primary);
816
- overflow-x: auto;
817
- }
818
- ```
819
-
820
- ### Divider
821
- ```css
822
- .divider {
823
- height: 1px;
824
- background: var(--border-subtle);
825
- border: none;
826
- }
827
-
828
- .divider--accent {
829
- height: 2px;
830
- background: var(--accent);
831
- border: none;
832
- }
833
- ```
834
-
835
- ---
836
-
837
- ## Feedback
838
-
839
- ### Toast
840
- ```css
841
- .toast {
842
- display: flex;
843
- align-items: flex-start;
844
- gap: var(--space-3);
845
- padding: var(--space-4) var(--space-5);
846
- background: var(--bg-surface);
847
- border: 1px solid var(--border-subtle);
848
- border-left: 4px solid var(--accent);
849
- border-radius: var(--radius-md);
850
- box-shadow: var(--shadow-lg);
851
- max-width: 400px;
852
- }
853
-
854
- .toast--success { border-left-color: var(--semantic-green); }
855
- .toast--warning { border-left-color: var(--semantic-amber); }
856
- .toast--error { border-left-color: var(--semantic-red); }
857
-
858
- .toast__title {
859
- font-family: var(--font-body);
860
- font-size: var(--text-sm);
861
- font-weight: var(--weight-semibold);
862
- color: var(--text-heading);
863
- }
864
-
865
- .toast__message {
866
- font-family: var(--font-body);
867
- font-size: var(--text-sm);
868
- color: var(--text-secondary);
869
- margin-top: var(--space-1);
870
- }
871
- ```
872
-
873
- ### Modal
874
- ```css
875
- .modal-backdrop {
876
- position: fixed;
877
- inset: 0;
878
- background: rgba(0, 0, 0, 0.70);
879
- backdrop-filter: blur(4px);
880
- z-index: var(--z-modal);
881
- display: flex;
882
- align-items: center;
883
- justify-content: center;
884
- padding: var(--space-6);
885
- }
886
-
887
- .modal {
888
- background: var(--bg-surface);
889
- border: 1px solid var(--border-medium);
890
- border-radius: var(--radius-xl);
891
- box-shadow: var(--shadow-xl);
892
- width: 100%;
893
- max-width: 560px;
894
- max-height: 90vh;
895
- overflow-y: auto;
896
- }
897
-
898
- .modal__header {
899
- display: flex;
900
- align-items: center;
901
- justify-content: space-between;
902
- padding: var(--space-6) var(--space-8);
903
- border-bottom: 1px solid var(--border-subtle);
904
- }
905
-
906
- .modal__title {
907
- font-family: var(--font-display);
908
- font-size: var(--text-xl);
909
- font-weight: var(--weight-bold);
910
- letter-spacing: var(--tracking-tight);
911
- color: var(--text-heading);
912
- }
913
-
914
- .modal__body {
915
- padding: var(--space-8);
916
- }
917
-
918
- .modal__footer {
919
- display: flex;
920
- justify-content: flex-end;
921
- gap: var(--space-3);
922
- padding: var(--space-5) var(--space-8);
923
- border-top: 1px solid var(--border-subtle);
924
- }
925
- ```
926
-
927
- ### Tooltip
928
- ```css
929
- .tooltip {
930
- position: absolute;
931
- background: var(--bg-overlay);
932
- border: 1px solid var(--border-medium);
933
- border-radius: var(--radius-md);
934
- padding: var(--space-2) var(--space-3);
935
- font-family: var(--font-mono);
936
- font-size: var(--text-xs);
937
- font-weight: var(--weight-medium);
938
- letter-spacing: var(--tracking-wide);
939
- color: var(--text-primary);
940
- box-shadow: var(--shadow-md);
941
- pointer-events: none;
942
- white-space: nowrap;
943
- z-index: var(--z-tooltip);
944
- }
945
- ```
946
-
947
- ### Progress Bar
948
- ```css
949
- .progress-track {
950
- width: 100%;
951
- height: 4px;
952
- background: var(--bg-elevated);
953
- border-radius: var(--radius-full);
954
- overflow: hidden;
955
- }
956
-
957
- .progress-fill {
958
- height: 100%;
959
- background: var(--accent);
960
- border-radius: var(--radius-full);
961
- transition: width 600ms cubic-bezier(0.16, 1, 0.3, 1);
962
- }
963
- ```
964
-
965
- ### Skeleton Loader
966
- ```css
967
- @keyframes editorial-pulse {
968
- 0%, 100% { opacity: 1; }
969
- 50% { opacity: 0.4; }
970
- }
971
-
972
- .skeleton {
973
- background: var(--bg-elevated);
974
- border-radius: var(--radius-md);
975
- animation: editorial-pulse 2s ease-in-out infinite;
976
- }
977
- ```
1
+ # Components — Bold Editorial UI
2
+
3
+ All reusable component specifications. Uses tokens from `design-tokens.md`. Every component must respect the Bold Editorial visual language: minimal radius, cinematic shadows, mono captions, display font for impact numbers.
4
+
5
+ ---
6
+
7
+ ## Typography Components
8
+
9
+ ### Display Heading
10
+ ```css
11
+ .display-heading {
12
+ font-family: var(--font-display);
13
+ font-weight: var(--weight-bold);
14
+ letter-spacing: var(--tracking-tighter);
15
+ line-height: var(--leading-none);
16
+ color: var(--text-heading);
17
+ }
18
+
19
+ /* Size variants */
20
+ .display-heading--xl { font-size: var(--text-6xl); } /* manifesto */
21
+ .display-heading--lg { font-size: var(--text-5xl); } /* hero */
22
+ .display-heading--md { font-size: var(--text-4xl); } /* section hero */
23
+ .display-heading--sm { font-size: var(--text-3xl); } /* card title */
24
+ ```
25
+
26
+ ### Section Heading
27
+ ```css
28
+ .section-heading {
29
+ font-family: var(--font-display);
30
+ font-size: var(--text-2xl);
31
+ font-weight: var(--weight-bold);
32
+ letter-spacing: var(--tracking-tight);
33
+ line-height: var(--leading-snug);
34
+ color: var(--text-heading);
35
+ }
36
+ ```
37
+
38
+ ### Subheading
39
+ ```css
40
+ .subheading {
41
+ font-family: var(--font-body);
42
+ font-size: var(--text-lg);
43
+ font-weight: var(--weight-medium);
44
+ letter-spacing: var(--tracking-wide);
45
+ color: var(--text-primary);
46
+ }
47
+ ```
48
+
49
+ ### Mono Caption
50
+ The connective tissue of this system. Used for ALL metadata, overlines, categories, dates, version tags.
51
+ ```css
52
+ .mono-caption {
53
+ font-family: var(--font-mono);
54
+ font-size: var(--text-xs);
55
+ font-weight: var(--weight-medium);
56
+ letter-spacing: var(--tracking-widest);
57
+ text-transform: uppercase;
58
+ color: var(--text-secondary);
59
+ }
60
+
61
+ /* With accent */
62
+ .mono-caption--accent {
63
+ color: var(--accent);
64
+ }
65
+ ```
66
+
67
+ ### Body Text
68
+ ```css
69
+ .body-text {
70
+ font-family: var(--font-body);
71
+ font-size: var(--text-base);
72
+ font-weight: var(--weight-regular);
73
+ line-height: var(--leading-relaxed);
74
+ color: var(--text-primary);
75
+ }
76
+
77
+ .body-text--lead {
78
+ font-size: var(--text-lg);
79
+ line-height: var(--leading-normal);
80
+ color: var(--text-primary);
81
+ }
82
+ ```
83
+
84
+ ### Quote Block
85
+ ```css
86
+ .quote-block {
87
+ font-family: var(--font-display);
88
+ font-size: var(--text-2xl);
89
+ font-style: italic;
90
+ font-weight: var(--weight-medium);
91
+ line-height: var(--leading-snug);
92
+ color: var(--text-heading);
93
+ border-left: 4px solid var(--accent);
94
+ padding-left: var(--space-6);
95
+ margin: var(--space-8) 0;
96
+ }
97
+ ```
98
+
99
+ ### Counter / Stat Number
100
+ ```css
101
+ .stat-number {
102
+ font-family: var(--font-display);
103
+ font-weight: var(--weight-bold);
104
+ letter-spacing: var(--tracking-tighter);
105
+ line-height: var(--leading-none);
106
+ color: var(--text-heading);
107
+ }
108
+
109
+ .stat-number--xl { font-size: var(--text-5xl); }
110
+ .stat-number--lg { font-size: var(--text-4xl); }
111
+ .stat-number--md { font-size: var(--text-3xl); }
112
+ ```
113
+
114
+ ---
115
+
116
+ ## Navigation
117
+
118
+ ### Top Bar
119
+ ```css
120
+ .topbar {
121
+ height: 64px;
122
+ display: flex;
123
+ align-items: center;
124
+ justify-content: space-between;
125
+ padding: 0 var(--space-8);
126
+ position: sticky;
127
+ top: 0;
128
+ z-index: var(--z-sticky);
129
+ background: rgba(10, 10, 10, 0.85); /* --bg-base with opacity */
130
+ backdrop-filter: blur(12px);
131
+ border-bottom: 1px solid var(--border-subtle);
132
+ transition: var(--transition-theme);
133
+ }
134
+
135
+ /* Logo */
136
+ .topbar__logo {
137
+ font-family: var(--font-display);
138
+ font-size: var(--text-lg);
139
+ font-weight: var(--weight-bold);
140
+ color: var(--text-heading);
141
+ text-decoration: none;
142
+ }
143
+
144
+ /* Nav links */
145
+ .topbar__nav {
146
+ display: flex;
147
+ gap: var(--space-8);
148
+ list-style: none;
149
+ }
150
+
151
+ .topbar__link {
152
+ font-family: var(--font-body);
153
+ font-size: var(--text-sm);
154
+ font-weight: var(--weight-medium);
155
+ color: var(--text-secondary);
156
+ text-decoration: none;
157
+ transition: color var(--transition-fast);
158
+ }
159
+
160
+ .topbar__link:hover {
161
+ color: var(--text-heading);
162
+ }
163
+
164
+ /* Light variant */
165
+ [data-theme="light"] .topbar {
166
+ background: rgba(250, 250, 247, 0.90);
167
+ }
168
+ ```
169
+
170
+ ### Sidebar (app shell)
171
+ ```css
172
+ .sidebar {
173
+ width: 200px;
174
+ flex-shrink: 0;
175
+ background: var(--bg-base);
176
+ border-right: 1px solid var(--border-subtle);
177
+ display: flex;
178
+ flex-direction: column;
179
+ padding: var(--space-6) var(--space-3);
180
+ gap: var(--space-1);
181
+ overflow-y: auto;
182
+ }
183
+
184
+ .sidebar__item {
185
+ display: flex;
186
+ align-items: center;
187
+ gap: var(--space-3);
188
+ padding: var(--space-2) var(--space-3);
189
+ border-radius: var(--radius-md);
190
+ font-family: var(--font-mono);
191
+ font-size: var(--text-xs);
192
+ font-weight: var(--weight-medium);
193
+ letter-spacing: var(--tracking-wider);
194
+ text-transform: uppercase;
195
+ color: var(--text-secondary);
196
+ cursor: pointer;
197
+ transition: background var(--transition-fast), color var(--transition-fast);
198
+ }
199
+
200
+ .sidebar__item:hover {
201
+ background: var(--bg-surface);
202
+ color: var(--text-primary);
203
+ }
204
+
205
+ .sidebar__item--active {
206
+ background: var(--bg-surface);
207
+ color: var(--text-heading);
208
+ border-left: 2px solid var(--accent);
209
+ padding-left: calc(var(--space-3) - 2px);
210
+ }
211
+
212
+ .sidebar__section-label {
213
+ font-family: var(--font-mono);
214
+ font-size: 0.65rem;
215
+ font-weight: var(--weight-medium);
216
+ letter-spacing: var(--tracking-widest);
217
+ text-transform: uppercase;
218
+ color: var(--text-muted);
219
+ padding: var(--space-4) var(--space-3) var(--space-2);
220
+ }
221
+ ```
222
+
223
+ ---
224
+
225
+ ## Buttons
226
+
227
+ ### Primary Button
228
+ ```css
229
+ .btn-primary {
230
+ display: inline-flex;
231
+ align-items: center;
232
+ justify-content: center;
233
+ gap: var(--space-2);
234
+ height: 44px;
235
+ padding: 0 var(--space-6);
236
+ background: var(--accent);
237
+ color: var(--accent-contrast);
238
+ border: none;
239
+ border-radius: var(--radius-md);
240
+ font-family: var(--font-body);
241
+ font-size: var(--text-sm);
242
+ font-weight: var(--weight-semibold);
243
+ letter-spacing: var(--tracking-wide);
244
+ cursor: pointer;
245
+ transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
246
+ }
247
+
248
+ .btn-primary:hover {
249
+ background: var(--accent-hover);
250
+ box-shadow: var(--shadow-sm);
251
+ }
252
+
253
+ .btn-primary:active {
254
+ transform: scale(0.98);
255
+ }
256
+
257
+ .btn-primary:focus-visible {
258
+ outline: 2px solid var(--accent);
259
+ outline-offset: 2px;
260
+ }
261
+
262
+ .btn-primary:disabled {
263
+ opacity: 0.4;
264
+ cursor: not-allowed;
265
+ }
266
+ ```
267
+
268
+ ### Hero CTA Button (large variant)
269
+ ```css
270
+ .btn-hero {
271
+ height: 56px;
272
+ padding: 0 var(--space-10);
273
+ font-size: var(--text-base);
274
+ font-weight: var(--weight-bold);
275
+ letter-spacing: var(--tracking-wide);
276
+ text-transform: uppercase;
277
+ border-radius: var(--radius-md);
278
+ background: var(--accent);
279
+ color: var(--accent-contrast);
280
+ box-shadow: var(--shadow-glow);
281
+ transition: background var(--transition-fast), box-shadow var(--transition-base), transform var(--transition-fast);
282
+ }
283
+
284
+ .btn-hero:hover {
285
+ background: var(--accent-hover);
286
+ box-shadow: var(--shadow-glow), var(--shadow-md);
287
+ transform: translateY(-1px);
288
+ }
289
+ ```
290
+
291
+ ### Secondary Button
292
+ ```css
293
+ .btn-secondary {
294
+ height: 44px;
295
+ padding: 0 var(--space-6);
296
+ background: transparent;
297
+ color: var(--text-primary);
298
+ border: 1px solid var(--border-medium);
299
+ border-radius: var(--radius-md);
300
+ font-size: var(--text-sm);
301
+ font-weight: var(--weight-medium);
302
+ cursor: pointer;
303
+ transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
304
+ }
305
+
306
+ .btn-secondary:hover {
307
+ background: var(--bg-elevated);
308
+ border-color: var(--border-strong);
309
+ color: var(--text-heading);
310
+ }
311
+ ```
312
+
313
+ ### Ghost Button
314
+ ```css
315
+ .btn-ghost {
316
+ height: 44px;
317
+ padding: 0 var(--space-6);
318
+ background: transparent;
319
+ color: var(--text-secondary);
320
+ border: 1px solid transparent;
321
+ border-radius: var(--radius-md);
322
+ font-size: var(--text-sm);
323
+ font-weight: var(--weight-medium);
324
+ cursor: pointer;
325
+ transition: background var(--transition-fast), color var(--transition-fast);
326
+ }
327
+
328
+ .btn-ghost:hover {
329
+ background: var(--bg-surface);
330
+ color: var(--text-heading);
331
+ }
332
+ ```
333
+
334
+ ### Icon Button
335
+ ```css
336
+ .btn-icon {
337
+ width: 40px;
338
+ height: 40px;
339
+ display: inline-flex;
340
+ align-items: center;
341
+ justify-content: center;
342
+ background: transparent;
343
+ border: 1px solid var(--border-subtle);
344
+ border-radius: var(--radius-md);
345
+ color: var(--text-secondary);
346
+ cursor: pointer;
347
+ transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
348
+ }
349
+
350
+ .btn-icon:hover {
351
+ background: var(--bg-surface);
352
+ border-color: var(--border-medium);
353
+ color: var(--text-heading);
354
+ }
355
+ ```
356
+
357
+ ---
358
+
359
+ ## Cards
360
+
361
+ ### Base Card
362
+ ```css
363
+ .card {
364
+ background: var(--bg-surface);
365
+ border: 1px solid var(--border-subtle);
366
+ border-radius: var(--radius-lg);
367
+ padding: var(--space-6);
368
+ box-shadow: var(--shadow-sm);
369
+ transition: box-shadow var(--transition-base), border-color var(--transition-base);
370
+ }
371
+
372
+ .card:hover {
373
+ box-shadow: var(--shadow-md);
374
+ border-color: var(--border-medium);
375
+ }
376
+ ```
377
+
378
+ ### Stat Card
379
+ ```css
380
+ .card-stat {
381
+ background: var(--bg-surface);
382
+ border: 1px solid var(--border-subtle);
383
+ border-radius: var(--radius-lg);
384
+ padding: var(--space-6) var(--space-8);
385
+ box-shadow: var(--shadow-sm);
386
+ }
387
+
388
+ .card-stat__label {
389
+ font-family: var(--font-mono);
390
+ font-size: var(--text-xs);
391
+ font-weight: var(--weight-medium);
392
+ letter-spacing: var(--tracking-widest);
393
+ text-transform: uppercase;
394
+ color: var(--text-secondary);
395
+ margin-bottom: var(--space-2);
396
+ }
397
+
398
+ .card-stat__value {
399
+ font-family: var(--font-display);
400
+ font-size: var(--text-4xl);
401
+ font-weight: var(--weight-bold);
402
+ letter-spacing: var(--tracking-tighter);
403
+ line-height: var(--leading-none);
404
+ color: var(--text-heading);
405
+ margin-bottom: var(--space-2);
406
+ }
407
+
408
+ .card-stat__trend {
409
+ display: inline-flex;
410
+ align-items: center;
411
+ gap: var(--space-1);
412
+ font-family: var(--font-mono);
413
+ font-size: var(--text-xs);
414
+ font-weight: var(--weight-medium);
415
+ letter-spacing: var(--tracking-wide);
416
+ }
417
+
418
+ .card-stat__trend--up { color: var(--semantic-green); }
419
+ .card-stat__trend--down { color: var(--semantic-red); }
420
+ ```
421
+
422
+ ### Feature Card
423
+ ```css
424
+ .card-feature {
425
+ background: var(--bg-surface);
426
+ border: 1px solid var(--border-subtle);
427
+ border-radius: var(--radius-lg);
428
+ padding: var(--space-10);
429
+ box-shadow: var(--shadow-sm);
430
+ transition: box-shadow var(--transition-base), transform var(--transition-base);
431
+ }
432
+
433
+ .card-feature:hover {
434
+ box-shadow: var(--shadow-md);
435
+ transform: translateY(-2px);
436
+ }
437
+
438
+ .card-feature__icon-area {
439
+ width: 48px;
440
+ height: 48px;
441
+ display: flex;
442
+ align-items: center;
443
+ justify-content: center;
444
+ background: var(--accent-dim);
445
+ border-radius: var(--radius-md);
446
+ margin-bottom: var(--space-6);
447
+ color: var(--accent);
448
+ }
449
+
450
+ .card-feature__title {
451
+ font-family: var(--font-display);
452
+ font-size: var(--text-xl);
453
+ font-weight: var(--weight-bold);
454
+ letter-spacing: var(--tracking-tight);
455
+ color: var(--text-heading);
456
+ margin-bottom: var(--space-3);
457
+ }
458
+
459
+ .card-feature__description {
460
+ font-family: var(--font-body);
461
+ font-size: var(--text-sm);
462
+ line-height: var(--leading-relaxed);
463
+ color: var(--text-secondary);
464
+ }
465
+ ```
466
+
467
+ ### Media Card
468
+ ```css
469
+ .card-media {
470
+ background: var(--bg-surface);
471
+ border: 1px solid var(--border-subtle);
472
+ border-radius: var(--radius-lg);
473
+ overflow: hidden;
474
+ box-shadow: var(--shadow-sm);
475
+ transition: box-shadow var(--transition-base), transform var(--transition-base);
476
+ }
477
+
478
+ .card-media:hover {
479
+ box-shadow: var(--shadow-md);
480
+ transform: translateY(-2px);
481
+ }
482
+
483
+ .card-media__image {
484
+ width: 100%;
485
+ aspect-ratio: 16 / 9;
486
+ object-fit: cover;
487
+ display: block;
488
+ transition: transform var(--transition-slow);
489
+ }
490
+
491
+ .card-media:hover .card-media__image {
492
+ transform: scale(1.03);
493
+ }
494
+
495
+ .card-media__body {
496
+ padding: var(--space-5);
497
+ }
498
+
499
+ .card-media__overline {
500
+ /* uses .mono-caption */
501
+ margin-bottom: var(--space-2);
502
+ }
503
+
504
+ .card-media__title {
505
+ font-family: var(--font-display);
506
+ font-size: var(--text-lg);
507
+ font-weight: var(--weight-bold);
508
+ letter-spacing: var(--tracking-tight);
509
+ color: var(--text-heading);
510
+ }
511
+ ```
512
+
513
+ ---
514
+
515
+ ## Forms
516
+
517
+ ### Input
518
+ ```css
519
+ .input {
520
+ height: 44px;
521
+ width: 100%;
522
+ padding: 0 var(--space-4);
523
+ background: transparent;
524
+ border: 1px solid var(--border-medium);
525
+ border-radius: var(--radius-md);
526
+ font-family: var(--font-body);
527
+ font-size: var(--text-sm);
528
+ color: var(--text-heading);
529
+ transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
530
+ outline: none;
531
+ }
532
+
533
+ .input::placeholder {
534
+ color: var(--text-muted);
535
+ }
536
+
537
+ .input:hover {
538
+ border-color: var(--border-strong);
539
+ }
540
+
541
+ .input:focus {
542
+ border-color: var(--accent);
543
+ box-shadow: 0 0 0 3px var(--accent-dim);
544
+ }
545
+
546
+ .input--error {
547
+ border-color: var(--semantic-red);
548
+ }
549
+
550
+ .input--error:focus {
551
+ box-shadow: 0 0 0 3px var(--semantic-red-dim);
552
+ }
553
+ ```
554
+
555
+ ### Minimal Input (editorial style — border-bottom only)
556
+ ```css
557
+ .input-minimal {
558
+ width: 100%;
559
+ height: 48px;
560
+ background: transparent;
561
+ border: none;
562
+ border-bottom: 1px solid var(--border-medium);
563
+ border-radius: 0;
564
+ padding: var(--space-2) 0;
565
+ font-family: var(--font-body);
566
+ font-size: var(--text-base);
567
+ color: var(--text-heading);
568
+ transition: border-color var(--transition-fast);
569
+ outline: none;
570
+ }
571
+
572
+ .input-minimal:focus {
573
+ border-bottom-color: var(--accent);
574
+ }
575
+ ```
576
+
577
+ ### Label
578
+ ```css
579
+ .label {
580
+ display: block;
581
+ font-family: var(--font-mono);
582
+ font-size: var(--text-xs);
583
+ font-weight: var(--weight-medium);
584
+ letter-spacing: var(--tracking-widest);
585
+ text-transform: uppercase;
586
+ color: var(--text-secondary);
587
+ margin-bottom: var(--space-2);
588
+ }
589
+ ```
590
+
591
+ ### Helper / Error Text
592
+ ```css
593
+ .helper-text {
594
+ font-family: var(--font-body);
595
+ font-size: var(--text-xs);
596
+ color: var(--text-muted);
597
+ margin-top: var(--space-1);
598
+ }
599
+
600
+ .error-text {
601
+ font-family: var(--font-mono);
602
+ font-size: var(--text-xs);
603
+ letter-spacing: var(--tracking-wide);
604
+ color: var(--semantic-red);
605
+ margin-top: var(--space-1);
606
+ }
607
+ ```
608
+
609
+ ### Textarea
610
+ ```css
611
+ .textarea {
612
+ width: 100%;
613
+ min-height: 120px;
614
+ padding: var(--space-3) var(--space-4);
615
+ background: transparent;
616
+ border: 1px solid var(--border-medium);
617
+ border-radius: var(--radius-md);
618
+ font-family: var(--font-body);
619
+ font-size: var(--text-sm);
620
+ line-height: var(--leading-relaxed);
621
+ color: var(--text-heading);
622
+ resize: vertical;
623
+ outline: none;
624
+ transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
625
+ }
626
+
627
+ .textarea:focus {
628
+ border-color: var(--accent);
629
+ box-shadow: 0 0 0 3px var(--accent-dim);
630
+ }
631
+ ```
632
+
633
+ ### Checkbox
634
+ ```css
635
+ .checkbox-wrapper {
636
+ display: flex;
637
+ align-items: flex-start;
638
+ gap: var(--space-3);
639
+ cursor: pointer;
640
+ }
641
+
642
+ .checkbox {
643
+ width: 18px;
644
+ height: 18px;
645
+ min-width: 18px;
646
+ background: transparent;
647
+ border: 1px solid var(--border-strong);
648
+ border-radius: var(--radius-sm);
649
+ display: flex;
650
+ align-items: center;
651
+ justify-content: center;
652
+ transition: background var(--transition-fast), border-color var(--transition-fast);
653
+ }
654
+
655
+ .checkbox--checked {
656
+ background: var(--accent);
657
+ border-color: var(--accent);
658
+ }
659
+
660
+ /* SVG checkmark animates in via stroke-dashoffset */
661
+ ```
662
+
663
+ ### Toggle Switch
664
+ ```css
665
+ .toggle {
666
+ width: 44px;
667
+ height: 24px;
668
+ background: var(--bg-elevated);
669
+ border: 1px solid var(--border-medium);
670
+ border-radius: var(--radius-full);
671
+ position: relative;
672
+ cursor: pointer;
673
+ transition: background var(--transition-base), border-color var(--transition-base);
674
+ }
675
+
676
+ .toggle--checked {
677
+ background: var(--accent);
678
+ border-color: var(--accent);
679
+ }
680
+
681
+ .toggle__thumb {
682
+ position: absolute;
683
+ top: 3px;
684
+ left: 3px;
685
+ width: 16px;
686
+ height: 16px;
687
+ background: var(--text-heading);
688
+ border-radius: var(--radius-full);
689
+ box-shadow: var(--shadow-xs);
690
+ transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
691
+ }
692
+
693
+ .toggle--checked .toggle__thumb {
694
+ transform: translateX(20px);
695
+ }
696
+ ```
697
+
698
+ ---
699
+
700
+ ## Data Display
701
+
702
+ ### Table
703
+ ```css
704
+ .table-container {
705
+ overflow-x: auto;
706
+ border-radius: var(--radius-lg);
707
+ border: 1px solid var(--border-subtle);
708
+ }
709
+
710
+ .table {
711
+ width: 100%;
712
+ border-collapse: collapse;
713
+ font-family: var(--font-body);
714
+ font-size: var(--text-sm);
715
+ }
716
+
717
+ .table th {
718
+ font-family: var(--font-mono);
719
+ font-size: var(--text-xs);
720
+ font-weight: var(--weight-medium);
721
+ letter-spacing: var(--tracking-widest);
722
+ text-transform: uppercase;
723
+ color: var(--text-secondary);
724
+ padding: var(--space-4) var(--space-5);
725
+ text-align: left;
726
+ border-bottom: 1px solid var(--border-medium);
727
+ background: var(--bg-elevated);
728
+ }
729
+
730
+ .table td {
731
+ padding: var(--space-4) var(--space-5);
732
+ color: var(--text-primary);
733
+ border-bottom: 1px solid var(--border-subtle);
734
+ }
735
+
736
+ .table tr:last-child td {
737
+ border-bottom: none;
738
+ }
739
+
740
+ .table tr:hover td {
741
+ background: var(--bg-elevated);
742
+ }
743
+ ```
744
+
745
+ ### Badge
746
+ ```css
747
+ .badge {
748
+ display: inline-flex;
749
+ align-items: center;
750
+ height: 22px;
751
+ padding: 0 var(--space-2);
752
+ border-radius: var(--radius-sm);
753
+ font-family: var(--font-mono);
754
+ font-size: 0.65rem;
755
+ font-weight: var(--weight-medium);
756
+ letter-spacing: var(--tracking-wider);
757
+ text-transform: uppercase;
758
+ }
759
+
760
+ .badge--default { background: var(--bg-elevated); color: var(--text-secondary); }
761
+ .badge--accent { background: var(--accent-dim); color: var(--accent); }
762
+ .badge--green { background: var(--semantic-green-dim); color: var(--semantic-green); }
763
+ .badge--amber { background: var(--semantic-amber-dim); color: var(--semantic-amber); }
764
+ .badge--red { background: var(--semantic-red-dim); color: var(--semantic-red); }
765
+ .badge--blue { background: var(--semantic-blue-dim); color: var(--semantic-blue); }
766
+ ```
767
+
768
+ ### Avatar
769
+ ```css
770
+ .avatar {
771
+ border-radius: var(--radius-md); /* editorial: square-ish, not circular */
772
+ object-fit: cover;
773
+ background: var(--bg-elevated);
774
+ flex-shrink: 0;
775
+ }
776
+
777
+ .avatar--xs { width: 24px; height: 24px; }
778
+ .avatar--sm { width: 32px; height: 32px; }
779
+ .avatar--md { width: 40px; height: 40px; }
780
+ .avatar--lg { width: 56px; height: 56px; }
781
+ .avatar--xl { width: 80px; height: 80px; }
782
+ .avatar--circle { border-radius: var(--radius-full); }
783
+ ```
784
+
785
+ ### Code Block
786
+ ```css
787
+ .code-block {
788
+ background: var(--bg-elevated);
789
+ border: 1px solid var(--border-subtle);
790
+ border-radius: var(--radius-md);
791
+ overflow: hidden;
792
+ }
793
+
794
+ .code-block__header {
795
+ display: flex;
796
+ align-items: center;
797
+ justify-content: space-between;
798
+ padding: var(--space-3) var(--space-5);
799
+ border-bottom: 1px solid var(--border-subtle);
800
+ background: var(--bg-overlay);
801
+ }
802
+
803
+ .code-block__filename {
804
+ font-family: var(--font-mono);
805
+ font-size: var(--text-xs);
806
+ color: var(--text-secondary);
807
+ letter-spacing: var(--tracking-wide);
808
+ }
809
+
810
+ .code-block__body {
811
+ padding: var(--space-5);
812
+ font-family: var(--font-mono);
813
+ font-size: var(--text-sm);
814
+ line-height: var(--leading-loose);
815
+ color: var(--text-primary);
816
+ overflow-x: auto;
817
+ }
818
+ ```
819
+
820
+ ### Divider
821
+ ```css
822
+ .divider {
823
+ height: 1px;
824
+ background: var(--border-subtle);
825
+ border: none;
826
+ }
827
+
828
+ .divider--accent {
829
+ height: 2px;
830
+ background: var(--accent);
831
+ border: none;
832
+ }
833
+ ```
834
+
835
+ ---
836
+
837
+ ## Feedback
838
+
839
+ ### Toast
840
+ ```css
841
+ .toast {
842
+ display: flex;
843
+ align-items: flex-start;
844
+ gap: var(--space-3);
845
+ padding: var(--space-4) var(--space-5);
846
+ background: var(--bg-surface);
847
+ border: 1px solid var(--border-subtle);
848
+ border-left: 4px solid var(--accent);
849
+ border-radius: var(--radius-md);
850
+ box-shadow: var(--shadow-lg);
851
+ max-width: 400px;
852
+ }
853
+
854
+ .toast--success { border-left-color: var(--semantic-green); }
855
+ .toast--warning { border-left-color: var(--semantic-amber); }
856
+ .toast--error { border-left-color: var(--semantic-red); }
857
+
858
+ .toast__title {
859
+ font-family: var(--font-body);
860
+ font-size: var(--text-sm);
861
+ font-weight: var(--weight-semibold);
862
+ color: var(--text-heading);
863
+ }
864
+
865
+ .toast__message {
866
+ font-family: var(--font-body);
867
+ font-size: var(--text-sm);
868
+ color: var(--text-secondary);
869
+ margin-top: var(--space-1);
870
+ }
871
+ ```
872
+
873
+ ### Modal
874
+ ```css
875
+ .modal-backdrop {
876
+ position: fixed;
877
+ inset: 0;
878
+ background: rgba(0, 0, 0, 0.70);
879
+ backdrop-filter: blur(4px);
880
+ z-index: var(--z-modal);
881
+ display: flex;
882
+ align-items: center;
883
+ justify-content: center;
884
+ padding: var(--space-6);
885
+ }
886
+
887
+ .modal {
888
+ background: var(--bg-surface);
889
+ border: 1px solid var(--border-medium);
890
+ border-radius: var(--radius-xl);
891
+ box-shadow: var(--shadow-xl);
892
+ width: 100%;
893
+ max-width: 560px;
894
+ max-height: 90vh;
895
+ overflow-y: auto;
896
+ }
897
+
898
+ .modal__header {
899
+ display: flex;
900
+ align-items: center;
901
+ justify-content: space-between;
902
+ padding: var(--space-6) var(--space-8);
903
+ border-bottom: 1px solid var(--border-subtle);
904
+ }
905
+
906
+ .modal__title {
907
+ font-family: var(--font-display);
908
+ font-size: var(--text-xl);
909
+ font-weight: var(--weight-bold);
910
+ letter-spacing: var(--tracking-tight);
911
+ color: var(--text-heading);
912
+ }
913
+
914
+ .modal__body {
915
+ padding: var(--space-8);
916
+ }
917
+
918
+ .modal__footer {
919
+ display: flex;
920
+ justify-content: flex-end;
921
+ gap: var(--space-3);
922
+ padding: var(--space-5) var(--space-8);
923
+ border-top: 1px solid var(--border-subtle);
924
+ }
925
+ ```
926
+
927
+ ### Tooltip
928
+ ```css
929
+ .tooltip {
930
+ position: absolute;
931
+ background: var(--bg-overlay);
932
+ border: 1px solid var(--border-medium);
933
+ border-radius: var(--radius-md);
934
+ padding: var(--space-2) var(--space-3);
935
+ font-family: var(--font-mono);
936
+ font-size: var(--text-xs);
937
+ font-weight: var(--weight-medium);
938
+ letter-spacing: var(--tracking-wide);
939
+ color: var(--text-primary);
940
+ box-shadow: var(--shadow-md);
941
+ pointer-events: none;
942
+ white-space: nowrap;
943
+ z-index: var(--z-tooltip);
944
+ }
945
+ ```
946
+
947
+ ### Progress Bar
948
+ ```css
949
+ .progress-track {
950
+ width: 100%;
951
+ height: 4px;
952
+ background: var(--bg-elevated);
953
+ border-radius: var(--radius-full);
954
+ overflow: hidden;
955
+ }
956
+
957
+ .progress-fill {
958
+ height: 100%;
959
+ background: var(--accent);
960
+ border-radius: var(--radius-full);
961
+ transition: width 600ms cubic-bezier(0.16, 1, 0.3, 1);
962
+ }
963
+ ```
964
+
965
+ ### Skeleton Loader
966
+ ```css
967
+ @keyframes editorial-pulse {
968
+ 0%, 100% { opacity: 1; }
969
+ 50% { opacity: 0.4; }
970
+ }
971
+
972
+ .skeleton {
973
+ background: var(--bg-elevated);
974
+ border-radius: var(--radius-md);
975
+ animation: editorial-pulse 2s ease-in-out infinite;
976
+ }
977
+ ```