@velora-cms/design-tokens 0.14.0 → 0.14.1

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/types.d.ts DELETED
@@ -1,69 +0,0 @@
1
- /**
2
- * Design token type definitions — the shape every theme (built-in or
3
- * plugin) targets.
4
- */
5
- export type ColorScaleStep = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950';
6
- export type ColorScale = Record<ColorScaleStep, string>;
7
- /**
8
- * 4px-base spacing scale. Keys are multiples of the base unit
9
- * (spacing '4' = 4 × 4px = 1rem), plus 'px' for hairline offsets.
10
- * Dots are avoided in keys so CSS custom property names stay valid
11
- * without escaping.
12
- */
13
- export type SpacingStep = '0' | 'px' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '14' | '16' | '20' | '24' | '72';
14
- export type ScaleTokens = Record<SpacingStep, string>;
15
- export interface VeloraDesignTokens {
16
- color: {
17
- primary: ColorScale;
18
- secondary: ColorScale;
19
- success: ColorScale;
20
- warning: ColorScale;
21
- danger: ColorScale;
22
- neutral: ColorScale;
23
- background: {
24
- base: string;
25
- elevated: string;
26
- subtle: string;
27
- overlay: string;
28
- hover: string;
29
- };
30
- text: {
31
- primary: string;
32
- secondary: string;
33
- tertiary: string;
34
- disabled: string;
35
- inverse: string;
36
- };
37
- border: {
38
- default: string;
39
- subtle: string;
40
- strong: string;
41
- };
42
- code: {
43
- keyword: string;
44
- tag: string;
45
- string: string;
46
- attr: string;
47
- comment: string;
48
- punctuation: string;
49
- };
50
- };
51
- typography: {
52
- fontFamily: {
53
- sans: string;
54
- serif: string;
55
- mono: string;
56
- };
57
- fontSize: Record<'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl', string>;
58
- fontWeight: Record<'normal' | 'medium' | 'semibold' | 'bold', number>;
59
- lineHeight: Record<'tight' | 'normal' | 'relaxed', number>;
60
- };
61
- spacing: ScaleTokens;
62
- radius: Record<'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full', string>;
63
- shadow: Record<'sm' | 'md' | 'lg' | 'xl', string>;
64
- motion: {
65
- duration: Record<string, string>;
66
- easing: Record<string, string>;
67
- };
68
- direction: 'ltr' | 'rtl';
69
- }
package/dist/types.js DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Design token type definitions — the shape every theme (built-in or
3
- * plugin) targets.
4
- */
5
- export {};