@almadar/ui 4.57.4 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/avl/index.cjs +270 -69
  2. package/dist/avl/index.js +270 -69
  3. package/dist/components/index.cjs +101 -68
  4. package/dist/components/index.js +101 -68
  5. package/dist/context/index.cjs +199 -0
  6. package/dist/context/index.js +199 -0
  7. package/dist/context/themeTokens.d.ts +1 -1
  8. package/dist/docs/index.cjs +21 -21
  9. package/dist/docs/index.js +21 -21
  10. package/dist/marketing/index.cjs +18 -18
  11. package/dist/marketing/index.js +18 -18
  12. package/dist/providers/index.cjs +101 -68
  13. package/dist/providers/index.js +101 -68
  14. package/dist/runtime/index.cjs +270 -69
  15. package/dist/runtime/index.js +270 -69
  16. package/package.json +2 -2
  17. package/tailwind-preset.cjs +118 -3
  18. package/themes/_contract.md +198 -0
  19. package/themes/almadar-website.css +212 -0
  20. package/themes/almadar.css +210 -0
  21. package/themes/arctic.css +210 -0
  22. package/themes/atelier.css +427 -0
  23. package/themes/copper.css +210 -0
  24. package/themes/ember.css +210 -0
  25. package/themes/forest.css +210 -0
  26. package/themes/gazette.css +411 -0
  27. package/themes/index.css +7 -0
  28. package/themes/kiosk.css +412 -0
  29. package/themes/lavender.css +210 -0
  30. package/themes/midnight.css +210 -0
  31. package/themes/minimalist.css +210 -0
  32. package/themes/neon.css +210 -0
  33. package/themes/ocean.css +210 -0
  34. package/themes/prism.css +406 -0
  35. package/themes/rose.css +210 -0
  36. package/themes/sand.css +210 -0
  37. package/themes/slate.css +210 -0
  38. package/themes/sunset.css +210 -0
  39. package/themes/terminal.css +422 -0
  40. package/themes/trait-wars.css +210 -0
  41. package/themes/wireframe.css +216 -0
@@ -99,6 +99,111 @@
99
99
  --focus-ring-offset: 2px;
100
100
  --focus-ring-color: #6366f1;
101
101
 
102
+ /* Layer 1 — backfill (preserves current visual output, see themes/_contract.md) */
103
+ /* Density axis — spacing scale */
104
+ --space-0: 0px;
105
+ --space-1: 4px;
106
+ --space-2: 8px;
107
+ --space-3: 12px;
108
+ --space-4: 16px;
109
+ --space-5: 20px;
110
+ --space-6: 24px;
111
+ --space-7: 28px;
112
+ --space-8: 32px;
113
+ --space-9: 36px;
114
+ --space-10: 40px;
115
+ --space-11: 44px;
116
+ --space-12: 48px;
117
+ /* Density axis — per-element heights */
118
+ --button-height-sm: 28px;
119
+ --button-height-md: 36px;
120
+ --button-height-lg: 44px;
121
+ --input-height-sm: 28px;
122
+ --input-height-md: 36px;
123
+ --input-height-lg: 44px;
124
+ --row-height-compact: 32px;
125
+ --row-height-normal: 40px;
126
+ --row-height-spacious: 48px;
127
+ /* Density axis — per-element padding */
128
+ --card-padding-sm: 12px;
129
+ --card-padding-md: 16px;
130
+ --card-padding-lg: 24px;
131
+ --dialog-padding: 24px;
132
+ --section-gap: 32px;
133
+ /* Type axis — family triplet (aliases existing --font-family for backward compat) */
134
+ --font-family-display: var(--font-family);
135
+ --font-family-body: var(--font-family);
136
+ --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
137
+ /* Type axis — size scale */
138
+ --text-xs: 12px;
139
+ --leading-xs: 16px;
140
+ --text-sm: 14px;
141
+ --leading-sm: 20px;
142
+ --text-base: 16px;
143
+ --leading-base: 24px;
144
+ --text-lg: 18px;
145
+ --leading-lg: 28px;
146
+ --text-xl: 20px;
147
+ --leading-xl: 28px;
148
+ --text-2xl: 24px;
149
+ --leading-2xl: 32px;
150
+ --text-3xl: 30px;
151
+ --leading-3xl: 36px;
152
+ --text-4xl: 36px;
153
+ --leading-4xl: 40px;
154
+ --text-display-1: 48px;
155
+ --leading-display-1: 52px;
156
+ --text-display-2: 60px;
157
+ --leading-display-2: 64px;
158
+ /* Type axis — intent mapping */
159
+ --intent-heading-major-size: var(--text-2xl);
160
+ --intent-heading-major-weight: var(--font-weight-bold);
161
+ --intent-heading-major-leading: var(--leading-2xl);
162
+ --intent-heading-minor-size: var(--text-lg);
163
+ --intent-heading-minor-weight: var(--font-weight-bold);
164
+ --intent-heading-minor-leading: var(--leading-lg);
165
+ --intent-body-emphasis-size: var(--text-base);
166
+ --intent-body-emphasis-weight: var(--font-weight-medium);
167
+ --intent-body-emphasis-leading: var(--leading-base);
168
+ --intent-body-default-size: var(--text-sm);
169
+ --intent-body-default-weight: var(--font-weight-normal);
170
+ --intent-body-default-leading: var(--leading-sm);
171
+ --intent-body-quiet-size: var(--text-sm);
172
+ --intent-body-quiet-weight: var(--font-weight-normal);
173
+ --intent-body-quiet-leading: var(--leading-sm);
174
+ --intent-caption-size: var(--text-xs);
175
+ --intent-caption-weight: var(--font-weight-normal);
176
+ --intent-caption-leading: var(--leading-xs);
177
+ --intent-numeric-size: var(--text-sm);
178
+ --intent-numeric-weight: var(--font-weight-medium);
179
+ --intent-numeric-leading: var(--leading-sm);
180
+ /* Motion axis — duration palette */
181
+ --duration-instant: 0ms;
182
+ --duration-fast: var(--transition-fast);
183
+ --duration-normal: var(--transition-normal);
184
+ --duration-slow: var(--transition-slow);
185
+ --duration-dramatic: 600ms;
186
+ /* Motion axis — easing palette */
187
+ --easing-linear: linear;
188
+ --easing-standard: var(--transition-timing);
189
+ --easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
190
+ --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
191
+ /* Iconography axis */
192
+ --icon-family: lucide;
193
+ --icon-default-size: 16px;
194
+ /* Elevation axis — per-layer mapping */
195
+ --elevation-card: var(--shadow-sm);
196
+ --elevation-popover: var(--shadow-main);
197
+ --elevation-dialog: var(--shadow-lg);
198
+ --elevation-toast: var(--shadow-main);
199
+ /* Geometry axis — radius rhythm with intent */
200
+ --radius-container: var(--radius-md);
201
+ --radius-interactive: var(--radius-md);
202
+ --radius-pill: var(--radius-full);
203
+ /* Geometry axis — border-width rhythm */
204
+ --border-hairline: 1px;
205
+ --border-standard: var(--border-width);
206
+ --border-heavy: var(--border-width-thick);
102
207
  }
103
208
 
104
209
  /* ==========================================================================
@@ -193,4 +298,109 @@
193
298
  --focus-ring-offset: 2px;
194
299
  --focus-ring-color: #818cf8;
195
300
 
301
+ /* Layer 1 — backfill (preserves current visual output, see themes/_contract.md) */
302
+ /* Density axis — spacing scale */
303
+ --space-0: 0px;
304
+ --space-1: 4px;
305
+ --space-2: 8px;
306
+ --space-3: 12px;
307
+ --space-4: 16px;
308
+ --space-5: 20px;
309
+ --space-6: 24px;
310
+ --space-7: 28px;
311
+ --space-8: 32px;
312
+ --space-9: 36px;
313
+ --space-10: 40px;
314
+ --space-11: 44px;
315
+ --space-12: 48px;
316
+ /* Density axis — per-element heights */
317
+ --button-height-sm: 28px;
318
+ --button-height-md: 36px;
319
+ --button-height-lg: 44px;
320
+ --input-height-sm: 28px;
321
+ --input-height-md: 36px;
322
+ --input-height-lg: 44px;
323
+ --row-height-compact: 32px;
324
+ --row-height-normal: 40px;
325
+ --row-height-spacious: 48px;
326
+ /* Density axis — per-element padding */
327
+ --card-padding-sm: 12px;
328
+ --card-padding-md: 16px;
329
+ --card-padding-lg: 24px;
330
+ --dialog-padding: 24px;
331
+ --section-gap: 32px;
332
+ /* Type axis — family triplet (aliases existing --font-family for backward compat) */
333
+ --font-family-display: var(--font-family);
334
+ --font-family-body: var(--font-family);
335
+ --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
336
+ /* Type axis — size scale */
337
+ --text-xs: 12px;
338
+ --leading-xs: 16px;
339
+ --text-sm: 14px;
340
+ --leading-sm: 20px;
341
+ --text-base: 16px;
342
+ --leading-base: 24px;
343
+ --text-lg: 18px;
344
+ --leading-lg: 28px;
345
+ --text-xl: 20px;
346
+ --leading-xl: 28px;
347
+ --text-2xl: 24px;
348
+ --leading-2xl: 32px;
349
+ --text-3xl: 30px;
350
+ --leading-3xl: 36px;
351
+ --text-4xl: 36px;
352
+ --leading-4xl: 40px;
353
+ --text-display-1: 48px;
354
+ --leading-display-1: 52px;
355
+ --text-display-2: 60px;
356
+ --leading-display-2: 64px;
357
+ /* Type axis — intent mapping */
358
+ --intent-heading-major-size: var(--text-2xl);
359
+ --intent-heading-major-weight: var(--font-weight-bold);
360
+ --intent-heading-major-leading: var(--leading-2xl);
361
+ --intent-heading-minor-size: var(--text-lg);
362
+ --intent-heading-minor-weight: var(--font-weight-bold);
363
+ --intent-heading-minor-leading: var(--leading-lg);
364
+ --intent-body-emphasis-size: var(--text-base);
365
+ --intent-body-emphasis-weight: var(--font-weight-medium);
366
+ --intent-body-emphasis-leading: var(--leading-base);
367
+ --intent-body-default-size: var(--text-sm);
368
+ --intent-body-default-weight: var(--font-weight-normal);
369
+ --intent-body-default-leading: var(--leading-sm);
370
+ --intent-body-quiet-size: var(--text-sm);
371
+ --intent-body-quiet-weight: var(--font-weight-normal);
372
+ --intent-body-quiet-leading: var(--leading-sm);
373
+ --intent-caption-size: var(--text-xs);
374
+ --intent-caption-weight: var(--font-weight-normal);
375
+ --intent-caption-leading: var(--leading-xs);
376
+ --intent-numeric-size: var(--text-sm);
377
+ --intent-numeric-weight: var(--font-weight-medium);
378
+ --intent-numeric-leading: var(--leading-sm);
379
+ /* Motion axis — duration palette */
380
+ --duration-instant: 0ms;
381
+ --duration-fast: var(--transition-fast);
382
+ --duration-normal: var(--transition-normal);
383
+ --duration-slow: var(--transition-slow);
384
+ --duration-dramatic: 600ms;
385
+ /* Motion axis — easing palette */
386
+ --easing-linear: linear;
387
+ --easing-standard: var(--transition-timing);
388
+ --easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
389
+ --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
390
+ /* Iconography axis */
391
+ --icon-family: lucide;
392
+ --icon-default-size: 16px;
393
+ /* Elevation axis — per-layer mapping */
394
+ --elevation-card: var(--shadow-sm);
395
+ --elevation-popover: var(--shadow-main);
396
+ --elevation-dialog: var(--shadow-lg);
397
+ --elevation-toast: var(--shadow-main);
398
+ /* Geometry axis — radius rhythm with intent */
399
+ --radius-container: var(--radius-md);
400
+ --radius-interactive: var(--radius-md);
401
+ --radius-pill: var(--radius-full);
402
+ /* Geometry axis — border-width rhythm */
403
+ --border-hairline: 1px;
404
+ --border-standard: var(--border-width);
405
+ --border-heavy: var(--border-width-thick);
196
406
  }
@@ -98,6 +98,111 @@
98
98
  --focus-ring-offset: 2px;
99
99
  --focus-ring-color: #18181b;
100
100
 
101
+ /* Layer 1 — backfill (preserves current visual output, see themes/_contract.md) */
102
+ /* Density axis — spacing scale */
103
+ --space-0: 0px;
104
+ --space-1: 4px;
105
+ --space-2: 8px;
106
+ --space-3: 12px;
107
+ --space-4: 16px;
108
+ --space-5: 20px;
109
+ --space-6: 24px;
110
+ --space-7: 28px;
111
+ --space-8: 32px;
112
+ --space-9: 36px;
113
+ --space-10: 40px;
114
+ --space-11: 44px;
115
+ --space-12: 48px;
116
+ /* Density axis — per-element heights */
117
+ --button-height-sm: 28px;
118
+ --button-height-md: 36px;
119
+ --button-height-lg: 44px;
120
+ --input-height-sm: 28px;
121
+ --input-height-md: 36px;
122
+ --input-height-lg: 44px;
123
+ --row-height-compact: 32px;
124
+ --row-height-normal: 40px;
125
+ --row-height-spacious: 48px;
126
+ /* Density axis — per-element padding */
127
+ --card-padding-sm: 12px;
128
+ --card-padding-md: 16px;
129
+ --card-padding-lg: 24px;
130
+ --dialog-padding: 24px;
131
+ --section-gap: 32px;
132
+ /* Type axis — family triplet (aliases existing --font-family for backward compat) */
133
+ --font-family-display: var(--font-family);
134
+ --font-family-body: var(--font-family);
135
+ --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
136
+ /* Type axis — size scale */
137
+ --text-xs: 12px;
138
+ --leading-xs: 16px;
139
+ --text-sm: 14px;
140
+ --leading-sm: 20px;
141
+ --text-base: 16px;
142
+ --leading-base: 24px;
143
+ --text-lg: 18px;
144
+ --leading-lg: 28px;
145
+ --text-xl: 20px;
146
+ --leading-xl: 28px;
147
+ --text-2xl: 24px;
148
+ --leading-2xl: 32px;
149
+ --text-3xl: 30px;
150
+ --leading-3xl: 36px;
151
+ --text-4xl: 36px;
152
+ --leading-4xl: 40px;
153
+ --text-display-1: 48px;
154
+ --leading-display-1: 52px;
155
+ --text-display-2: 60px;
156
+ --leading-display-2: 64px;
157
+ /* Type axis — intent mapping */
158
+ --intent-heading-major-size: var(--text-2xl);
159
+ --intent-heading-major-weight: var(--font-weight-bold);
160
+ --intent-heading-major-leading: var(--leading-2xl);
161
+ --intent-heading-minor-size: var(--text-lg);
162
+ --intent-heading-minor-weight: var(--font-weight-bold);
163
+ --intent-heading-minor-leading: var(--leading-lg);
164
+ --intent-body-emphasis-size: var(--text-base);
165
+ --intent-body-emphasis-weight: var(--font-weight-medium);
166
+ --intent-body-emphasis-leading: var(--leading-base);
167
+ --intent-body-default-size: var(--text-sm);
168
+ --intent-body-default-weight: var(--font-weight-normal);
169
+ --intent-body-default-leading: var(--leading-sm);
170
+ --intent-body-quiet-size: var(--text-sm);
171
+ --intent-body-quiet-weight: var(--font-weight-normal);
172
+ --intent-body-quiet-leading: var(--leading-sm);
173
+ --intent-caption-size: var(--text-xs);
174
+ --intent-caption-weight: var(--font-weight-normal);
175
+ --intent-caption-leading: var(--leading-xs);
176
+ --intent-numeric-size: var(--text-sm);
177
+ --intent-numeric-weight: var(--font-weight-medium);
178
+ --intent-numeric-leading: var(--leading-sm);
179
+ /* Motion axis — duration palette */
180
+ --duration-instant: 0ms;
181
+ --duration-fast: var(--transition-fast);
182
+ --duration-normal: var(--transition-normal);
183
+ --duration-slow: var(--transition-slow);
184
+ --duration-dramatic: 600ms;
185
+ /* Motion axis — easing palette */
186
+ --easing-linear: linear;
187
+ --easing-standard: var(--transition-timing);
188
+ --easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
189
+ --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
190
+ /* Iconography axis */
191
+ --icon-family: lucide;
192
+ --icon-default-size: 16px;
193
+ /* Elevation axis — per-layer mapping */
194
+ --elevation-card: var(--shadow-sm);
195
+ --elevation-popover: var(--shadow-main);
196
+ --elevation-dialog: var(--shadow-lg);
197
+ --elevation-toast: var(--shadow-main);
198
+ /* Geometry axis — radius rhythm with intent */
199
+ --radius-container: var(--radius-md);
200
+ --radius-interactive: var(--radius-md);
201
+ --radius-pill: var(--radius-full);
202
+ /* Geometry axis — border-width rhythm */
203
+ --border-hairline: 1px;
204
+ --border-standard: var(--border-width);
205
+ --border-heavy: var(--border-width-thick);
101
206
  }
102
207
 
103
208
  /* ==========================================================================
@@ -192,4 +297,109 @@
192
297
  --focus-ring-offset: 2px;
193
298
  --focus-ring-color: #fafafa;
194
299
 
300
+ /* Layer 1 — backfill (preserves current visual output, see themes/_contract.md) */
301
+ /* Density axis — spacing scale */
302
+ --space-0: 0px;
303
+ --space-1: 4px;
304
+ --space-2: 8px;
305
+ --space-3: 12px;
306
+ --space-4: 16px;
307
+ --space-5: 20px;
308
+ --space-6: 24px;
309
+ --space-7: 28px;
310
+ --space-8: 32px;
311
+ --space-9: 36px;
312
+ --space-10: 40px;
313
+ --space-11: 44px;
314
+ --space-12: 48px;
315
+ /* Density axis — per-element heights */
316
+ --button-height-sm: 28px;
317
+ --button-height-md: 36px;
318
+ --button-height-lg: 44px;
319
+ --input-height-sm: 28px;
320
+ --input-height-md: 36px;
321
+ --input-height-lg: 44px;
322
+ --row-height-compact: 32px;
323
+ --row-height-normal: 40px;
324
+ --row-height-spacious: 48px;
325
+ /* Density axis — per-element padding */
326
+ --card-padding-sm: 12px;
327
+ --card-padding-md: 16px;
328
+ --card-padding-lg: 24px;
329
+ --dialog-padding: 24px;
330
+ --section-gap: 32px;
331
+ /* Type axis — family triplet (aliases existing --font-family for backward compat) */
332
+ --font-family-display: var(--font-family);
333
+ --font-family-body: var(--font-family);
334
+ --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
335
+ /* Type axis — size scale */
336
+ --text-xs: 12px;
337
+ --leading-xs: 16px;
338
+ --text-sm: 14px;
339
+ --leading-sm: 20px;
340
+ --text-base: 16px;
341
+ --leading-base: 24px;
342
+ --text-lg: 18px;
343
+ --leading-lg: 28px;
344
+ --text-xl: 20px;
345
+ --leading-xl: 28px;
346
+ --text-2xl: 24px;
347
+ --leading-2xl: 32px;
348
+ --text-3xl: 30px;
349
+ --leading-3xl: 36px;
350
+ --text-4xl: 36px;
351
+ --leading-4xl: 40px;
352
+ --text-display-1: 48px;
353
+ --leading-display-1: 52px;
354
+ --text-display-2: 60px;
355
+ --leading-display-2: 64px;
356
+ /* Type axis — intent mapping */
357
+ --intent-heading-major-size: var(--text-2xl);
358
+ --intent-heading-major-weight: var(--font-weight-bold);
359
+ --intent-heading-major-leading: var(--leading-2xl);
360
+ --intent-heading-minor-size: var(--text-lg);
361
+ --intent-heading-minor-weight: var(--font-weight-bold);
362
+ --intent-heading-minor-leading: var(--leading-lg);
363
+ --intent-body-emphasis-size: var(--text-base);
364
+ --intent-body-emphasis-weight: var(--font-weight-medium);
365
+ --intent-body-emphasis-leading: var(--leading-base);
366
+ --intent-body-default-size: var(--text-sm);
367
+ --intent-body-default-weight: var(--font-weight-normal);
368
+ --intent-body-default-leading: var(--leading-sm);
369
+ --intent-body-quiet-size: var(--text-sm);
370
+ --intent-body-quiet-weight: var(--font-weight-normal);
371
+ --intent-body-quiet-leading: var(--leading-sm);
372
+ --intent-caption-size: var(--text-xs);
373
+ --intent-caption-weight: var(--font-weight-normal);
374
+ --intent-caption-leading: var(--leading-xs);
375
+ --intent-numeric-size: var(--text-sm);
376
+ --intent-numeric-weight: var(--font-weight-medium);
377
+ --intent-numeric-leading: var(--leading-sm);
378
+ /* Motion axis — duration palette */
379
+ --duration-instant: 0ms;
380
+ --duration-fast: var(--transition-fast);
381
+ --duration-normal: var(--transition-normal);
382
+ --duration-slow: var(--transition-slow);
383
+ --duration-dramatic: 600ms;
384
+ /* Motion axis — easing palette */
385
+ --easing-linear: linear;
386
+ --easing-standard: var(--transition-timing);
387
+ --easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
388
+ --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
389
+ /* Iconography axis */
390
+ --icon-family: lucide;
391
+ --icon-default-size: 16px;
392
+ /* Elevation axis — per-layer mapping */
393
+ --elevation-card: var(--shadow-sm);
394
+ --elevation-popover: var(--shadow-main);
395
+ --elevation-dialog: var(--shadow-lg);
396
+ --elevation-toast: var(--shadow-main);
397
+ /* Geometry axis — radius rhythm with intent */
398
+ --radius-container: var(--radius-md);
399
+ --radius-interactive: var(--radius-md);
400
+ --radius-pill: var(--radius-full);
401
+ /* Geometry axis — border-width rhythm */
402
+ --border-hairline: 1px;
403
+ --border-standard: var(--border-width);
404
+ --border-heavy: var(--border-width-thick);
195
405
  }
package/themes/neon.css CHANGED
@@ -101,6 +101,111 @@
101
101
  --focus-ring-offset: 2px;
102
102
  --focus-ring-color: #22d3ee;
103
103
 
104
+ /* Layer 1 — backfill (preserves current visual output, see themes/_contract.md) */
105
+ /* Density axis — spacing scale */
106
+ --space-0: 0px;
107
+ --space-1: 4px;
108
+ --space-2: 8px;
109
+ --space-3: 12px;
110
+ --space-4: 16px;
111
+ --space-5: 20px;
112
+ --space-6: 24px;
113
+ --space-7: 28px;
114
+ --space-8: 32px;
115
+ --space-9: 36px;
116
+ --space-10: 40px;
117
+ --space-11: 44px;
118
+ --space-12: 48px;
119
+ /* Density axis — per-element heights */
120
+ --button-height-sm: 28px;
121
+ --button-height-md: 36px;
122
+ --button-height-lg: 44px;
123
+ --input-height-sm: 28px;
124
+ --input-height-md: 36px;
125
+ --input-height-lg: 44px;
126
+ --row-height-compact: 32px;
127
+ --row-height-normal: 40px;
128
+ --row-height-spacious: 48px;
129
+ /* Density axis — per-element padding */
130
+ --card-padding-sm: 12px;
131
+ --card-padding-md: 16px;
132
+ --card-padding-lg: 24px;
133
+ --dialog-padding: 24px;
134
+ --section-gap: 32px;
135
+ /* Type axis — family triplet (aliases existing --font-family for backward compat) */
136
+ --font-family-display: var(--font-family);
137
+ --font-family-body: var(--font-family);
138
+ --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
139
+ /* Type axis — size scale */
140
+ --text-xs: 12px;
141
+ --leading-xs: 16px;
142
+ --text-sm: 14px;
143
+ --leading-sm: 20px;
144
+ --text-base: 16px;
145
+ --leading-base: 24px;
146
+ --text-lg: 18px;
147
+ --leading-lg: 28px;
148
+ --text-xl: 20px;
149
+ --leading-xl: 28px;
150
+ --text-2xl: 24px;
151
+ --leading-2xl: 32px;
152
+ --text-3xl: 30px;
153
+ --leading-3xl: 36px;
154
+ --text-4xl: 36px;
155
+ --leading-4xl: 40px;
156
+ --text-display-1: 48px;
157
+ --leading-display-1: 52px;
158
+ --text-display-2: 60px;
159
+ --leading-display-2: 64px;
160
+ /* Type axis — intent mapping */
161
+ --intent-heading-major-size: var(--text-2xl);
162
+ --intent-heading-major-weight: var(--font-weight-bold);
163
+ --intent-heading-major-leading: var(--leading-2xl);
164
+ --intent-heading-minor-size: var(--text-lg);
165
+ --intent-heading-minor-weight: var(--font-weight-bold);
166
+ --intent-heading-minor-leading: var(--leading-lg);
167
+ --intent-body-emphasis-size: var(--text-base);
168
+ --intent-body-emphasis-weight: var(--font-weight-medium);
169
+ --intent-body-emphasis-leading: var(--leading-base);
170
+ --intent-body-default-size: var(--text-sm);
171
+ --intent-body-default-weight: var(--font-weight-normal);
172
+ --intent-body-default-leading: var(--leading-sm);
173
+ --intent-body-quiet-size: var(--text-sm);
174
+ --intent-body-quiet-weight: var(--font-weight-normal);
175
+ --intent-body-quiet-leading: var(--leading-sm);
176
+ --intent-caption-size: var(--text-xs);
177
+ --intent-caption-weight: var(--font-weight-normal);
178
+ --intent-caption-leading: var(--leading-xs);
179
+ --intent-numeric-size: var(--text-sm);
180
+ --intent-numeric-weight: var(--font-weight-medium);
181
+ --intent-numeric-leading: var(--leading-sm);
182
+ /* Motion axis — duration palette */
183
+ --duration-instant: 0ms;
184
+ --duration-fast: var(--transition-fast);
185
+ --duration-normal: var(--transition-normal);
186
+ --duration-slow: var(--transition-slow);
187
+ --duration-dramatic: 600ms;
188
+ /* Motion axis — easing palette */
189
+ --easing-linear: linear;
190
+ --easing-standard: var(--transition-timing);
191
+ --easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
192
+ --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
193
+ /* Iconography axis */
194
+ --icon-family: lucide;
195
+ --icon-default-size: 16px;
196
+ /* Elevation axis — per-layer mapping */
197
+ --elevation-card: var(--shadow-sm);
198
+ --elevation-popover: var(--shadow-main);
199
+ --elevation-dialog: var(--shadow-lg);
200
+ --elevation-toast: var(--shadow-main);
201
+ /* Geometry axis — radius rhythm with intent */
202
+ --radius-container: var(--radius-md);
203
+ --radius-interactive: var(--radius-md);
204
+ --radius-pill: var(--radius-full);
205
+ /* Geometry axis — border-width rhythm */
206
+ --border-hairline: 1px;
207
+ --border-standard: var(--border-width);
208
+ --border-heavy: var(--border-width-thick);
104
209
  }
105
210
 
106
211
  /* ==========================================================================
@@ -199,4 +304,109 @@
199
304
  --focus-ring-offset: 2px;
200
305
  --focus-ring-color: #22d3ee;
201
306
 
307
+ /* Layer 1 — backfill (preserves current visual output, see themes/_contract.md) */
308
+ /* Density axis — spacing scale */
309
+ --space-0: 0px;
310
+ --space-1: 4px;
311
+ --space-2: 8px;
312
+ --space-3: 12px;
313
+ --space-4: 16px;
314
+ --space-5: 20px;
315
+ --space-6: 24px;
316
+ --space-7: 28px;
317
+ --space-8: 32px;
318
+ --space-9: 36px;
319
+ --space-10: 40px;
320
+ --space-11: 44px;
321
+ --space-12: 48px;
322
+ /* Density axis — per-element heights */
323
+ --button-height-sm: 28px;
324
+ --button-height-md: 36px;
325
+ --button-height-lg: 44px;
326
+ --input-height-sm: 28px;
327
+ --input-height-md: 36px;
328
+ --input-height-lg: 44px;
329
+ --row-height-compact: 32px;
330
+ --row-height-normal: 40px;
331
+ --row-height-spacious: 48px;
332
+ /* Density axis — per-element padding */
333
+ --card-padding-sm: 12px;
334
+ --card-padding-md: 16px;
335
+ --card-padding-lg: 24px;
336
+ --dialog-padding: 24px;
337
+ --section-gap: 32px;
338
+ /* Type axis — family triplet (aliases existing --font-family for backward compat) */
339
+ --font-family-display: var(--font-family);
340
+ --font-family-body: var(--font-family);
341
+ --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
342
+ /* Type axis — size scale */
343
+ --text-xs: 12px;
344
+ --leading-xs: 16px;
345
+ --text-sm: 14px;
346
+ --leading-sm: 20px;
347
+ --text-base: 16px;
348
+ --leading-base: 24px;
349
+ --text-lg: 18px;
350
+ --leading-lg: 28px;
351
+ --text-xl: 20px;
352
+ --leading-xl: 28px;
353
+ --text-2xl: 24px;
354
+ --leading-2xl: 32px;
355
+ --text-3xl: 30px;
356
+ --leading-3xl: 36px;
357
+ --text-4xl: 36px;
358
+ --leading-4xl: 40px;
359
+ --text-display-1: 48px;
360
+ --leading-display-1: 52px;
361
+ --text-display-2: 60px;
362
+ --leading-display-2: 64px;
363
+ /* Type axis — intent mapping */
364
+ --intent-heading-major-size: var(--text-2xl);
365
+ --intent-heading-major-weight: var(--font-weight-bold);
366
+ --intent-heading-major-leading: var(--leading-2xl);
367
+ --intent-heading-minor-size: var(--text-lg);
368
+ --intent-heading-minor-weight: var(--font-weight-bold);
369
+ --intent-heading-minor-leading: var(--leading-lg);
370
+ --intent-body-emphasis-size: var(--text-base);
371
+ --intent-body-emphasis-weight: var(--font-weight-medium);
372
+ --intent-body-emphasis-leading: var(--leading-base);
373
+ --intent-body-default-size: var(--text-sm);
374
+ --intent-body-default-weight: var(--font-weight-normal);
375
+ --intent-body-default-leading: var(--leading-sm);
376
+ --intent-body-quiet-size: var(--text-sm);
377
+ --intent-body-quiet-weight: var(--font-weight-normal);
378
+ --intent-body-quiet-leading: var(--leading-sm);
379
+ --intent-caption-size: var(--text-xs);
380
+ --intent-caption-weight: var(--font-weight-normal);
381
+ --intent-caption-leading: var(--leading-xs);
382
+ --intent-numeric-size: var(--text-sm);
383
+ --intent-numeric-weight: var(--font-weight-medium);
384
+ --intent-numeric-leading: var(--leading-sm);
385
+ /* Motion axis — duration palette */
386
+ --duration-instant: 0ms;
387
+ --duration-fast: var(--transition-fast);
388
+ --duration-normal: var(--transition-normal);
389
+ --duration-slow: var(--transition-slow);
390
+ --duration-dramatic: 600ms;
391
+ /* Motion axis — easing palette */
392
+ --easing-linear: linear;
393
+ --easing-standard: var(--transition-timing);
394
+ --easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
395
+ --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
396
+ /* Iconography axis */
397
+ --icon-family: lucide;
398
+ --icon-default-size: 16px;
399
+ /* Elevation axis — per-layer mapping */
400
+ --elevation-card: var(--shadow-sm);
401
+ --elevation-popover: var(--shadow-main);
402
+ --elevation-dialog: var(--shadow-lg);
403
+ --elevation-toast: var(--shadow-main);
404
+ /* Geometry axis — radius rhythm with intent */
405
+ --radius-container: var(--radius-md);
406
+ --radius-interactive: var(--radius-md);
407
+ --radius-pill: var(--radius-full);
408
+ /* Geometry axis — border-width rhythm */
409
+ --border-hairline: 1px;
410
+ --border-standard: var(--border-width);
411
+ --border-heavy: var(--border-width-thick);
202
412
  }