@latty-ds/tokens 0.10.2 → 1.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/configure.js +122 -37
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/motion.constants.d.ts +6 -0
- package/dist/constants/tokens.constants.d.ts +2 -0
- package/dist/constants/zindex.constants.d.ts +4 -0
- package/dist/motion/index.d.ts +8 -0
- package/dist/motion/motion.d.ts +20 -0
- package/dist/semantic.css +99 -63
- package/dist/tokens.css +10 -0
- package/dist/tokens.js +1 -1
- package/dist/tokens.json +52 -24
- package/dist/types/public-types.d.ts +16 -3
- package/dist/zindex/index.d.ts +8 -0
- package/dist/zindex/zindex.d.ts +10 -0
- package/package.json +3 -3
package/dist/configure.js
CHANGED
|
@@ -33,6 +33,8 @@ var REM_BASE_PX = 16;
|
|
|
33
33
|
// src/constants/tokens.constants.ts
|
|
34
34
|
var DEFAULT_BORDER_RADIUS = "0.5rem";
|
|
35
35
|
var DEFAULT_BORDER_WIDTH = "1px";
|
|
36
|
+
var DEFAULT_FOCUS_RING_WIDTH = "3px";
|
|
37
|
+
var DEFAULT_FOCUS_RING_OFFSET = "2px";
|
|
36
38
|
var BORDER_WIDTH_PRESETS = {
|
|
37
39
|
thin: "1px",
|
|
38
40
|
medium: "2px",
|
|
@@ -40,6 +42,18 @@ var BORDER_WIDTH_PRESETS = {
|
|
|
40
42
|
};
|
|
41
43
|
var DEFAULT_FONT_FAMILY = '"Hanken Grotesk", sans-serif';
|
|
42
44
|
|
|
45
|
+
// src/constants/motion.constants.ts
|
|
46
|
+
var DURATION_INSTANT = "100ms";
|
|
47
|
+
var DURATION_FAST = "150ms";
|
|
48
|
+
var DURATION_MODERATE = "200ms";
|
|
49
|
+
var DURATION_SLOW = "300ms";
|
|
50
|
+
var EASE_STANDARD = "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
51
|
+
var EASE_EMPHASIZED = "cubic-bezier(0.34, 1.2, 0.64, 1)";
|
|
52
|
+
|
|
53
|
+
// src/constants/zindex.constants.ts
|
|
54
|
+
var Z_INDEX_STICKY = "100";
|
|
55
|
+
var Z_INDEX_OVERLAY = "1000";
|
|
56
|
+
|
|
43
57
|
// src/spacing/spacing.ts
|
|
44
58
|
var buildSpacing = () => {
|
|
45
59
|
const px = {};
|
|
@@ -70,6 +84,26 @@ var buildElevation = (neutral) => {
|
|
|
70
84
|
};
|
|
71
85
|
};
|
|
72
86
|
|
|
87
|
+
// src/motion/motion.ts
|
|
88
|
+
var buildMotion = () => ({
|
|
89
|
+
duration: {
|
|
90
|
+
instant: DURATION_INSTANT,
|
|
91
|
+
fast: DURATION_FAST,
|
|
92
|
+
moderate: DURATION_MODERATE,
|
|
93
|
+
slow: DURATION_SLOW
|
|
94
|
+
},
|
|
95
|
+
ease: {
|
|
96
|
+
standard: EASE_STANDARD,
|
|
97
|
+
emphasized: EASE_EMPHASIZED
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
// src/zindex/zindex.ts
|
|
102
|
+
var buildZIndex = () => ({
|
|
103
|
+
sticky: Z_INDEX_STICKY,
|
|
104
|
+
overlay: Z_INDEX_OVERLAY
|
|
105
|
+
});
|
|
106
|
+
|
|
73
107
|
// src/colors/palette.ts
|
|
74
108
|
import { formatHex, converter } from "culori";
|
|
75
109
|
var toOklch = converter("oklch");
|
|
@@ -171,10 +205,17 @@ var buildTokens = (cfg) => {
|
|
|
171
205
|
let color = buildColorTokens(cfg);
|
|
172
206
|
color = addSystemColors(color);
|
|
173
207
|
const spacing = buildSpacing();
|
|
174
|
-
const border = {
|
|
208
|
+
const border = {
|
|
209
|
+
radius: DEFAULT_BORDER_RADIUS,
|
|
210
|
+
width: DEFAULT_BORDER_WIDTH,
|
|
211
|
+
focusRingWidth: DEFAULT_FOCUS_RING_WIDTH,
|
|
212
|
+
focusRingOffset: DEFAULT_FOCUS_RING_OFFSET
|
|
213
|
+
};
|
|
175
214
|
const typography = { fontFamilyPrimary: DEFAULT_FONT_FAMILY };
|
|
176
215
|
const elevation = buildElevation(color.neutral);
|
|
177
|
-
|
|
216
|
+
const { duration, ease } = buildMotion();
|
|
217
|
+
const z = buildZIndex();
|
|
218
|
+
return { color, spacing, border, typography, elevation, duration, ease, z };
|
|
178
219
|
};
|
|
179
220
|
var tokensToCss = (tokens) => {
|
|
180
221
|
const lines = [];
|
|
@@ -227,8 +268,8 @@ ${lines.join("\n")}
|
|
|
227
268
|
`;
|
|
228
269
|
};
|
|
229
270
|
|
|
230
|
-
// src/semantic/
|
|
231
|
-
var
|
|
271
|
+
// src/semantic/contrast.ts
|
|
272
|
+
var WCAG_AA = 4.5;
|
|
232
273
|
var relativeLuminance = (hex) => {
|
|
233
274
|
const r = parseInt(hex.slice(1, 3), 16) / 255;
|
|
234
275
|
const g = parseInt(hex.slice(3, 5), 16) / 255;
|
|
@@ -236,11 +277,59 @@ var relativeLuminance = (hex) => {
|
|
|
236
277
|
const lin = (c) => c <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;
|
|
237
278
|
return 0.2126 * lin(r) + 0.7152 * lin(g) + 0.0722 * lin(b);
|
|
238
279
|
};
|
|
239
|
-
var
|
|
240
|
-
const
|
|
241
|
-
const
|
|
242
|
-
|
|
243
|
-
|
|
280
|
+
var contrastRatio = (a, b) => {
|
|
281
|
+
const la = relativeLuminance(a);
|
|
282
|
+
const lb = relativeLuminance(b);
|
|
283
|
+
return (Math.max(la, lb) + 0.05) / (Math.min(la, lb) + 0.05);
|
|
284
|
+
};
|
|
285
|
+
var LADDER = {
|
|
286
|
+
light: { rest: 500, hover: { directions: [1, -1], steps: 1 }, active: { directions: [1, -1], steps: 2 } },
|
|
287
|
+
dark: { rest: 400, hover: { directions: [-1, 1], steps: 1 }, active: { directions: [1, -1], steps: 1 } }
|
|
288
|
+
};
|
|
289
|
+
var asPalette = (value, name) => {
|
|
290
|
+
if (value === void 0 || typeof value === "string") throw new Error(`No colour ramp named "${name}"`);
|
|
291
|
+
return value;
|
|
292
|
+
};
|
|
293
|
+
var resolveVariantColors = (variant, palettes, mode, minContrast = WCAG_AA) => {
|
|
294
|
+
const palette = asPalette(palettes[variant], variant);
|
|
295
|
+
const neutral = asPalette(palettes.neutral, "neutral");
|
|
296
|
+
const white = typeof palettes.white === "string" ? palettes.white : "#ffffff";
|
|
297
|
+
const black = typeof palettes.black === "string" ? palettes.black : "#000000";
|
|
298
|
+
const ladder = LADDER[mode];
|
|
299
|
+
const restIndex = STEPS.indexOf(ladder.rest);
|
|
300
|
+
const fill = palette[String(ladder.rest)];
|
|
301
|
+
const solid = palette["500"];
|
|
302
|
+
const candidates = [
|
|
303
|
+
["color-white", white],
|
|
304
|
+
[`color-${variant}-50`, palette["50"]],
|
|
305
|
+
[`color-${variant}-900`, palette["900"]],
|
|
306
|
+
["color-neutral-900", neutral["900"]],
|
|
307
|
+
["color-black", black]
|
|
308
|
+
];
|
|
309
|
+
const reaches = (hex, background) => contrastRatio(hex, background) >= minContrast;
|
|
310
|
+
const [onText, onHex] = candidates.find(([, hex]) => reaches(hex, fill) && reaches(hex, solid)) ?? candidates.find(([, hex]) => reaches(hex, fill)) ?? candidates.reduce((best, next) => contrastRatio(next[1], fill) > contrastRatio(best[1], fill) ? next : best);
|
|
311
|
+
const walk = ({ directions, steps }) => {
|
|
312
|
+
for (const direction of directions) {
|
|
313
|
+
const step = STEPS[restIndex + direction * steps];
|
|
314
|
+
const hex = step === void 0 ? void 0 : palette[String(step)];
|
|
315
|
+
if (hex && reaches(onHex, hex)) return step;
|
|
316
|
+
}
|
|
317
|
+
return ladder.rest;
|
|
318
|
+
};
|
|
319
|
+
return {
|
|
320
|
+
onText,
|
|
321
|
+
bg: `color-${variant}-${ladder.rest}`,
|
|
322
|
+
hover: `color-${variant}-${walk(ladder.hover)}`,
|
|
323
|
+
active: `color-${variant}-${walk(ladder.active)}`
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
// src/semantic/semantic-tokens.ts
|
|
328
|
+
var VARIANTS = ["primary", "secondary", "success", "warning", "error", "info"];
|
|
329
|
+
var addNeutralInteractive = (map) => {
|
|
330
|
+
map["interactive-neutral-bg"] = "color-neutral-600";
|
|
331
|
+
map["interactive-neutral-bg-hover"] = "color-neutral-700";
|
|
332
|
+
map["interactive-neutral-bg-active"] = "color-neutral-800";
|
|
244
333
|
};
|
|
245
334
|
var BORDER_STEPS = {
|
|
246
335
|
light: {
|
|
@@ -252,7 +341,17 @@ var BORDER_STEPS = {
|
|
|
252
341
|
high: { default: "500", strong: "300", subtle: "600" }
|
|
253
342
|
}
|
|
254
343
|
};
|
|
255
|
-
var
|
|
344
|
+
var addInteractive = (map, mode, palettes) => {
|
|
345
|
+
for (const v of VARIANTS) {
|
|
346
|
+
const colors = resolveVariantColors(v, palettes, mode);
|
|
347
|
+
map[`text-on-${v}`] = colors.onText;
|
|
348
|
+
map[`interactive-${v}-bg`] = colors.bg;
|
|
349
|
+
map[`interactive-${v}-bg-hover`] = colors.hover;
|
|
350
|
+
map[`interactive-${v}-bg-active`] = colors.active;
|
|
351
|
+
}
|
|
352
|
+
addNeutralInteractive(map);
|
|
353
|
+
};
|
|
354
|
+
var buildLightSemanticTokens = (opts) => {
|
|
256
355
|
const map = {};
|
|
257
356
|
map["text-default"] = "color-neutral-900";
|
|
258
357
|
map["text-subtle"] = "color-neutral-600";
|
|
@@ -260,12 +359,7 @@ var buildLightSemanticTokens = (opts = {}) => {
|
|
|
260
359
|
map["text-disabled"] = "color-neutral-400";
|
|
261
360
|
map["text-inverse"] = "color-white";
|
|
262
361
|
map["text-neutral"] = "color-neutral-700";
|
|
263
|
-
for (const v of VARIANTS) {
|
|
264
|
-
map[`text-${v}`] = `color-${v}-700`;
|
|
265
|
-
map[`text-on-${v}`] = "color-white";
|
|
266
|
-
}
|
|
267
|
-
map["text-on-warning"] = "color-warning-800";
|
|
268
|
-
if (opts.primary500) map["text-on-primary"] = accessibleTextOn(opts.primary500);
|
|
362
|
+
for (const v of VARIANTS) map[`text-${v}`] = `color-${v}-700`;
|
|
269
363
|
map["bg-default"] = "color-white";
|
|
270
364
|
map["bg-subtle"] = "color-neutral-50";
|
|
271
365
|
map["bg-surface"] = "color-neutral-100";
|
|
@@ -281,18 +375,17 @@ var buildLightSemanticTokens = (opts = {}) => {
|
|
|
281
375
|
map["border-strong"] = `color-neutral-${lightBorderSteps.strong}`;
|
|
282
376
|
map["border-subtle"] = `color-neutral-${lightBorderSteps.subtle}`;
|
|
283
377
|
map["border-focus"] = "color-primary-200";
|
|
378
|
+
map["border-input"] = "border-default";
|
|
379
|
+
map["focus-ring-color"] = "border-focus";
|
|
380
|
+
map["focus-halo-color"] = "bg-primary-subtle";
|
|
284
381
|
for (const v of VARIANTS) {
|
|
285
382
|
map[`border-${v}`] = `color-${v}-200`;
|
|
286
383
|
map[`border-${v}-strong`] = `color-${v}-500`;
|
|
287
384
|
}
|
|
288
|
-
|
|
289
|
-
map[`interactive-${v}-bg`] = `color-${v}-500`;
|
|
290
|
-
map[`interactive-${v}-bg-hover`] = `color-${v}-600`;
|
|
291
|
-
map[`interactive-${v}-bg-active`] = `color-${v}-700`;
|
|
292
|
-
}
|
|
385
|
+
addInteractive(map, "light", opts.palettes);
|
|
293
386
|
return map;
|
|
294
387
|
};
|
|
295
|
-
var buildDarkSemanticTokens = (opts
|
|
388
|
+
var buildDarkSemanticTokens = (opts) => {
|
|
296
389
|
const map = {};
|
|
297
390
|
map["text-default"] = "color-neutral-100";
|
|
298
391
|
map["text-subtle"] = "color-neutral-300";
|
|
@@ -300,12 +393,7 @@ var buildDarkSemanticTokens = (opts = {}) => {
|
|
|
300
393
|
map["text-disabled"] = "color-neutral-600";
|
|
301
394
|
map["text-inverse"] = "color-neutral-900";
|
|
302
395
|
map["text-neutral"] = "color-neutral-200";
|
|
303
|
-
for (const v of VARIANTS) {
|
|
304
|
-
map[`text-${v}`] = `color-${v}-300`;
|
|
305
|
-
map[`text-on-${v}`] = "color-white";
|
|
306
|
-
}
|
|
307
|
-
map["text-on-warning"] = "color-warning-800";
|
|
308
|
-
if (opts.primary400) map["text-on-primary"] = accessibleTextOn(opts.primary400);
|
|
396
|
+
for (const v of VARIANTS) map[`text-${v}`] = `color-${v}-300`;
|
|
309
397
|
map["bg-default"] = "color-neutral-900";
|
|
310
398
|
map["bg-subtle"] = "color-neutral-800";
|
|
311
399
|
map["bg-surface"] = "color-neutral-800";
|
|
@@ -321,18 +409,17 @@ var buildDarkSemanticTokens = (opts = {}) => {
|
|
|
321
409
|
map["border-strong"] = `color-neutral-${darkBorderSteps.strong}`;
|
|
322
410
|
map["border-subtle"] = `color-neutral-${darkBorderSteps.subtle}`;
|
|
323
411
|
map["border-focus"] = "color-primary-400";
|
|
412
|
+
map["border-input"] = "border-default";
|
|
413
|
+
map["focus-ring-color"] = "border-focus";
|
|
414
|
+
map["focus-halo-color"] = "bg-primary-subtle";
|
|
324
415
|
for (const v of VARIANTS) {
|
|
325
416
|
map[`border-${v}`] = `color-${v}-700`;
|
|
326
417
|
map[`border-${v}-strong`] = `color-${v}-500`;
|
|
327
418
|
}
|
|
328
|
-
|
|
329
|
-
map[`interactive-${v}-bg`] = `color-${v}-400`;
|
|
330
|
-
map[`interactive-${v}-bg-hover`] = `color-${v}-300`;
|
|
331
|
-
map[`interactive-${v}-bg-active`] = `color-${v}-500`;
|
|
332
|
-
}
|
|
419
|
+
addInteractive(map, "dark", opts.palettes);
|
|
333
420
|
return map;
|
|
334
421
|
};
|
|
335
|
-
var buildSemanticTokens = (mode
|
|
422
|
+
var buildSemanticTokens = (mode, opts) => mode === "dark" ? buildDarkSemanticTokens(opts) : buildLightSemanticTokens(opts);
|
|
336
423
|
|
|
337
424
|
// src/configure/font.ts
|
|
338
425
|
var FONT_FAMILY_SLOT_NAMES = ["Primary", "Secondary", "Tertiary", "Quaternary"];
|
|
@@ -430,10 +517,8 @@ var createStyleSheet = (userConfig = {}) => {
|
|
|
430
517
|
}
|
|
431
518
|
const primitives = tokensToCss(tokens);
|
|
432
519
|
const theme = userConfig.theme ?? "light";
|
|
433
|
-
const primary = tokens.color.primary;
|
|
434
520
|
const semanticOpts = {
|
|
435
|
-
|
|
436
|
-
primary400: primary["400"],
|
|
521
|
+
palettes: tokens.color,
|
|
437
522
|
borderContrast: userConfig.border?.contrast
|
|
438
523
|
};
|
|
439
524
|
let body;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const DURATION_INSTANT: "100ms";
|
|
2
|
+
export declare const DURATION_FAST: "150ms";
|
|
3
|
+
export declare const DURATION_MODERATE: "200ms";
|
|
4
|
+
export declare const DURATION_SLOW: "300ms";
|
|
5
|
+
export declare const EASE_STANDARD: "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
6
|
+
export declare const EASE_EMPHASIZED: "cubic-bezier(0.34, 1.2, 0.64, 1)";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const DEFAULT_BORDER_RADIUS: "0.5rem";
|
|
2
2
|
export declare const DEFAULT_BORDER_WIDTH: "1px";
|
|
3
|
+
export declare const DEFAULT_FOCUS_RING_WIDTH: "3px";
|
|
4
|
+
export declare const DEFAULT_FOCUS_RING_OFFSET: "2px";
|
|
3
5
|
/**
|
|
4
6
|
* Named presets accepted by `border.width` in `LattyConfig`.
|
|
5
7
|
* Any other CSS length passes through unchanged.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transition/animation duration scale.
|
|
3
|
+
*
|
|
4
|
+
* - `instant`: micro feedback — press/active transforms
|
|
5
|
+
* - `fast`: default interactive transition — hover/focus color, border, box-shadow
|
|
6
|
+
* - `moderate`: structural movement — expand/collapse, enter/exit fades
|
|
7
|
+
* - `slow`: large/attention movement — panel slides, progress fill
|
|
8
|
+
*/
|
|
9
|
+
export type DurationToken = 'instant' | 'fast' | 'moderate' | 'slow';
|
|
10
|
+
/**
|
|
11
|
+
* Easing curve scale.
|
|
12
|
+
*
|
|
13
|
+
* - `standard`: deceleration curve for elements entering/settling on screen
|
|
14
|
+
* - `emphasized`: overshoot curve for entrances that should draw attention
|
|
15
|
+
*/
|
|
16
|
+
export type EaseToken = 'standard' | 'emphasized';
|
|
17
|
+
export declare const buildMotion: () => {
|
|
18
|
+
duration: Record<DurationToken, string>;
|
|
19
|
+
ease: Record<EaseToken, string>;
|
|
20
|
+
};
|
package/dist/semantic.css
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
--lt-border-focus: var(--lt-color-primary-200);
|
|
25
25
|
--lt-border-info: var(--lt-color-info-200);
|
|
26
26
|
--lt-border-info-strong: var(--lt-color-info-500);
|
|
27
|
+
--lt-border-input: var(--lt-border-default);
|
|
27
28
|
--lt-border-primary: var(--lt-color-primary-200);
|
|
28
29
|
--lt-border-primary-strong: var(--lt-color-primary-500);
|
|
29
30
|
--lt-border-secondary: var(--lt-color-secondary-200);
|
|
@@ -34,23 +35,28 @@
|
|
|
34
35
|
--lt-border-success-strong: var(--lt-color-success-500);
|
|
35
36
|
--lt-border-warning: var(--lt-color-warning-200);
|
|
36
37
|
--lt-border-warning-strong: var(--lt-color-warning-500);
|
|
38
|
+
--lt-focus-halo-color: var(--lt-bg-primary-subtle);
|
|
39
|
+
--lt-focus-ring-color: var(--lt-border-focus);
|
|
37
40
|
--lt-interactive-error-bg: var(--lt-color-error-500);
|
|
38
|
-
--lt-interactive-error-bg-active: var(--lt-color-error-
|
|
39
|
-
--lt-interactive-error-bg-hover: var(--lt-color-error-
|
|
41
|
+
--lt-interactive-error-bg-active: var(--lt-color-error-300);
|
|
42
|
+
--lt-interactive-error-bg-hover: var(--lt-color-error-400);
|
|
40
43
|
--lt-interactive-info-bg: var(--lt-color-info-500);
|
|
41
|
-
--lt-interactive-info-bg-active: var(--lt-color-info-
|
|
42
|
-
--lt-interactive-info-bg-hover: var(--lt-color-info-
|
|
44
|
+
--lt-interactive-info-bg-active: var(--lt-color-info-300);
|
|
45
|
+
--lt-interactive-info-bg-hover: var(--lt-color-info-400);
|
|
46
|
+
--lt-interactive-neutral-bg: var(--lt-color-neutral-600);
|
|
47
|
+
--lt-interactive-neutral-bg-active: var(--lt-color-neutral-800);
|
|
48
|
+
--lt-interactive-neutral-bg-hover: var(--lt-color-neutral-700);
|
|
43
49
|
--lt-interactive-primary-bg: var(--lt-color-primary-500);
|
|
44
|
-
--lt-interactive-primary-bg-active: var(--lt-color-primary-
|
|
45
|
-
--lt-interactive-primary-bg-hover: var(--lt-color-primary-
|
|
50
|
+
--lt-interactive-primary-bg-active: var(--lt-color-primary-300);
|
|
51
|
+
--lt-interactive-primary-bg-hover: var(--lt-color-primary-400);
|
|
46
52
|
--lt-interactive-secondary-bg: var(--lt-color-secondary-500);
|
|
47
53
|
--lt-interactive-secondary-bg-active: var(--lt-color-secondary-700);
|
|
48
54
|
--lt-interactive-secondary-bg-hover: var(--lt-color-secondary-600);
|
|
49
55
|
--lt-interactive-success-bg: var(--lt-color-success-500);
|
|
50
|
-
--lt-interactive-success-bg-active: var(--lt-color-success-
|
|
51
|
-
--lt-interactive-success-bg-hover: var(--lt-color-success-
|
|
56
|
+
--lt-interactive-success-bg-active: var(--lt-color-success-300);
|
|
57
|
+
--lt-interactive-success-bg-hover: var(--lt-color-success-400);
|
|
52
58
|
--lt-interactive-warning-bg: var(--lt-color-warning-500);
|
|
53
|
-
--lt-interactive-warning-bg-active: var(--lt-color-warning-
|
|
59
|
+
--lt-interactive-warning-bg-active: var(--lt-color-warning-300);
|
|
54
60
|
--lt-interactive-warning-bg-hover: var(--lt-color-warning-600);
|
|
55
61
|
--lt-text-default: var(--lt-color-neutral-900);
|
|
56
62
|
--lt-text-disabled: var(--lt-color-neutral-400);
|
|
@@ -59,12 +65,12 @@
|
|
|
59
65
|
--lt-text-inverse: var(--lt-color-white);
|
|
60
66
|
--lt-text-muted: var(--lt-color-neutral-600);
|
|
61
67
|
--lt-text-neutral: var(--lt-color-neutral-700);
|
|
62
|
-
--lt-text-on-error: var(--lt-color-
|
|
63
|
-
--lt-text-on-info: var(--lt-color-
|
|
64
|
-
--lt-text-on-primary: var(--lt-color-
|
|
68
|
+
--lt-text-on-error: var(--lt-color-neutral-900);
|
|
69
|
+
--lt-text-on-info: var(--lt-color-info-900);
|
|
70
|
+
--lt-text-on-primary: var(--lt-color-primary-900);
|
|
65
71
|
--lt-text-on-secondary: var(--lt-color-white);
|
|
66
|
-
--lt-text-on-success: var(--lt-color-
|
|
67
|
-
--lt-text-on-warning: var(--lt-color-warning-
|
|
72
|
+
--lt-text-on-success: var(--lt-color-success-900);
|
|
73
|
+
--lt-text-on-warning: var(--lt-color-warning-900);
|
|
68
74
|
--lt-text-primary: var(--lt-color-primary-700);
|
|
69
75
|
--lt-text-secondary: var(--lt-color-secondary-700);
|
|
70
76
|
--lt-text-subtle: var(--lt-color-neutral-600);
|
|
@@ -98,6 +104,7 @@
|
|
|
98
104
|
--lt-border-focus: var(--lt-color-primary-400);
|
|
99
105
|
--lt-border-info: var(--lt-color-info-700);
|
|
100
106
|
--lt-border-info-strong: var(--lt-color-info-500);
|
|
107
|
+
--lt-border-input: var(--lt-border-default);
|
|
101
108
|
--lt-border-primary: var(--lt-color-primary-700);
|
|
102
109
|
--lt-border-primary-strong: var(--lt-color-primary-500);
|
|
103
110
|
--lt-border-secondary: var(--lt-color-secondary-700);
|
|
@@ -108,17 +115,22 @@
|
|
|
108
115
|
--lt-border-success-strong: var(--lt-color-success-500);
|
|
109
116
|
--lt-border-warning: var(--lt-color-warning-700);
|
|
110
117
|
--lt-border-warning-strong: var(--lt-color-warning-500);
|
|
118
|
+
--lt-focus-halo-color: var(--lt-bg-primary-subtle);
|
|
119
|
+
--lt-focus-ring-color: var(--lt-border-focus);
|
|
111
120
|
--lt-interactive-error-bg: var(--lt-color-error-400);
|
|
112
121
|
--lt-interactive-error-bg-active: var(--lt-color-error-500);
|
|
113
122
|
--lt-interactive-error-bg-hover: var(--lt-color-error-300);
|
|
114
123
|
--lt-interactive-info-bg: var(--lt-color-info-400);
|
|
115
124
|
--lt-interactive-info-bg-active: var(--lt-color-info-500);
|
|
116
125
|
--lt-interactive-info-bg-hover: var(--lt-color-info-300);
|
|
126
|
+
--lt-interactive-neutral-bg: var(--lt-color-neutral-600);
|
|
127
|
+
--lt-interactive-neutral-bg-active: var(--lt-color-neutral-800);
|
|
128
|
+
--lt-interactive-neutral-bg-hover: var(--lt-color-neutral-700);
|
|
117
129
|
--lt-interactive-primary-bg: var(--lt-color-primary-400);
|
|
118
130
|
--lt-interactive-primary-bg-active: var(--lt-color-primary-500);
|
|
119
131
|
--lt-interactive-primary-bg-hover: var(--lt-color-primary-300);
|
|
120
132
|
--lt-interactive-secondary-bg: var(--lt-color-secondary-400);
|
|
121
|
-
--lt-interactive-secondary-bg-active: var(--lt-color-secondary-
|
|
133
|
+
--lt-interactive-secondary-bg-active: var(--lt-color-secondary-300);
|
|
122
134
|
--lt-interactive-secondary-bg-hover: var(--lt-color-secondary-300);
|
|
123
135
|
--lt-interactive-success-bg: var(--lt-color-success-400);
|
|
124
136
|
--lt-interactive-success-bg-active: var(--lt-color-success-500);
|
|
@@ -133,12 +145,12 @@
|
|
|
133
145
|
--lt-text-inverse: var(--lt-color-neutral-900);
|
|
134
146
|
--lt-text-muted: var(--lt-color-neutral-400);
|
|
135
147
|
--lt-text-neutral: var(--lt-color-neutral-200);
|
|
136
|
-
--lt-text-on-error: var(--lt-color-
|
|
137
|
-
--lt-text-on-info: var(--lt-color-
|
|
138
|
-
--lt-text-on-primary: var(--lt-color-
|
|
139
|
-
--lt-text-on-secondary: var(--lt-color-
|
|
140
|
-
--lt-text-on-success: var(--lt-color-
|
|
141
|
-
--lt-text-on-warning: var(--lt-color-warning-
|
|
148
|
+
--lt-text-on-error: var(--lt-color-neutral-900);
|
|
149
|
+
--lt-text-on-info: var(--lt-color-info-900);
|
|
150
|
+
--lt-text-on-primary: var(--lt-color-primary-900);
|
|
151
|
+
--lt-text-on-secondary: var(--lt-color-black);
|
|
152
|
+
--lt-text-on-success: var(--lt-color-success-900);
|
|
153
|
+
--lt-text-on-warning: var(--lt-color-warning-900);
|
|
142
154
|
--lt-text-primary: var(--lt-color-primary-300);
|
|
143
155
|
--lt-text-secondary: var(--lt-color-secondary-300);
|
|
144
156
|
--lt-text-subtle: var(--lt-color-neutral-300);
|
|
@@ -172,6 +184,7 @@
|
|
|
172
184
|
--lt-border-focus: var(--lt-color-primary-400);
|
|
173
185
|
--lt-border-info: var(--lt-color-info-700);
|
|
174
186
|
--lt-border-info-strong: var(--lt-color-info-500);
|
|
187
|
+
--lt-border-input: var(--lt-border-default);
|
|
175
188
|
--lt-border-primary: var(--lt-color-primary-700);
|
|
176
189
|
--lt-border-primary-strong: var(--lt-color-primary-500);
|
|
177
190
|
--lt-border-secondary: var(--lt-color-secondary-700);
|
|
@@ -182,17 +195,22 @@
|
|
|
182
195
|
--lt-border-success-strong: var(--lt-color-success-500);
|
|
183
196
|
--lt-border-warning: var(--lt-color-warning-700);
|
|
184
197
|
--lt-border-warning-strong: var(--lt-color-warning-500);
|
|
198
|
+
--lt-focus-halo-color: var(--lt-bg-primary-subtle);
|
|
199
|
+
--lt-focus-ring-color: var(--lt-border-focus);
|
|
185
200
|
--lt-interactive-error-bg: var(--lt-color-error-400);
|
|
186
201
|
--lt-interactive-error-bg-active: var(--lt-color-error-500);
|
|
187
202
|
--lt-interactive-error-bg-hover: var(--lt-color-error-300);
|
|
188
203
|
--lt-interactive-info-bg: var(--lt-color-info-400);
|
|
189
204
|
--lt-interactive-info-bg-active: var(--lt-color-info-500);
|
|
190
205
|
--lt-interactive-info-bg-hover: var(--lt-color-info-300);
|
|
206
|
+
--lt-interactive-neutral-bg: var(--lt-color-neutral-600);
|
|
207
|
+
--lt-interactive-neutral-bg-active: var(--lt-color-neutral-800);
|
|
208
|
+
--lt-interactive-neutral-bg-hover: var(--lt-color-neutral-700);
|
|
191
209
|
--lt-interactive-primary-bg: var(--lt-color-primary-400);
|
|
192
210
|
--lt-interactive-primary-bg-active: var(--lt-color-primary-500);
|
|
193
211
|
--lt-interactive-primary-bg-hover: var(--lt-color-primary-300);
|
|
194
212
|
--lt-interactive-secondary-bg: var(--lt-color-secondary-400);
|
|
195
|
-
--lt-interactive-secondary-bg-active: var(--lt-color-secondary-
|
|
213
|
+
--lt-interactive-secondary-bg-active: var(--lt-color-secondary-300);
|
|
196
214
|
--lt-interactive-secondary-bg-hover: var(--lt-color-secondary-300);
|
|
197
215
|
--lt-interactive-success-bg: var(--lt-color-success-400);
|
|
198
216
|
--lt-interactive-success-bg-active: var(--lt-color-success-500);
|
|
@@ -207,12 +225,12 @@
|
|
|
207
225
|
--lt-text-inverse: var(--lt-color-neutral-900);
|
|
208
226
|
--lt-text-muted: var(--lt-color-neutral-400);
|
|
209
227
|
--lt-text-neutral: var(--lt-color-neutral-200);
|
|
210
|
-
--lt-text-on-error: var(--lt-color-
|
|
211
|
-
--lt-text-on-info: var(--lt-color-
|
|
212
|
-
--lt-text-on-primary: var(--lt-color-
|
|
213
|
-
--lt-text-on-secondary: var(--lt-color-
|
|
214
|
-
--lt-text-on-success: var(--lt-color-
|
|
215
|
-
--lt-text-on-warning: var(--lt-color-warning-
|
|
228
|
+
--lt-text-on-error: var(--lt-color-neutral-900);
|
|
229
|
+
--lt-text-on-info: var(--lt-color-info-900);
|
|
230
|
+
--lt-text-on-primary: var(--lt-color-primary-900);
|
|
231
|
+
--lt-text-on-secondary: var(--lt-color-black);
|
|
232
|
+
--lt-text-on-success: var(--lt-color-success-900);
|
|
233
|
+
--lt-text-on-warning: var(--lt-color-warning-900);
|
|
216
234
|
--lt-text-primary: var(--lt-color-primary-300);
|
|
217
235
|
--lt-text-secondary: var(--lt-color-secondary-300);
|
|
218
236
|
--lt-text-subtle: var(--lt-color-neutral-300);
|
|
@@ -244,6 +262,7 @@
|
|
|
244
262
|
--lt-border-focus: var(--lt-color-primary-400);
|
|
245
263
|
--lt-border-info: var(--lt-color-info-700);
|
|
246
264
|
--lt-border-info-strong: var(--lt-color-info-500);
|
|
265
|
+
--lt-border-input: var(--lt-border-default);
|
|
247
266
|
--lt-border-primary: var(--lt-color-primary-700);
|
|
248
267
|
--lt-border-primary-strong: var(--lt-color-primary-500);
|
|
249
268
|
--lt-border-secondary: var(--lt-color-secondary-700);
|
|
@@ -254,17 +273,22 @@
|
|
|
254
273
|
--lt-border-success-strong: var(--lt-color-success-500);
|
|
255
274
|
--lt-border-warning: var(--lt-color-warning-700);
|
|
256
275
|
--lt-border-warning-strong: var(--lt-color-warning-500);
|
|
276
|
+
--lt-focus-halo-color: var(--lt-bg-primary-subtle);
|
|
277
|
+
--lt-focus-ring-color: var(--lt-border-focus);
|
|
257
278
|
--lt-interactive-error-bg: var(--lt-color-error-400);
|
|
258
279
|
--lt-interactive-error-bg-active: var(--lt-color-error-500);
|
|
259
280
|
--lt-interactive-error-bg-hover: var(--lt-color-error-300);
|
|
260
281
|
--lt-interactive-info-bg: var(--lt-color-info-400);
|
|
261
282
|
--lt-interactive-info-bg-active: var(--lt-color-info-500);
|
|
262
283
|
--lt-interactive-info-bg-hover: var(--lt-color-info-300);
|
|
284
|
+
--lt-interactive-neutral-bg: var(--lt-color-neutral-600);
|
|
285
|
+
--lt-interactive-neutral-bg-active: var(--lt-color-neutral-800);
|
|
286
|
+
--lt-interactive-neutral-bg-hover: var(--lt-color-neutral-700);
|
|
263
287
|
--lt-interactive-primary-bg: var(--lt-color-primary-400);
|
|
264
288
|
--lt-interactive-primary-bg-active: var(--lt-color-primary-500);
|
|
265
289
|
--lt-interactive-primary-bg-hover: var(--lt-color-primary-300);
|
|
266
290
|
--lt-interactive-secondary-bg: var(--lt-color-secondary-400);
|
|
267
|
-
--lt-interactive-secondary-bg-active: var(--lt-color-secondary-
|
|
291
|
+
--lt-interactive-secondary-bg-active: var(--lt-color-secondary-300);
|
|
268
292
|
--lt-interactive-secondary-bg-hover: var(--lt-color-secondary-300);
|
|
269
293
|
--lt-interactive-success-bg: var(--lt-color-success-400);
|
|
270
294
|
--lt-interactive-success-bg-active: var(--lt-color-success-500);
|
|
@@ -279,12 +303,12 @@
|
|
|
279
303
|
--lt-text-inverse: var(--lt-color-neutral-900);
|
|
280
304
|
--lt-text-muted: var(--lt-color-neutral-400);
|
|
281
305
|
--lt-text-neutral: var(--lt-color-neutral-200);
|
|
282
|
-
--lt-text-on-error: var(--lt-color-
|
|
283
|
-
--lt-text-on-info: var(--lt-color-
|
|
284
|
-
--lt-text-on-primary: var(--lt-color-
|
|
285
|
-
--lt-text-on-secondary: var(--lt-color-
|
|
286
|
-
--lt-text-on-success: var(--lt-color-
|
|
287
|
-
--lt-text-on-warning: var(--lt-color-warning-
|
|
306
|
+
--lt-text-on-error: var(--lt-color-neutral-900);
|
|
307
|
+
--lt-text-on-info: var(--lt-color-info-900);
|
|
308
|
+
--lt-text-on-primary: var(--lt-color-primary-900);
|
|
309
|
+
--lt-text-on-secondary: var(--lt-color-black);
|
|
310
|
+
--lt-text-on-success: var(--lt-color-success-900);
|
|
311
|
+
--lt-text-on-warning: var(--lt-color-warning-900);
|
|
288
312
|
--lt-text-primary: var(--lt-color-primary-300);
|
|
289
313
|
--lt-text-secondary: var(--lt-color-secondary-300);
|
|
290
314
|
--lt-text-subtle: var(--lt-color-neutral-300);
|
|
@@ -317,6 +341,7 @@
|
|
|
317
341
|
--lt-border-focus: var(--lt-color-primary-200);
|
|
318
342
|
--lt-border-info: var(--lt-color-info-200);
|
|
319
343
|
--lt-border-info-strong: var(--lt-color-info-500);
|
|
344
|
+
--lt-border-input: var(--lt-border-default);
|
|
320
345
|
--lt-border-primary: var(--lt-color-primary-200);
|
|
321
346
|
--lt-border-primary-strong: var(--lt-color-primary-500);
|
|
322
347
|
--lt-border-secondary: var(--lt-color-secondary-200);
|
|
@@ -327,23 +352,28 @@
|
|
|
327
352
|
--lt-border-success-strong: var(--lt-color-success-500);
|
|
328
353
|
--lt-border-warning: var(--lt-color-warning-200);
|
|
329
354
|
--lt-border-warning-strong: var(--lt-color-warning-500);
|
|
355
|
+
--lt-focus-halo-color: var(--lt-bg-primary-subtle);
|
|
356
|
+
--lt-focus-ring-color: var(--lt-border-focus);
|
|
330
357
|
--lt-interactive-error-bg: var(--lt-color-error-500);
|
|
331
|
-
--lt-interactive-error-bg-active: var(--lt-color-error-
|
|
332
|
-
--lt-interactive-error-bg-hover: var(--lt-color-error-
|
|
358
|
+
--lt-interactive-error-bg-active: var(--lt-color-error-300);
|
|
359
|
+
--lt-interactive-error-bg-hover: var(--lt-color-error-400);
|
|
333
360
|
--lt-interactive-info-bg: var(--lt-color-info-500);
|
|
334
|
-
--lt-interactive-info-bg-active: var(--lt-color-info-
|
|
335
|
-
--lt-interactive-info-bg-hover: var(--lt-color-info-
|
|
361
|
+
--lt-interactive-info-bg-active: var(--lt-color-info-300);
|
|
362
|
+
--lt-interactive-info-bg-hover: var(--lt-color-info-400);
|
|
363
|
+
--lt-interactive-neutral-bg: var(--lt-color-neutral-600);
|
|
364
|
+
--lt-interactive-neutral-bg-active: var(--lt-color-neutral-800);
|
|
365
|
+
--lt-interactive-neutral-bg-hover: var(--lt-color-neutral-700);
|
|
336
366
|
--lt-interactive-primary-bg: var(--lt-color-primary-500);
|
|
337
|
-
--lt-interactive-primary-bg-active: var(--lt-color-primary-
|
|
338
|
-
--lt-interactive-primary-bg-hover: var(--lt-color-primary-
|
|
367
|
+
--lt-interactive-primary-bg-active: var(--lt-color-primary-300);
|
|
368
|
+
--lt-interactive-primary-bg-hover: var(--lt-color-primary-400);
|
|
339
369
|
--lt-interactive-secondary-bg: var(--lt-color-secondary-500);
|
|
340
370
|
--lt-interactive-secondary-bg-active: var(--lt-color-secondary-700);
|
|
341
371
|
--lt-interactive-secondary-bg-hover: var(--lt-color-secondary-600);
|
|
342
372
|
--lt-interactive-success-bg: var(--lt-color-success-500);
|
|
343
|
-
--lt-interactive-success-bg-active: var(--lt-color-success-
|
|
344
|
-
--lt-interactive-success-bg-hover: var(--lt-color-success-
|
|
373
|
+
--lt-interactive-success-bg-active: var(--lt-color-success-300);
|
|
374
|
+
--lt-interactive-success-bg-hover: var(--lt-color-success-400);
|
|
345
375
|
--lt-interactive-warning-bg: var(--lt-color-warning-500);
|
|
346
|
-
--lt-interactive-warning-bg-active: var(--lt-color-warning-
|
|
376
|
+
--lt-interactive-warning-bg-active: var(--lt-color-warning-300);
|
|
347
377
|
--lt-interactive-warning-bg-hover: var(--lt-color-warning-600);
|
|
348
378
|
--lt-text-default: var(--lt-color-neutral-900);
|
|
349
379
|
--lt-text-disabled: var(--lt-color-neutral-400);
|
|
@@ -352,12 +382,12 @@
|
|
|
352
382
|
--lt-text-inverse: var(--lt-color-white);
|
|
353
383
|
--lt-text-muted: var(--lt-color-neutral-600);
|
|
354
384
|
--lt-text-neutral: var(--lt-color-neutral-700);
|
|
355
|
-
--lt-text-on-error: var(--lt-color-
|
|
356
|
-
--lt-text-on-info: var(--lt-color-
|
|
357
|
-
--lt-text-on-primary: var(--lt-color-
|
|
385
|
+
--lt-text-on-error: var(--lt-color-neutral-900);
|
|
386
|
+
--lt-text-on-info: var(--lt-color-info-900);
|
|
387
|
+
--lt-text-on-primary: var(--lt-color-primary-900);
|
|
358
388
|
--lt-text-on-secondary: var(--lt-color-white);
|
|
359
|
-
--lt-text-on-success: var(--lt-color-
|
|
360
|
-
--lt-text-on-warning: var(--lt-color-warning-
|
|
389
|
+
--lt-text-on-success: var(--lt-color-success-900);
|
|
390
|
+
--lt-text-on-warning: var(--lt-color-warning-900);
|
|
361
391
|
--lt-text-primary: var(--lt-color-primary-700);
|
|
362
392
|
--lt-text-secondary: var(--lt-color-secondary-700);
|
|
363
393
|
--lt-text-subtle: var(--lt-color-neutral-600);
|
|
@@ -389,6 +419,7 @@
|
|
|
389
419
|
--lt-border-focus: var(--lt-color-primary-200);
|
|
390
420
|
--lt-border-info: var(--lt-color-info-200);
|
|
391
421
|
--lt-border-info-strong: var(--lt-color-info-500);
|
|
422
|
+
--lt-border-input: var(--lt-border-default);
|
|
392
423
|
--lt-border-primary: var(--lt-color-primary-200);
|
|
393
424
|
--lt-border-primary-strong: var(--lt-color-primary-500);
|
|
394
425
|
--lt-border-secondary: var(--lt-color-secondary-200);
|
|
@@ -399,23 +430,28 @@
|
|
|
399
430
|
--lt-border-success-strong: var(--lt-color-success-500);
|
|
400
431
|
--lt-border-warning: var(--lt-color-warning-200);
|
|
401
432
|
--lt-border-warning-strong: var(--lt-color-warning-500);
|
|
433
|
+
--lt-focus-halo-color: var(--lt-bg-primary-subtle);
|
|
434
|
+
--lt-focus-ring-color: var(--lt-border-focus);
|
|
402
435
|
--lt-interactive-error-bg: var(--lt-color-error-500);
|
|
403
|
-
--lt-interactive-error-bg-active: var(--lt-color-error-
|
|
404
|
-
--lt-interactive-error-bg-hover: var(--lt-color-error-
|
|
436
|
+
--lt-interactive-error-bg-active: var(--lt-color-error-300);
|
|
437
|
+
--lt-interactive-error-bg-hover: var(--lt-color-error-400);
|
|
405
438
|
--lt-interactive-info-bg: var(--lt-color-info-500);
|
|
406
|
-
--lt-interactive-info-bg-active: var(--lt-color-info-
|
|
407
|
-
--lt-interactive-info-bg-hover: var(--lt-color-info-
|
|
439
|
+
--lt-interactive-info-bg-active: var(--lt-color-info-300);
|
|
440
|
+
--lt-interactive-info-bg-hover: var(--lt-color-info-400);
|
|
441
|
+
--lt-interactive-neutral-bg: var(--lt-color-neutral-600);
|
|
442
|
+
--lt-interactive-neutral-bg-active: var(--lt-color-neutral-800);
|
|
443
|
+
--lt-interactive-neutral-bg-hover: var(--lt-color-neutral-700);
|
|
408
444
|
--lt-interactive-primary-bg: var(--lt-color-primary-500);
|
|
409
|
-
--lt-interactive-primary-bg-active: var(--lt-color-primary-
|
|
410
|
-
--lt-interactive-primary-bg-hover: var(--lt-color-primary-
|
|
445
|
+
--lt-interactive-primary-bg-active: var(--lt-color-primary-300);
|
|
446
|
+
--lt-interactive-primary-bg-hover: var(--lt-color-primary-400);
|
|
411
447
|
--lt-interactive-secondary-bg: var(--lt-color-secondary-500);
|
|
412
448
|
--lt-interactive-secondary-bg-active: var(--lt-color-secondary-700);
|
|
413
449
|
--lt-interactive-secondary-bg-hover: var(--lt-color-secondary-600);
|
|
414
450
|
--lt-interactive-success-bg: var(--lt-color-success-500);
|
|
415
|
-
--lt-interactive-success-bg-active: var(--lt-color-success-
|
|
416
|
-
--lt-interactive-success-bg-hover: var(--lt-color-success-
|
|
451
|
+
--lt-interactive-success-bg-active: var(--lt-color-success-300);
|
|
452
|
+
--lt-interactive-success-bg-hover: var(--lt-color-success-400);
|
|
417
453
|
--lt-interactive-warning-bg: var(--lt-color-warning-500);
|
|
418
|
-
--lt-interactive-warning-bg-active: var(--lt-color-warning-
|
|
454
|
+
--lt-interactive-warning-bg-active: var(--lt-color-warning-300);
|
|
419
455
|
--lt-interactive-warning-bg-hover: var(--lt-color-warning-600);
|
|
420
456
|
--lt-text-default: var(--lt-color-neutral-900);
|
|
421
457
|
--lt-text-disabled: var(--lt-color-neutral-400);
|
|
@@ -424,12 +460,12 @@
|
|
|
424
460
|
--lt-text-inverse: var(--lt-color-white);
|
|
425
461
|
--lt-text-muted: var(--lt-color-neutral-600);
|
|
426
462
|
--lt-text-neutral: var(--lt-color-neutral-700);
|
|
427
|
-
--lt-text-on-error: var(--lt-color-
|
|
428
|
-
--lt-text-on-info: var(--lt-color-
|
|
429
|
-
--lt-text-on-primary: var(--lt-color-
|
|
463
|
+
--lt-text-on-error: var(--lt-color-neutral-900);
|
|
464
|
+
--lt-text-on-info: var(--lt-color-info-900);
|
|
465
|
+
--lt-text-on-primary: var(--lt-color-primary-900);
|
|
430
466
|
--lt-text-on-secondary: var(--lt-color-white);
|
|
431
|
-
--lt-text-on-success: var(--lt-color-
|
|
432
|
-
--lt-text-on-warning: var(--lt-color-warning-
|
|
467
|
+
--lt-text-on-success: var(--lt-color-success-900);
|
|
468
|
+
--lt-text-on-warning: var(--lt-color-warning-900);
|
|
433
469
|
--lt-text-primary: var(--lt-color-primary-700);
|
|
434
470
|
--lt-text-secondary: var(--lt-color-secondary-700);
|
|
435
471
|
--lt-text-subtle: var(--lt-color-neutral-600);
|
package/dist/tokens.css
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
:root{
|
|
2
|
+
--lt-border-focusRingOffset: 2px;
|
|
3
|
+
--lt-border-focusRingWidth: 3px;
|
|
2
4
|
--lt-border-radius: 0.5rem;
|
|
3
5
|
--lt-border-width: 1px;
|
|
4
6
|
--lt-color-black: #000000;
|
|
@@ -133,6 +135,12 @@
|
|
|
133
135
|
--lt-color-warning-muted-800: #504c42;
|
|
134
136
|
--lt-color-warning-muted-900: #292621;
|
|
135
137
|
--lt-color-white: #FFFFFF;
|
|
138
|
+
--lt-duration-fast: 150ms;
|
|
139
|
+
--lt-duration-instant: 100ms;
|
|
140
|
+
--lt-duration-moderate: 200ms;
|
|
141
|
+
--lt-duration-slow: 300ms;
|
|
142
|
+
--lt-ease-emphasized: cubic-bezier(0.34, 1.2, 0.64, 1);
|
|
143
|
+
--lt-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
|
|
136
144
|
--lt-elevation-0: none;
|
|
137
145
|
--lt-elevation-1: 0 1px 3px 0 rgb(27 27 27 / 0.1), 0 1px 2px 0 rgb(27 27 27 / 0.06);
|
|
138
146
|
--lt-elevation-2: 0 4px 6px -1px rgb(27 27 27 / 0.1), 0 2px 4px -1px rgb(27 27 27 / 0.06);
|
|
@@ -190,4 +198,6 @@
|
|
|
190
198
|
--lt-spacing-8: 2rem;
|
|
191
199
|
--lt-spacing-9: 2.25rem;
|
|
192
200
|
--lt-typography-fontFamilyPrimary: "Hanken Grotesk", sans-serif;
|
|
201
|
+
--lt-z-overlay: 1000;
|
|
202
|
+
--lt-z-sticky: 100;
|
|
193
203
|
}
|
package/dist/tokens.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const tokens = {"color":{"primary":{"50":"#f0e5df","100":"#ffd4b5","200":"#ffbb87","300":"#ffa860","400":"#ff9539","500":"#ff8200","600":"#d56400","700":"#963b00","800":"#5e3c25","900":"#3c1d05"},"primary-muted":{"50":"#e9e7e6","100":"#e8dfda","200":"#dfd1c8","300":"#dac8bd","400":"#d2beb2","500":"#c6b1a5","600":"#a08e82","700":"#6b5c53","800":"#50453e","900":"#2b2521"},"secondary":{"50":"#e5e7f1","100":"#cbd2ff","200":"#a3acf7","300":"#8a93f4","400":"#7076e5","500":"#5252c5","600":"#4544ad","700":"#333187","800":"#2e3254","900":"#202343"},"secondary-muted":{"50":"#e7e8e9","100":"#d5d7df","200":"#b4b7c4","300":"#a0a3b3","400":"#898c9e","500":"#6c6f81","600":"#5a5d6d","700":"#414351","800":"#363742","900":"#25262c"},"success":{"50":"#e1ebe2","100":"#beedc6","200":"#94e4a4","300":"#70df8b","400":"#4bd573","500":"#22c55e","600":"#00a244","700":"#006f22","800":"#2b4d32","900":"#0c2e16"},"success-muted":{"50":"#e7e8e7","100":"#dbe3dc","200":"#cad7cc","300":"#bfcfc1","400":"#b3c5b6","500":"#a5b8a8","600":"#839586","700":"#546256","800":"#404a41","900":"#222823"},"warning":{"50":"#ece7de","100":"#f5e0b5","200":"#f6d289","300":"#f9c962","400":"#f7bf3a","500":"#eeb308","600":"#c38e00","700":"#845a00","800":"#584720","900":"#332400"},"warning-muted":{"50":"#e8e8e6","100":"#e7e4dc","200":"#e2dcd0","300":"#ded7c8","400":"#dad1c0","500":"#d2c9b8","600":"#a9a090","700":"#6d6659","800":"#504c42","900":"#292621"},"error":{"50":"#f3e4e2","100":"#ffc8c1","200":"#ffa198","300":"#ff847b","400":"#ff6560","500":"#ef4444","600":"#cb2d31","700":"#950e18","800":"#5a312e","900":"#3f1917"},"error-muted":{"50":"#e9e7e7","100":"#e6dad8","200":"#d6c3c1","300":"#cdb4b2","400":"#bfa4a1","500":"#ab908d","600":"#8d7572","700":"#624e4c","800":"#4c3d3b","900":"#2d2423"},"info":{"50":"#e1e9ef","100":"#bce4fe","200":"#8fd2fd","300":"#6ac7ff","400":"#43b9fa","500":"#0ea5e9","600":"#0087c4","700":"#005c8d","800":"#1e465d","900":"#082a3c"},"info-muted":{"50":"#e7e8e9","100":"#d9e0e5","200":"#c5d0d7","300":"#b8c6cf","400":"#aab9c4","500":"#99a9b3","600":"#7a8993","700":"#4f5b63","800":"#3d464c","900":"#22272a"},"neutral":{"50":"#fafafa","100":"#f3f3f3","200":"#e4e4e4","300":"#cacaca","400":"#ababab","500":"#868686","600":"#696969","700":"#4d4d4d","800":"#333333","900":"#1b1b1b"},"white":"#FFFFFF","black":"#000000"},"spacing":{"px":{"0":"0px","1":"4px","2":"8px","3":"12px","4":"16px","5":"20px","6":"24px","7":"28px","8":"32px","9":"36px","10":"40px","11":"44px","12":"48px","13":"52px","14":"56px","15":"60px","16":"64px","17":"68px","18":"72px","19":"76px","20":"80px","21":"84px","22":"88px","23":"92px","24":"96px"},"rem":{"0":"0rem","1":"0.25rem","2":"0.5rem","3":"0.75rem","4":"1rem","5":"1.25rem","6":"1.5rem","7":"1.75rem","8":"2rem","9":"2.25rem","10":"2.5rem","11":"2.75rem","12":"3rem","13":"3.25rem","14":"3.5rem","15":"3.75rem","16":"4rem","17":"4.25rem","18":"4.5rem","19":"4.75rem","20":"5rem","21":"5.25rem","22":"5.5rem","23":"5.75rem","24":"6rem"}},"border":{"radius":"0.5rem","width":"1px"},"typography":{"fontFamilyPrimary":"\"Hanken Grotesk\", sans-serif"},"elevation":{"0":"none","1":"0 1px 3px 0 rgb(27 27 27 / 0.1), 0 1px 2px 0 rgb(27 27 27 / 0.06)","2":"0 4px 6px -1px rgb(27 27 27 / 0.1), 0 2px 4px -1px rgb(27 27 27 / 0.06)","3":"0 10px 15px -3px rgb(27 27 27 / 0.1), 0 4px 6px -2px rgb(27 27 27 / 0.05)","4":"0 20px 25px -5px rgb(27 27 27 / 0.1), 0 10px 10px -5px rgb(27 27 27 / 0.04)","5":"0 25px 50px -12px rgb(27 27 27 / 0.25)"},"
|
|
1
|
+
export const tokens = {"color":{"primary":{"50":"#f0e5df","100":"#ffd4b5","200":"#ffbb87","300":"#ffa860","400":"#ff9539","500":"#ff8200","600":"#d56400","700":"#963b00","800":"#5e3c25","900":"#3c1d05"},"primary-muted":{"50":"#e9e7e6","100":"#e8dfda","200":"#dfd1c8","300":"#dac8bd","400":"#d2beb2","500":"#c6b1a5","600":"#a08e82","700":"#6b5c53","800":"#50453e","900":"#2b2521"},"secondary":{"50":"#e5e7f1","100":"#cbd2ff","200":"#a3acf7","300":"#8a93f4","400":"#7076e5","500":"#5252c5","600":"#4544ad","700":"#333187","800":"#2e3254","900":"#202343"},"secondary-muted":{"50":"#e7e8e9","100":"#d5d7df","200":"#b4b7c4","300":"#a0a3b3","400":"#898c9e","500":"#6c6f81","600":"#5a5d6d","700":"#414351","800":"#363742","900":"#25262c"},"success":{"50":"#e1ebe2","100":"#beedc6","200":"#94e4a4","300":"#70df8b","400":"#4bd573","500":"#22c55e","600":"#00a244","700":"#006f22","800":"#2b4d32","900":"#0c2e16"},"success-muted":{"50":"#e7e8e7","100":"#dbe3dc","200":"#cad7cc","300":"#bfcfc1","400":"#b3c5b6","500":"#a5b8a8","600":"#839586","700":"#546256","800":"#404a41","900":"#222823"},"warning":{"50":"#ece7de","100":"#f5e0b5","200":"#f6d289","300":"#f9c962","400":"#f7bf3a","500":"#eeb308","600":"#c38e00","700":"#845a00","800":"#584720","900":"#332400"},"warning-muted":{"50":"#e8e8e6","100":"#e7e4dc","200":"#e2dcd0","300":"#ded7c8","400":"#dad1c0","500":"#d2c9b8","600":"#a9a090","700":"#6d6659","800":"#504c42","900":"#292621"},"error":{"50":"#f3e4e2","100":"#ffc8c1","200":"#ffa198","300":"#ff847b","400":"#ff6560","500":"#ef4444","600":"#cb2d31","700":"#950e18","800":"#5a312e","900":"#3f1917"},"error-muted":{"50":"#e9e7e7","100":"#e6dad8","200":"#d6c3c1","300":"#cdb4b2","400":"#bfa4a1","500":"#ab908d","600":"#8d7572","700":"#624e4c","800":"#4c3d3b","900":"#2d2423"},"info":{"50":"#e1e9ef","100":"#bce4fe","200":"#8fd2fd","300":"#6ac7ff","400":"#43b9fa","500":"#0ea5e9","600":"#0087c4","700":"#005c8d","800":"#1e465d","900":"#082a3c"},"info-muted":{"50":"#e7e8e9","100":"#d9e0e5","200":"#c5d0d7","300":"#b8c6cf","400":"#aab9c4","500":"#99a9b3","600":"#7a8993","700":"#4f5b63","800":"#3d464c","900":"#22272a"},"neutral":{"50":"#fafafa","100":"#f3f3f3","200":"#e4e4e4","300":"#cacaca","400":"#ababab","500":"#868686","600":"#696969","700":"#4d4d4d","800":"#333333","900":"#1b1b1b"},"white":"#FFFFFF","black":"#000000"},"spacing":{"px":{"0":"0px","1":"4px","2":"8px","3":"12px","4":"16px","5":"20px","6":"24px","7":"28px","8":"32px","9":"36px","10":"40px","11":"44px","12":"48px","13":"52px","14":"56px","15":"60px","16":"64px","17":"68px","18":"72px","19":"76px","20":"80px","21":"84px","22":"88px","23":"92px","24":"96px"},"rem":{"0":"0rem","1":"0.25rem","2":"0.5rem","3":"0.75rem","4":"1rem","5":"1.25rem","6":"1.5rem","7":"1.75rem","8":"2rem","9":"2.25rem","10":"2.5rem","11":"2.75rem","12":"3rem","13":"3.25rem","14":"3.5rem","15":"3.75rem","16":"4rem","17":"4.25rem","18":"4.5rem","19":"4.75rem","20":"5rem","21":"5.25rem","22":"5.5rem","23":"5.75rem","24":"6rem"}},"border":{"radius":"0.5rem","width":"1px","focusRingWidth":"3px","focusRingOffset":"2px"},"typography":{"fontFamilyPrimary":"\"Hanken Grotesk\", sans-serif"},"elevation":{"0":"none","1":"0 1px 3px 0 rgb(27 27 27 / 0.1), 0 1px 2px 0 rgb(27 27 27 / 0.06)","2":"0 4px 6px -1px rgb(27 27 27 / 0.1), 0 2px 4px -1px rgb(27 27 27 / 0.06)","3":"0 10px 15px -3px rgb(27 27 27 / 0.1), 0 4px 6px -2px rgb(27 27 27 / 0.05)","4":"0 20px 25px -5px rgb(27 27 27 / 0.1), 0 10px 10px -5px rgb(27 27 27 / 0.04)","5":"0 25px 50px -12px rgb(27 27 27 / 0.25)"},"duration":{"instant":"100ms","fast":"150ms","moderate":"200ms","slow":"300ms"},"ease":{"standard":"cubic-bezier(0.4, 0, 0.2, 1)","emphasized":"cubic-bezier(0.34, 1.2, 0.64, 1)"},"z":{"sticky":"100","overlay":"1000"},"semantic":{"text-default":"color-neutral-900","text-subtle":"color-neutral-600","text-muted":"color-neutral-600","text-disabled":"color-neutral-400","text-inverse":"color-white","text-neutral":"color-neutral-700","text-primary":"color-primary-700","text-secondary":"color-secondary-700","text-success":"color-success-700","text-warning":"color-warning-700","text-error":"color-error-700","text-info":"color-info-700","bg-default":"color-white","bg-subtle":"color-neutral-50","bg-surface":"color-neutral-100","bg-overlay":"color-neutral-200","bg-inverse":"color-neutral-900","bg-neutral-subtle":"color-neutral-100","bg-primary":"color-primary-500","bg-primary-subtle":"color-primary-100","bg-secondary":"color-secondary-500","bg-secondary-subtle":"color-secondary-100","bg-success":"color-success-500","bg-success-subtle":"color-success-100","bg-warning":"color-warning-500","bg-warning-subtle":"color-warning-100","bg-error":"color-error-500","bg-error-subtle":"color-error-100","bg-info":"color-info-500","bg-info-subtle":"color-info-100","border-default":"color-neutral-200","border-strong":"color-neutral-400","border-subtle":"color-neutral-100","border-focus":"color-primary-200","border-input":"border-default","focus-ring-color":"border-focus","focus-halo-color":"bg-primary-subtle","border-primary":"color-primary-200","border-primary-strong":"color-primary-500","border-secondary":"color-secondary-200","border-secondary-strong":"color-secondary-500","border-success":"color-success-200","border-success-strong":"color-success-500","border-warning":"color-warning-200","border-warning-strong":"color-warning-500","border-error":"color-error-200","border-error-strong":"color-error-500","border-info":"color-info-200","border-info-strong":"color-info-500","text-on-primary":"color-primary-900","interactive-primary-bg":"color-primary-500","interactive-primary-bg-hover":"color-primary-400","interactive-primary-bg-active":"color-primary-300","text-on-secondary":"color-white","interactive-secondary-bg":"color-secondary-500","interactive-secondary-bg-hover":"color-secondary-600","interactive-secondary-bg-active":"color-secondary-700","text-on-success":"color-success-900","interactive-success-bg":"color-success-500","interactive-success-bg-hover":"color-success-400","interactive-success-bg-active":"color-success-300","text-on-warning":"color-warning-900","interactive-warning-bg":"color-warning-500","interactive-warning-bg-hover":"color-warning-600","interactive-warning-bg-active":"color-warning-300","text-on-error":"color-neutral-900","interactive-error-bg":"color-error-500","interactive-error-bg-hover":"color-error-400","interactive-error-bg-active":"color-error-300","text-on-info":"color-info-900","interactive-info-bg":"color-info-500","interactive-info-bg-hover":"color-info-400","interactive-info-bg-active":"color-info-300","interactive-neutral-bg":"color-neutral-600","interactive-neutral-bg-hover":"color-neutral-700","interactive-neutral-bg-active":"color-neutral-800"},"semanticDark":{"text-default":"color-neutral-100","text-subtle":"color-neutral-300","text-muted":"color-neutral-400","text-disabled":"color-neutral-600","text-inverse":"color-neutral-900","text-neutral":"color-neutral-200","text-primary":"color-primary-300","text-secondary":"color-secondary-300","text-success":"color-success-300","text-warning":"color-warning-300","text-error":"color-error-300","text-info":"color-info-300","bg-default":"color-neutral-900","bg-subtle":"color-neutral-800","bg-surface":"color-neutral-800","bg-overlay":"color-neutral-700","bg-inverse":"color-neutral-50","bg-neutral-subtle":"color-neutral-800","bg-primary":"color-primary-500","bg-primary-subtle":"color-primary-900","bg-secondary":"color-secondary-500","bg-secondary-subtle":"color-secondary-900","bg-success":"color-success-500","bg-success-subtle":"color-success-900","bg-warning":"color-warning-500","bg-warning-subtle":"color-warning-900","bg-error":"color-error-500","bg-error-subtle":"color-error-900","bg-info":"color-info-500","bg-info-subtle":"color-info-900","border-default":"color-neutral-700","border-strong":"color-neutral-500","border-subtle":"color-neutral-800","border-focus":"color-primary-400","border-input":"border-default","focus-ring-color":"border-focus","focus-halo-color":"bg-primary-subtle","border-primary":"color-primary-700","border-primary-strong":"color-primary-500","border-secondary":"color-secondary-700","border-secondary-strong":"color-secondary-500","border-success":"color-success-700","border-success-strong":"color-success-500","border-warning":"color-warning-700","border-warning-strong":"color-warning-500","border-error":"color-error-700","border-error-strong":"color-error-500","border-info":"color-info-700","border-info-strong":"color-info-500","text-on-primary":"color-primary-900","interactive-primary-bg":"color-primary-400","interactive-primary-bg-hover":"color-primary-300","interactive-primary-bg-active":"color-primary-500","text-on-secondary":"color-black","interactive-secondary-bg":"color-secondary-400","interactive-secondary-bg-hover":"color-secondary-300","interactive-secondary-bg-active":"color-secondary-300","text-on-success":"color-success-900","interactive-success-bg":"color-success-400","interactive-success-bg-hover":"color-success-300","interactive-success-bg-active":"color-success-500","text-on-warning":"color-warning-900","interactive-warning-bg":"color-warning-400","interactive-warning-bg-hover":"color-warning-300","interactive-warning-bg-active":"color-warning-500","text-on-error":"color-neutral-900","interactive-error-bg":"color-error-400","interactive-error-bg-hover":"color-error-300","interactive-error-bg-active":"color-error-500","text-on-info":"color-info-900","interactive-info-bg":"color-info-400","interactive-info-bg-hover":"color-info-300","interactive-info-bg-active":"color-info-500","interactive-neutral-bg":"color-neutral-600","interactive-neutral-bg-hover":"color-neutral-700","interactive-neutral-bg-active":"color-neutral-800"}};
|
package/dist/tokens.json
CHANGED
|
@@ -217,7 +217,9 @@
|
|
|
217
217
|
},
|
|
218
218
|
"border": {
|
|
219
219
|
"radius": "0.5rem",
|
|
220
|
-
"width": "1px"
|
|
220
|
+
"width": "1px",
|
|
221
|
+
"focusRingWidth": "3px",
|
|
222
|
+
"focusRingOffset": "2px"
|
|
221
223
|
},
|
|
222
224
|
"typography": {
|
|
223
225
|
"fontFamilyPrimary": "\"Hanken Grotesk\", sans-serif"
|
|
@@ -230,6 +232,20 @@
|
|
|
230
232
|
"4": "0 20px 25px -5px rgb(27 27 27 / 0.1), 0 10px 10px -5px rgb(27 27 27 / 0.04)",
|
|
231
233
|
"5": "0 25px 50px -12px rgb(27 27 27 / 0.25)"
|
|
232
234
|
},
|
|
235
|
+
"duration": {
|
|
236
|
+
"instant": "100ms",
|
|
237
|
+
"fast": "150ms",
|
|
238
|
+
"moderate": "200ms",
|
|
239
|
+
"slow": "300ms"
|
|
240
|
+
},
|
|
241
|
+
"ease": {
|
|
242
|
+
"standard": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
243
|
+
"emphasized": "cubic-bezier(0.34, 1.2, 0.64, 1)"
|
|
244
|
+
},
|
|
245
|
+
"z": {
|
|
246
|
+
"sticky": "100",
|
|
247
|
+
"overlay": "1000"
|
|
248
|
+
},
|
|
233
249
|
"semantic": {
|
|
234
250
|
"text-default": "color-neutral-900",
|
|
235
251
|
"text-subtle": "color-neutral-600",
|
|
@@ -238,17 +254,11 @@
|
|
|
238
254
|
"text-inverse": "color-white",
|
|
239
255
|
"text-neutral": "color-neutral-700",
|
|
240
256
|
"text-primary": "color-primary-700",
|
|
241
|
-
"text-on-primary": "color-neutral-900",
|
|
242
257
|
"text-secondary": "color-secondary-700",
|
|
243
|
-
"text-on-secondary": "color-white",
|
|
244
258
|
"text-success": "color-success-700",
|
|
245
|
-
"text-on-success": "color-white",
|
|
246
259
|
"text-warning": "color-warning-700",
|
|
247
|
-
"text-on-warning": "color-warning-800",
|
|
248
260
|
"text-error": "color-error-700",
|
|
249
|
-
"text-on-error": "color-white",
|
|
250
261
|
"text-info": "color-info-700",
|
|
251
|
-
"text-on-info": "color-white",
|
|
252
262
|
"bg-default": "color-white",
|
|
253
263
|
"bg-subtle": "color-neutral-50",
|
|
254
264
|
"bg-surface": "color-neutral-100",
|
|
@@ -271,6 +281,9 @@
|
|
|
271
281
|
"border-strong": "color-neutral-400",
|
|
272
282
|
"border-subtle": "color-neutral-100",
|
|
273
283
|
"border-focus": "color-primary-200",
|
|
284
|
+
"border-input": "border-default",
|
|
285
|
+
"focus-ring-color": "border-focus",
|
|
286
|
+
"focus-halo-color": "bg-primary-subtle",
|
|
274
287
|
"border-primary": "color-primary-200",
|
|
275
288
|
"border-primary-strong": "color-primary-500",
|
|
276
289
|
"border-secondary": "color-secondary-200",
|
|
@@ -283,24 +296,33 @@
|
|
|
283
296
|
"border-error-strong": "color-error-500",
|
|
284
297
|
"border-info": "color-info-200",
|
|
285
298
|
"border-info-strong": "color-info-500",
|
|
299
|
+
"text-on-primary": "color-primary-900",
|
|
286
300
|
"interactive-primary-bg": "color-primary-500",
|
|
287
|
-
"interactive-primary-bg-hover": "color-primary-
|
|
288
|
-
"interactive-primary-bg-active": "color-primary-
|
|
301
|
+
"interactive-primary-bg-hover": "color-primary-400",
|
|
302
|
+
"interactive-primary-bg-active": "color-primary-300",
|
|
303
|
+
"text-on-secondary": "color-white",
|
|
289
304
|
"interactive-secondary-bg": "color-secondary-500",
|
|
290
305
|
"interactive-secondary-bg-hover": "color-secondary-600",
|
|
291
306
|
"interactive-secondary-bg-active": "color-secondary-700",
|
|
307
|
+
"text-on-success": "color-success-900",
|
|
292
308
|
"interactive-success-bg": "color-success-500",
|
|
293
|
-
"interactive-success-bg-hover": "color-success-
|
|
294
|
-
"interactive-success-bg-active": "color-success-
|
|
309
|
+
"interactive-success-bg-hover": "color-success-400",
|
|
310
|
+
"interactive-success-bg-active": "color-success-300",
|
|
311
|
+
"text-on-warning": "color-warning-900",
|
|
295
312
|
"interactive-warning-bg": "color-warning-500",
|
|
296
313
|
"interactive-warning-bg-hover": "color-warning-600",
|
|
297
|
-
"interactive-warning-bg-active": "color-warning-
|
|
314
|
+
"interactive-warning-bg-active": "color-warning-300",
|
|
315
|
+
"text-on-error": "color-neutral-900",
|
|
298
316
|
"interactive-error-bg": "color-error-500",
|
|
299
|
-
"interactive-error-bg-hover": "color-error-
|
|
300
|
-
"interactive-error-bg-active": "color-error-
|
|
317
|
+
"interactive-error-bg-hover": "color-error-400",
|
|
318
|
+
"interactive-error-bg-active": "color-error-300",
|
|
319
|
+
"text-on-info": "color-info-900",
|
|
301
320
|
"interactive-info-bg": "color-info-500",
|
|
302
|
-
"interactive-info-bg-hover": "color-info-
|
|
303
|
-
"interactive-info-bg-active": "color-info-
|
|
321
|
+
"interactive-info-bg-hover": "color-info-400",
|
|
322
|
+
"interactive-info-bg-active": "color-info-300",
|
|
323
|
+
"interactive-neutral-bg": "color-neutral-600",
|
|
324
|
+
"interactive-neutral-bg-hover": "color-neutral-700",
|
|
325
|
+
"interactive-neutral-bg-active": "color-neutral-800"
|
|
304
326
|
},
|
|
305
327
|
"semanticDark": {
|
|
306
328
|
"text-default": "color-neutral-100",
|
|
@@ -310,17 +332,11 @@
|
|
|
310
332
|
"text-inverse": "color-neutral-900",
|
|
311
333
|
"text-neutral": "color-neutral-200",
|
|
312
334
|
"text-primary": "color-primary-300",
|
|
313
|
-
"text-on-primary": "color-neutral-900",
|
|
314
335
|
"text-secondary": "color-secondary-300",
|
|
315
|
-
"text-on-secondary": "color-white",
|
|
316
336
|
"text-success": "color-success-300",
|
|
317
|
-
"text-on-success": "color-white",
|
|
318
337
|
"text-warning": "color-warning-300",
|
|
319
|
-
"text-on-warning": "color-warning-800",
|
|
320
338
|
"text-error": "color-error-300",
|
|
321
|
-
"text-on-error": "color-white",
|
|
322
339
|
"text-info": "color-info-300",
|
|
323
|
-
"text-on-info": "color-white",
|
|
324
340
|
"bg-default": "color-neutral-900",
|
|
325
341
|
"bg-subtle": "color-neutral-800",
|
|
326
342
|
"bg-surface": "color-neutral-800",
|
|
@@ -343,6 +359,9 @@
|
|
|
343
359
|
"border-strong": "color-neutral-500",
|
|
344
360
|
"border-subtle": "color-neutral-800",
|
|
345
361
|
"border-focus": "color-primary-400",
|
|
362
|
+
"border-input": "border-default",
|
|
363
|
+
"focus-ring-color": "border-focus",
|
|
364
|
+
"focus-halo-color": "bg-primary-subtle",
|
|
346
365
|
"border-primary": "color-primary-700",
|
|
347
366
|
"border-primary-strong": "color-primary-500",
|
|
348
367
|
"border-secondary": "color-secondary-700",
|
|
@@ -355,23 +374,32 @@
|
|
|
355
374
|
"border-error-strong": "color-error-500",
|
|
356
375
|
"border-info": "color-info-700",
|
|
357
376
|
"border-info-strong": "color-info-500",
|
|
377
|
+
"text-on-primary": "color-primary-900",
|
|
358
378
|
"interactive-primary-bg": "color-primary-400",
|
|
359
379
|
"interactive-primary-bg-hover": "color-primary-300",
|
|
360
380
|
"interactive-primary-bg-active": "color-primary-500",
|
|
381
|
+
"text-on-secondary": "color-black",
|
|
361
382
|
"interactive-secondary-bg": "color-secondary-400",
|
|
362
383
|
"interactive-secondary-bg-hover": "color-secondary-300",
|
|
363
|
-
"interactive-secondary-bg-active": "color-secondary-
|
|
384
|
+
"interactive-secondary-bg-active": "color-secondary-300",
|
|
385
|
+
"text-on-success": "color-success-900",
|
|
364
386
|
"interactive-success-bg": "color-success-400",
|
|
365
387
|
"interactive-success-bg-hover": "color-success-300",
|
|
366
388
|
"interactive-success-bg-active": "color-success-500",
|
|
389
|
+
"text-on-warning": "color-warning-900",
|
|
367
390
|
"interactive-warning-bg": "color-warning-400",
|
|
368
391
|
"interactive-warning-bg-hover": "color-warning-300",
|
|
369
392
|
"interactive-warning-bg-active": "color-warning-500",
|
|
393
|
+
"text-on-error": "color-neutral-900",
|
|
370
394
|
"interactive-error-bg": "color-error-400",
|
|
371
395
|
"interactive-error-bg-hover": "color-error-300",
|
|
372
396
|
"interactive-error-bg-active": "color-error-500",
|
|
397
|
+
"text-on-info": "color-info-900",
|
|
373
398
|
"interactive-info-bg": "color-info-400",
|
|
374
399
|
"interactive-info-bg-hover": "color-info-300",
|
|
375
|
-
"interactive-info-bg-active": "color-info-500"
|
|
400
|
+
"interactive-info-bg-active": "color-info-500",
|
|
401
|
+
"interactive-neutral-bg": "color-neutral-600",
|
|
402
|
+
"interactive-neutral-bg-hover": "color-neutral-700",
|
|
403
|
+
"interactive-neutral-bg-active": "color-neutral-800"
|
|
376
404
|
}
|
|
377
405
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { PaletteFlat } from './palette.types';
|
|
2
2
|
import type { SpacingTokens } from './spacing.types';
|
|
3
3
|
import type { ElevationTokens } from '../elevation/';
|
|
4
|
+
import type { DurationToken, EaseToken } from '../motion/';
|
|
5
|
+
import type { ZIndexLayer } from '../zindex/';
|
|
4
6
|
/**
|
|
5
7
|
* Complete design system tokens.
|
|
6
|
-
* Includes color palettes, spacing scales, border properties, typography, and
|
|
8
|
+
* Includes color palettes, spacing scales, border properties, typography, elevation, motion, and z-index.
|
|
7
9
|
*
|
|
8
10
|
* Elevation is automatically generated from the neutral color palette to ensure
|
|
9
11
|
* consistent shadows that match the design system's color scheme.
|
|
@@ -21,7 +23,10 @@ import type { ElevationTokens } from '../elevation/';
|
|
|
21
23
|
* px: { "0": "0px", "1": "4px", ... }
|
|
22
24
|
* },
|
|
23
25
|
* border: {
|
|
24
|
-
* radius: "0.375rem"
|
|
26
|
+
* radius: "0.375rem",
|
|
27
|
+
* width: "1px",
|
|
28
|
+
* focusRingWidth: "3px",
|
|
29
|
+
* focusRingOffset: "2px"
|
|
25
30
|
* },
|
|
26
31
|
* typography: {
|
|
27
32
|
* fontFamilyPrimary: "Hanken Grotesk, sans-serif"
|
|
@@ -30,7 +35,10 @@ import type { ElevationTokens } from '../elevation/';
|
|
|
30
35
|
* "0": "none",
|
|
31
36
|
* "1": "0 1px 3px 0 rgb(23 23 23 / 0.1), 0 1px 2px 0 rgb(23 23 23 / 0.06)",
|
|
32
37
|
* // ... other elevations (generated from neutral-900)
|
|
33
|
-
* }
|
|
38
|
+
* },
|
|
39
|
+
* duration: { instant: "100ms", fast: "150ms", moderate: "200ms", slow: "300ms" },
|
|
40
|
+
* ease: { standard: "cubic-bezier(0.4, 0, 0.2, 1)", emphasized: "cubic-bezier(0.34, 1.2, 0.64, 1)" },
|
|
41
|
+
* z: { sticky: "100", overlay: "1000" }
|
|
34
42
|
* };
|
|
35
43
|
* ```
|
|
36
44
|
*/
|
|
@@ -40,11 +48,16 @@ export type Tokens = {
|
|
|
40
48
|
border: {
|
|
41
49
|
radius: string;
|
|
42
50
|
width: string;
|
|
51
|
+
focusRingWidth: string;
|
|
52
|
+
focusRingOffset: string;
|
|
43
53
|
};
|
|
44
54
|
typography: {
|
|
45
55
|
fontFamilyPrimary: string;
|
|
46
56
|
} & Record<string, string>;
|
|
47
57
|
elevation: ElevationTokens;
|
|
58
|
+
duration: Record<DurationToken, string>;
|
|
59
|
+
ease: Record<EaseToken, string>;
|
|
60
|
+
z: Record<ZIndexLayer, string>;
|
|
48
61
|
};
|
|
49
62
|
export type { Config, TokenColorName } from './';
|
|
50
63
|
/**
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stacking-layer scale.
|
|
3
|
+
*
|
|
4
|
+
* - `sticky`: in-flow elements that sit above normal content (header, nav)
|
|
5
|
+
* - `overlay`: floating overlay content not on the native top layer (select, combobox, dropdown, tooltip,
|
|
6
|
+
* date-input's calendar popover) — components using native `<dialog>`/the Popover API (dialog, sidepanel,
|
|
7
|
+
* snackbar) don't need a z-index token at all, since the top layer always wins regardless of stacking context.
|
|
8
|
+
*/
|
|
9
|
+
export type ZIndexLayer = 'sticky' | 'overlay';
|
|
10
|
+
export declare const buildZIndex: () => Record<ZIndexLayer, string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@latty-ds/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Design tokens for the Latty design system — generates CSS custom properties, JSON, and JavaScript exports from a single config file",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@latty-ds/utils": "0.7.0",
|
|
57
57
|
"@types/culori": "^4.0.1",
|
|
58
|
-
"typescript": "^
|
|
58
|
+
"typescript": "^6.0.3"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"culori": "^4.0.2"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "fa5fe02064dea0ecfbb11423a5e51093b2bf7095"
|
|
64
64
|
}
|