@almadar/ui 4.57.5 → 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.
- package/dist/avl/index.cjs +270 -69
- package/dist/avl/index.js +270 -69
- package/dist/components/index.cjs +101 -68
- package/dist/components/index.js +101 -68
- package/dist/context/index.cjs +199 -0
- package/dist/context/index.js +199 -0
- package/dist/context/themeTokens.d.ts +1 -1
- package/dist/docs/index.cjs +21 -21
- package/dist/docs/index.js +21 -21
- package/dist/marketing/index.cjs +18 -18
- package/dist/marketing/index.js +18 -18
- package/dist/providers/index.cjs +101 -68
- package/dist/providers/index.js +101 -68
- package/dist/runtime/index.cjs +270 -69
- package/dist/runtime/index.js +270 -69
- package/package.json +2 -2
- package/tailwind-preset.cjs +118 -3
- package/themes/_contract.md +198 -0
- package/themes/almadar-website.css +212 -0
- package/themes/almadar.css +210 -0
- package/themes/arctic.css +210 -0
- package/themes/atelier.css +427 -0
- package/themes/copper.css +210 -0
- package/themes/ember.css +210 -0
- package/themes/forest.css +210 -0
- package/themes/gazette.css +411 -0
- package/themes/index.css +7 -0
- package/themes/kiosk.css +412 -0
- package/themes/lavender.css +210 -0
- package/themes/midnight.css +210 -0
- package/themes/minimalist.css +210 -0
- package/themes/neon.css +210 -0
- package/themes/ocean.css +210 -0
- package/themes/prism.css +406 -0
- package/themes/rose.css +210 -0
- package/themes/sand.css +210 -0
- package/themes/slate.css +210 -0
- package/themes/sunset.css +210 -0
- package/themes/terminal.css +422 -0
- package/themes/trait-wars.css +210 -0
- package/themes/wireframe.css +216 -0
package/themes/rose.css
CHANGED
|
@@ -98,6 +98,111 @@
|
|
|
98
98
|
--focus-ring-offset: 2px;
|
|
99
99
|
--focus-ring-color: #e11d48;
|
|
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: #fb7185;
|
|
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/sand.css
CHANGED
|
@@ -99,6 +99,111 @@
|
|
|
99
99
|
--focus-ring-offset: 2px;
|
|
100
100
|
--focus-ring-color: #92400e;
|
|
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 */
|
|
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: #d97706;
|
|
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 */
|
|
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
|
}
|
package/themes/slate.css
CHANGED
|
@@ -99,6 +99,111 @@
|
|
|
99
99
|
--focus-ring-offset: 2px;
|
|
100
100
|
--focus-ring-color: #475569;
|
|
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 */
|
|
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
|
/* ==========================================================================
|
|
@@ -192,4 +297,109 @@
|
|
|
192
297
|
--focus-ring-offset: 2px;
|
|
193
298
|
--focus-ring-color: #0ea5e9;
|
|
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 */
|
|
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
|
}
|