@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
package/themes/ember.css CHANGED
@@ -101,6 +101,111 @@
101
101
  --focus-ring-offset: 2px;
102
102
  --focus-ring-color: #dc2626;
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 (calibrated to existing component usage) */
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 (aliases existing --transition-* for backward compat) */
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 (aliases existing --transition-timing for backward compat) */
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
  /* ==========================================================================
@@ -197,4 +302,109 @@
197
302
  --focus-ring-offset: 2px;
198
303
  --focus-ring-color: #f87171;
199
304
 
305
+ /* Layer 1 — backfill (preserves current visual output, see themes/_contract.md) */
306
+ /* Density axis — spacing scale */
307
+ --space-0: 0px;
308
+ --space-1: 4px;
309
+ --space-2: 8px;
310
+ --space-3: 12px;
311
+ --space-4: 16px;
312
+ --space-5: 20px;
313
+ --space-6: 24px;
314
+ --space-7: 28px;
315
+ --space-8: 32px;
316
+ --space-9: 36px;
317
+ --space-10: 40px;
318
+ --space-11: 44px;
319
+ --space-12: 48px;
320
+ /* Density axis — per-element heights */
321
+ --button-height-sm: 28px;
322
+ --button-height-md: 36px;
323
+ --button-height-lg: 44px;
324
+ --input-height-sm: 28px;
325
+ --input-height-md: 36px;
326
+ --input-height-lg: 44px;
327
+ --row-height-compact: 32px;
328
+ --row-height-normal: 40px;
329
+ --row-height-spacious: 48px;
330
+ /* Density axis — per-element padding */
331
+ --card-padding-sm: 12px;
332
+ --card-padding-md: 16px;
333
+ --card-padding-lg: 24px;
334
+ --dialog-padding: 24px;
335
+ --section-gap: 32px;
336
+ /* Type axis — family triplet (aliases existing --font-family for backward compat) */
337
+ --font-family-display: var(--font-family);
338
+ --font-family-body: var(--font-family);
339
+ --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
340
+ /* Type axis — size scale */
341
+ --text-xs: 12px;
342
+ --leading-xs: 16px;
343
+ --text-sm: 14px;
344
+ --leading-sm: 20px;
345
+ --text-base: 16px;
346
+ --leading-base: 24px;
347
+ --text-lg: 18px;
348
+ --leading-lg: 28px;
349
+ --text-xl: 20px;
350
+ --leading-xl: 28px;
351
+ --text-2xl: 24px;
352
+ --leading-2xl: 32px;
353
+ --text-3xl: 30px;
354
+ --leading-3xl: 36px;
355
+ --text-4xl: 36px;
356
+ --leading-4xl: 40px;
357
+ --text-display-1: 48px;
358
+ --leading-display-1: 52px;
359
+ --text-display-2: 60px;
360
+ --leading-display-2: 64px;
361
+ /* Type axis — intent mapping (calibrated to existing component usage) */
362
+ --intent-heading-major-size: var(--text-2xl);
363
+ --intent-heading-major-weight: var(--font-weight-bold);
364
+ --intent-heading-major-leading: var(--leading-2xl);
365
+ --intent-heading-minor-size: var(--text-lg);
366
+ --intent-heading-minor-weight: var(--font-weight-bold);
367
+ --intent-heading-minor-leading: var(--leading-lg);
368
+ --intent-body-emphasis-size: var(--text-base);
369
+ --intent-body-emphasis-weight: var(--font-weight-medium);
370
+ --intent-body-emphasis-leading: var(--leading-base);
371
+ --intent-body-default-size: var(--text-sm);
372
+ --intent-body-default-weight: var(--font-weight-normal);
373
+ --intent-body-default-leading: var(--leading-sm);
374
+ --intent-body-quiet-size: var(--text-sm);
375
+ --intent-body-quiet-weight: var(--font-weight-normal);
376
+ --intent-body-quiet-leading: var(--leading-sm);
377
+ --intent-caption-size: var(--text-xs);
378
+ --intent-caption-weight: var(--font-weight-normal);
379
+ --intent-caption-leading: var(--leading-xs);
380
+ --intent-numeric-size: var(--text-sm);
381
+ --intent-numeric-weight: var(--font-weight-medium);
382
+ --intent-numeric-leading: var(--leading-sm);
383
+ /* Motion axis — duration palette (aliases existing --transition-* for backward compat) */
384
+ --duration-instant: 0ms;
385
+ --duration-fast: var(--transition-fast);
386
+ --duration-normal: var(--transition-normal);
387
+ --duration-slow: var(--transition-slow);
388
+ --duration-dramatic: 600ms;
389
+ /* Motion axis — easing palette (aliases existing --transition-timing for backward compat) */
390
+ --easing-linear: linear;
391
+ --easing-standard: var(--transition-timing);
392
+ --easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
393
+ --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
394
+ /* Iconography axis */
395
+ --icon-family: lucide;
396
+ --icon-default-size: 16px;
397
+ /* Elevation axis — per-layer mapping */
398
+ --elevation-card: var(--shadow-sm);
399
+ --elevation-popover: var(--shadow-main);
400
+ --elevation-dialog: var(--shadow-lg);
401
+ --elevation-toast: var(--shadow-main);
402
+ /* Geometry axis — radius rhythm with intent */
403
+ --radius-container: var(--radius-md);
404
+ --radius-interactive: var(--radius-md);
405
+ --radius-pill: var(--radius-full);
406
+ /* Geometry axis — border-width rhythm */
407
+ --border-hairline: 1px;
408
+ --border-standard: var(--border-width);
409
+ --border-heavy: var(--border-width-thick);
200
410
  }
package/themes/forest.css CHANGED
@@ -101,6 +101,111 @@
101
101
  --focus-ring-offset: 2px;
102
102
  --focus-ring-color: #2d6a4f;
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 (calibrated to existing component usage) */
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 (aliases existing --transition-* for backward compat) */
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 (aliases existing --transition-timing for backward compat) */
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
  /* ==========================================================================
@@ -197,4 +302,109 @@
197
302
  --focus-ring-offset: 2px;
198
303
  --focus-ring-color: #52b788;
199
304
 
305
+ /* Layer 1 — backfill (preserves current visual output, see themes/_contract.md) */
306
+ /* Density axis — spacing scale */
307
+ --space-0: 0px;
308
+ --space-1: 4px;
309
+ --space-2: 8px;
310
+ --space-3: 12px;
311
+ --space-4: 16px;
312
+ --space-5: 20px;
313
+ --space-6: 24px;
314
+ --space-7: 28px;
315
+ --space-8: 32px;
316
+ --space-9: 36px;
317
+ --space-10: 40px;
318
+ --space-11: 44px;
319
+ --space-12: 48px;
320
+ /* Density axis — per-element heights */
321
+ --button-height-sm: 28px;
322
+ --button-height-md: 36px;
323
+ --button-height-lg: 44px;
324
+ --input-height-sm: 28px;
325
+ --input-height-md: 36px;
326
+ --input-height-lg: 44px;
327
+ --row-height-compact: 32px;
328
+ --row-height-normal: 40px;
329
+ --row-height-spacious: 48px;
330
+ /* Density axis — per-element padding */
331
+ --card-padding-sm: 12px;
332
+ --card-padding-md: 16px;
333
+ --card-padding-lg: 24px;
334
+ --dialog-padding: 24px;
335
+ --section-gap: 32px;
336
+ /* Type axis — family triplet (aliases existing --font-family for backward compat) */
337
+ --font-family-display: var(--font-family);
338
+ --font-family-body: var(--font-family);
339
+ --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
340
+ /* Type axis — size scale */
341
+ --text-xs: 12px;
342
+ --leading-xs: 16px;
343
+ --text-sm: 14px;
344
+ --leading-sm: 20px;
345
+ --text-base: 16px;
346
+ --leading-base: 24px;
347
+ --text-lg: 18px;
348
+ --leading-lg: 28px;
349
+ --text-xl: 20px;
350
+ --leading-xl: 28px;
351
+ --text-2xl: 24px;
352
+ --leading-2xl: 32px;
353
+ --text-3xl: 30px;
354
+ --leading-3xl: 36px;
355
+ --text-4xl: 36px;
356
+ --leading-4xl: 40px;
357
+ --text-display-1: 48px;
358
+ --leading-display-1: 52px;
359
+ --text-display-2: 60px;
360
+ --leading-display-2: 64px;
361
+ /* Type axis — intent mapping (calibrated to existing component usage) */
362
+ --intent-heading-major-size: var(--text-2xl);
363
+ --intent-heading-major-weight: var(--font-weight-bold);
364
+ --intent-heading-major-leading: var(--leading-2xl);
365
+ --intent-heading-minor-size: var(--text-lg);
366
+ --intent-heading-minor-weight: var(--font-weight-bold);
367
+ --intent-heading-minor-leading: var(--leading-lg);
368
+ --intent-body-emphasis-size: var(--text-base);
369
+ --intent-body-emphasis-weight: var(--font-weight-medium);
370
+ --intent-body-emphasis-leading: var(--leading-base);
371
+ --intent-body-default-size: var(--text-sm);
372
+ --intent-body-default-weight: var(--font-weight-normal);
373
+ --intent-body-default-leading: var(--leading-sm);
374
+ --intent-body-quiet-size: var(--text-sm);
375
+ --intent-body-quiet-weight: var(--font-weight-normal);
376
+ --intent-body-quiet-leading: var(--leading-sm);
377
+ --intent-caption-size: var(--text-xs);
378
+ --intent-caption-weight: var(--font-weight-normal);
379
+ --intent-caption-leading: var(--leading-xs);
380
+ --intent-numeric-size: var(--text-sm);
381
+ --intent-numeric-weight: var(--font-weight-medium);
382
+ --intent-numeric-leading: var(--leading-sm);
383
+ /* Motion axis — duration palette (aliases existing --transition-* for backward compat) */
384
+ --duration-instant: 0ms;
385
+ --duration-fast: var(--transition-fast);
386
+ --duration-normal: var(--transition-normal);
387
+ --duration-slow: var(--transition-slow);
388
+ --duration-dramatic: 600ms;
389
+ /* Motion axis — easing palette (aliases existing --transition-timing for backward compat) */
390
+ --easing-linear: linear;
391
+ --easing-standard: var(--transition-timing);
392
+ --easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
393
+ --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
394
+ /* Iconography axis */
395
+ --icon-family: lucide;
396
+ --icon-default-size: 16px;
397
+ /* Elevation axis — per-layer mapping */
398
+ --elevation-card: var(--shadow-sm);
399
+ --elevation-popover: var(--shadow-main);
400
+ --elevation-dialog: var(--shadow-lg);
401
+ --elevation-toast: var(--shadow-main);
402
+ /* Geometry axis — radius rhythm with intent */
403
+ --radius-container: var(--radius-md);
404
+ --radius-interactive: var(--radius-md);
405
+ --radius-pill: var(--radius-full);
406
+ /* Geometry axis — border-width rhythm */
407
+ --border-hairline: 1px;
408
+ --border-standard: var(--border-width);
409
+ --border-heavy: var(--border-width-thick);
200
410
  }