sve-ui 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/dist/ThemeProvider.svelte +46 -0
  2. package/dist/ThemeProvider.svelte.d.ts +12 -0
  3. package/dist/ThemeProvider.svelte.d.ts.map +1 -0
  4. package/dist/components/Alert/AlertDescription.svelte +31 -0
  5. package/dist/components/Alert/AlertDescription.svelte.d.ts +10 -0
  6. package/dist/components/Alert/AlertDescription.svelte.d.ts.map +1 -0
  7. package/dist/components/Alert/AlertRoot.svelte +103 -0
  8. package/dist/components/Alert/AlertRoot.svelte.d.ts +29 -0
  9. package/dist/components/Alert/AlertRoot.svelte.d.ts.map +1 -0
  10. package/dist/components/Alert/AlertTitle.svelte +34 -0
  11. package/dist/components/Alert/AlertTitle.svelte.d.ts +12 -0
  12. package/dist/components/Alert/AlertTitle.svelte.d.ts.map +1 -0
  13. package/dist/components/Alert/index.d.ts +11 -0
  14. package/dist/components/Alert/index.d.ts.map +1 -0
  15. package/dist/components/Alert/index.js +10 -0
  16. package/dist/components/Avatar/AvatarFallback.svelte +33 -0
  17. package/dist/components/Avatar/AvatarFallback.svelte.d.ts +12 -0
  18. package/dist/components/Avatar/AvatarFallback.svelte.d.ts.map +1 -0
  19. package/dist/components/Avatar/AvatarImage.svelte +27 -0
  20. package/dist/components/Avatar/AvatarImage.svelte.d.ts +12 -0
  21. package/dist/components/Avatar/AvatarImage.svelte.d.ts.map +1 -0
  22. package/dist/components/Avatar/AvatarRoot.svelte +67 -0
  23. package/dist/components/Avatar/AvatarRoot.svelte.d.ts +16 -0
  24. package/dist/components/Avatar/AvatarRoot.svelte.d.ts.map +1 -0
  25. package/dist/components/Avatar/index.d.ts +15 -0
  26. package/dist/components/Avatar/index.d.ts.map +1 -0
  27. package/dist/components/Avatar/index.js +14 -0
  28. package/dist/components/Badge/Badge.svelte +125 -0
  29. package/dist/components/Badge/Badge.svelte.d.ts +37 -0
  30. package/dist/components/Badge/Badge.svelte.d.ts.map +1 -0
  31. package/dist/components/Button/Button.svelte +296 -112
  32. package/dist/components/Button/Button.svelte.d.ts +34 -48
  33. package/dist/components/Button/Button.svelte.d.ts.map +1 -0
  34. package/dist/components/Card/CardContent.svelte +33 -0
  35. package/dist/components/Card/CardContent.svelte.d.ts +10 -0
  36. package/dist/components/Card/CardContent.svelte.d.ts.map +1 -0
  37. package/dist/components/Card/CardFooter.svelte +33 -0
  38. package/dist/components/Card/CardFooter.svelte.d.ts +10 -0
  39. package/dist/components/Card/CardFooter.svelte.d.ts.map +1 -0
  40. package/dist/components/Card/CardHeader.svelte +33 -0
  41. package/dist/components/Card/CardHeader.svelte.d.ts +10 -0
  42. package/dist/components/Card/CardHeader.svelte.d.ts.map +1 -0
  43. package/dist/components/Card/CardRoot.svelte +91 -0
  44. package/dist/components/Card/CardRoot.svelte.d.ts +28 -0
  45. package/dist/components/Card/CardRoot.svelte.d.ts.map +1 -0
  46. package/dist/components/Card/index.d.ts +13 -0
  47. package/dist/components/Card/index.d.ts.map +1 -0
  48. package/dist/components/Card/index.js +12 -0
  49. package/dist/components/Dialog/DialogContent.svelte +47 -0
  50. package/dist/components/Dialog/DialogContent.svelte.d.ts +10 -0
  51. package/dist/components/Dialog/DialogContent.svelte.d.ts.map +1 -0
  52. package/dist/components/Dialog/DialogDescription.svelte +29 -0
  53. package/dist/components/Dialog/DialogDescription.svelte.d.ts +10 -0
  54. package/dist/components/Dialog/DialogDescription.svelte.d.ts.map +1 -0
  55. package/dist/components/Dialog/DialogOverlay.svelte +32 -0
  56. package/dist/components/Dialog/DialogOverlay.svelte.d.ts +10 -0
  57. package/dist/components/Dialog/DialogOverlay.svelte.d.ts.map +1 -0
  58. package/dist/components/Dialog/DialogTitle.svelte +30 -0
  59. package/dist/components/Dialog/DialogTitle.svelte.d.ts +10 -0
  60. package/dist/components/Dialog/DialogTitle.svelte.d.ts.map +1 -0
  61. package/dist/components/Dialog/index.d.ts +21 -0
  62. package/dist/components/Dialog/index.d.ts.map +1 -0
  63. package/dist/components/Dialog/index.js +22 -0
  64. package/dist/components/DropdownMenu/DropdownMenuContent.svelte +40 -0
  65. package/dist/components/DropdownMenu/DropdownMenuContent.svelte.d.ts +10 -0
  66. package/dist/components/DropdownMenu/DropdownMenuContent.svelte.d.ts.map +1 -0
  67. package/dist/components/DropdownMenu/DropdownMenuGroup.svelte +18 -0
  68. package/dist/components/DropdownMenu/DropdownMenuGroup.svelte.d.ts +10 -0
  69. package/dist/components/DropdownMenu/DropdownMenuGroup.svelte.d.ts.map +1 -0
  70. package/dist/components/DropdownMenu/DropdownMenuItem.svelte +40 -0
  71. package/dist/components/DropdownMenu/DropdownMenuItem.svelte.d.ts +10 -0
  72. package/dist/components/DropdownMenu/DropdownMenuItem.svelte.d.ts.map +1 -0
  73. package/dist/components/DropdownMenu/DropdownMenuLabel.svelte +34 -0
  74. package/dist/components/DropdownMenu/DropdownMenuLabel.svelte.d.ts +10 -0
  75. package/dist/components/DropdownMenu/DropdownMenuLabel.svelte.d.ts.map +1 -0
  76. package/dist/components/DropdownMenu/DropdownMenuSeparator.svelte +25 -0
  77. package/dist/components/DropdownMenu/DropdownMenuSeparator.svelte.d.ts +10 -0
  78. package/dist/components/DropdownMenu/DropdownMenuSeparator.svelte.d.ts.map +1 -0
  79. package/dist/components/DropdownMenu/index.d.ts +31 -0
  80. package/dist/components/DropdownMenu/index.d.ts.map +1 -0
  81. package/dist/components/DropdownMenu/index.js +33 -0
  82. package/dist/components/Heading/Heading.svelte +72 -0
  83. package/dist/components/Heading/Heading.svelte.d.ts +18 -0
  84. package/dist/components/Heading/Heading.svelte.d.ts.map +1 -0
  85. package/dist/components/Input/Input.svelte +151 -0
  86. package/dist/components/Input/Input.svelte.d.ts +25 -0
  87. package/dist/components/Input/Input.svelte.d.ts.map +1 -0
  88. package/dist/components/Popover/PopoverContent.svelte +40 -0
  89. package/dist/components/Popover/PopoverContent.svelte.d.ts +10 -0
  90. package/dist/components/Popover/PopoverContent.svelte.d.ts.map +1 -0
  91. package/dist/components/Popover/index.d.ts +20 -0
  92. package/dist/components/Popover/index.d.ts.map +1 -0
  93. package/dist/components/Popover/index.js +21 -0
  94. package/dist/components/Spinner/Spinner.svelte +82 -0
  95. package/dist/components/Spinner/Spinner.svelte.d.ts +13 -0
  96. package/dist/components/Spinner/Spinner.svelte.d.ts.map +1 -0
  97. package/dist/components/Text/Text.svelte +84 -45
  98. package/dist/components/Text/Text.svelte.d.ts +20 -44
  99. package/dist/components/Text/Text.svelte.d.ts.map +1 -0
  100. package/dist/components/Tooltip/TooltipContent.svelte +41 -0
  101. package/dist/components/Tooltip/TooltipContent.svelte.d.ts +10 -0
  102. package/dist/components/Tooltip/TooltipContent.svelte.d.ts.map +1 -0
  103. package/dist/components/Tooltip/index.d.ts +19 -0
  104. package/dist/components/Tooltip/index.d.ts.map +1 -0
  105. package/dist/components/Tooltip/index.js +20 -0
  106. package/dist/context.d.ts +14 -0
  107. package/dist/context.d.ts.map +1 -0
  108. package/dist/context.js +16 -0
  109. package/dist/index.d.ts +28 -26
  110. package/dist/index.d.ts.map +1 -0
  111. package/dist/index.js +43 -13
  112. package/dist/internal/variants.d.ts +44 -0
  113. package/dist/internal/variants.d.ts.map +1 -0
  114. package/dist/internal/variants.js +54 -0
  115. package/dist/theme/breakpoints.d.ts +1 -0
  116. package/dist/theme/breakpoints.d.ts.map +1 -0
  117. package/dist/theme/index.d.ts +12 -182
  118. package/dist/theme/index.d.ts.map +1 -0
  119. package/dist/theme/index.js +13 -19
  120. package/dist/theme/palette.d.ts +153 -0
  121. package/dist/theme/palette.d.ts.map +1 -0
  122. package/dist/theme/palette.js +85 -0
  123. package/dist/theme/radius.d.ts +1 -0
  124. package/dist/theme/radius.d.ts.map +1 -0
  125. package/dist/theme/sizes.d.ts +1 -0
  126. package/dist/theme/sizes.d.ts.map +1 -0
  127. package/dist/theme/spacing.d.ts +1 -0
  128. package/dist/theme/spacing.d.ts.map +1 -0
  129. package/dist/theme/theme.css +268 -0
  130. package/dist/theme/tokens.d.ts +108 -0
  131. package/dist/theme/tokens.d.ts.map +1 -0
  132. package/dist/theme/tokens.js +236 -0
  133. package/dist/theme/typography.d.ts +1 -0
  134. package/dist/theme/typography.d.ts.map +1 -0
  135. package/package.json +74 -67
  136. package/README.md +0 -94
  137. package/dist/components/Box/Box.svelte +0 -48
  138. package/dist/components/Box/Box.svelte.d.ts +0 -160
  139. package/dist/components/Center/Center.svelte +0 -15
  140. package/dist/components/Center/Center.svelte.d.ts +0 -25
  141. package/dist/components/Circle/Circle.svelte +0 -9
  142. package/dist/components/Circle/Circle.svelte.d.ts +0 -34
  143. package/dist/components/CodeExample/CodeExample.svelte +0 -128
  144. package/dist/components/CodeExample/CodeExample.svelte.d.ts +0 -46
  145. package/dist/components/Flex/Flex.svelte +0 -26
  146. package/dist/components/Flex/Flex.svelte.d.ts +0 -34
  147. package/dist/components/Grid/Grid.svelte +0 -16
  148. package/dist/components/Grid/Grid.svelte.d.ts +0 -44
  149. package/dist/components/GridItem/GridItem.svelte +0 -22
  150. package/dist/components/GridItem/GridItem.svelte.d.ts +0 -29
  151. package/dist/components/Loaders/DotPulse.svelte +0 -62
  152. package/dist/components/Loaders/DotPulse.svelte.d.ts +0 -40
  153. package/dist/components/Loaders/DotSpinner.svelte +0 -121
  154. package/dist/components/Loaders/DotSpinner.svelte.d.ts +0 -40
  155. package/dist/components/Loaders/DotWave.svelte +0 -67
  156. package/dist/components/Loaders/DotWave.svelte.d.ts +0 -40
  157. package/dist/components/Spacer/Spacer.svelte +0 -5
  158. package/dist/components/Spacer/Spacer.svelte.d.ts +0 -21
  159. package/dist/components/Square/Square.svelte +0 -17
  160. package/dist/components/Square/Square.svelte.d.ts +0 -34
  161. /package/{LICENCE → LICENSE} +0 -0
@@ -0,0 +1,54 @@
1
+ /**
2
+ * defineVariants — typed CVA-like variant resolver.
3
+ *
4
+ * Returns a resolver function that maps variant × color × size props to a
5
+ * merged CSS class string. No external dependencies. No `any` in the public
6
+ * surface. Visual values live in scoped CSS keyed by the emitted class names.
7
+ */
8
+ // ---------------------------------------------------------------------------
9
+ // Factory
10
+ // ---------------------------------------------------------------------------
11
+ /**
12
+ * Create a variant resolver function from a config.
13
+ *
14
+ * @example
15
+ * const button = defineVariants({
16
+ * base: 'btn',
17
+ * variants: {
18
+ * variant: { solid: 'btn--solid', ghost: 'btn--ghost' },
19
+ * size: { sm: 'btn--sm', md: 'btn--md' },
20
+ * },
21
+ * defaultVariants: { variant: 'solid', size: 'md' },
22
+ * });
23
+ *
24
+ * button() // → 'btn btn--solid btn--md'
25
+ * button({ variant: 'ghost' }) // → 'btn btn--ghost btn--md'
26
+ * button({ class: 'extra' }) // → 'btn btn--solid btn--md extra'
27
+ */
28
+ export function defineVariants(config) {
29
+ return function resolveVariants(props) {
30
+ const parts = [];
31
+ // 1. Base class
32
+ if (config.base) {
33
+ parts.push(config.base);
34
+ }
35
+ // 2. Per-axis class resolution
36
+ for (const axis in config.variants) {
37
+ const axisMap = config.variants[axis];
38
+ // Prefer explicit prop value, fall back to defaultVariants
39
+ const value = props?.[axis] ??
40
+ config.defaultVariants?.[axis];
41
+ if (value !== undefined) {
42
+ const cls = axisMap[value];
43
+ if (cls) {
44
+ parts.push(cls);
45
+ }
46
+ }
47
+ }
48
+ // 3. Extra class prop
49
+ if (props?.class) {
50
+ parts.push(props.class);
51
+ }
52
+ return parts.join(' ');
53
+ };
54
+ }
@@ -6,3 +6,4 @@ export declare const breakpoints: {
6
6
  xl: string;
7
7
  "2xl": string;
8
8
  };
9
+ //# sourceMappingURL=breakpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../src/lib/theme/breakpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;;CAOvB,CAAA"}
@@ -1,183 +1,13 @@
1
- export declare const theme: {
2
- fonts: {
3
- heading: string;
4
- body: string;
5
- };
6
- fontSizes: {
7
- '6xs': string;
8
- '5xs': string;
9
- "4xs": string;
10
- "3xs": string;
11
- "2xs": string;
12
- xs: string;
13
- sm: string;
14
- md: string;
15
- lg: string;
16
- xl: string;
17
- '2xl': string;
18
- '3xl': string;
19
- '4xl': string;
20
- '5xl': string;
21
- '6xl': string;
22
- '7xl': string;
23
- '8xl': string;
24
- '9xl': string;
25
- '10xl': string;
26
- };
27
- fontWeights: {
28
- hairline: number;
29
- thin: number;
30
- light: number;
31
- normal: number;
32
- medium: number;
33
- semibold: number;
34
- bold: number;
35
- extrabold: number;
36
- black: number;
37
- };
38
- letterSpacings: {
39
- tighter: string;
40
- tight: string;
41
- normal: string;
42
- wide: string;
43
- wider: string;
44
- widest: string;
45
- };
46
- lineHeights: {
47
- normal: string;
48
- none: number;
49
- shorter: number;
50
- short: number;
51
- base: number;
52
- tall: number;
53
- taller: string;
54
- "3": string;
55
- "4": string;
56
- "5": string;
57
- "6": string;
58
- "7": string;
59
- "8": string;
60
- "9": string;
61
- "10": string;
62
- };
63
- colors: {
64
- primary: string;
65
- secondary: string;
66
- tertiary: string;
67
- dark: string;
68
- light: string;
69
- };
70
- sizes: {
71
- container: {
72
- base: string;
73
- sm: string;
74
- md: string;
75
- lg: string;
76
- xl: string;
77
- };
78
- px: string;
79
- 0.5: string;
80
- 1: string;
81
- 1.5: string;
82
- 2: string;
83
- 2.5: string;
84
- 3: string;
85
- 3.5: string;
86
- 4: string;
87
- 5: string;
88
- 6: string;
89
- 7: string;
90
- 8: string;
91
- 9: string;
92
- 10: string;
93
- 12: string;
94
- 14: string;
95
- 16: string;
96
- 20: string;
97
- 24: string;
98
- 28: string;
99
- 32: string;
100
- 36: string;
101
- 40: string;
102
- 44: string;
103
- 48: string;
104
- 52: string;
105
- 56: string;
106
- 60: string;
107
- 64: string;
108
- 72: string;
109
- 80: string;
110
- 96: string;
111
- max: string;
112
- min: string;
113
- full: string;
114
- "3xs": string;
115
- "2xs": string;
116
- xs: string;
117
- sm: string;
118
- md: string;
119
- lg: string;
120
- xl: string;
121
- "2xl": string;
122
- "3xl": string;
123
- "4xl": string;
124
- "5xl": string;
125
- "6xl": string;
126
- "7xl": string;
127
- "8xl": string;
128
- prose: string;
129
- };
130
- spacing: {
131
- px: string;
132
- 0.5: string;
133
- 1: string;
134
- 1.5: string;
135
- 2: string;
136
- 2.5: string;
137
- 3: string;
138
- 3.5: string;
139
- 4: string;
140
- 5: string;
141
- 6: string;
142
- 7: string;
143
- 8: string;
144
- 9: string;
145
- 10: string;
146
- 12: string;
147
- 14: string;
148
- 16: string;
149
- 20: string;
150
- 24: string;
151
- 28: string;
152
- 32: string;
153
- 36: string;
154
- 40: string;
155
- 44: string;
156
- 48: string;
157
- 52: string;
158
- 56: string;
159
- 60: string;
160
- 64: string;
161
- 72: string;
162
- 80: string;
163
- 96: string;
164
- };
165
- radius: {
166
- none: string;
167
- sm: string;
168
- md: string;
169
- lg: string;
170
- xl: string;
171
- '2xl': string;
172
- '3xl': string;
173
- full: string;
174
- };
175
- breakpoints: {
176
- base: string;
177
- sm: string;
178
- md: string;
179
- lg: string;
180
- xl: string;
181
- "2xl": string;
182
- };
1
+ /**
2
+ * sve-ui/theme subpath export
3
+ *
4
+ * Re-exports all token types, scales, and token maps.
5
+ * The old flat `theme` export has been removed (WU-2 restructure).
6
+ */
7
+ export { palette, primaryScale, secondaryScale, successScale, warningScale, dangerScale, defaultScale, type PaletteScale, } from './palette';
8
+ export { lightTokens, darkTokens, themeToVars, type SveTheme, type PartialSveTheme, type SveColors, type SveColorRole, type SveSpacing, type SveRadius, type SveTypography, } from './tokens';
9
+ export declare const tokens: {
10
+ light: import("./tokens").SveTheme;
11
+ dark: import("./tokens").SveTheme;
183
12
  };
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/theme/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,OAAO,EACP,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,KAAK,YAAY,GAClB,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,WAAW,EACX,UAAU,EACV,WAAW,EACX,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,aAAa,GACnB,MAAM,UAAU,CAAC;AAIlB,eAAO,MAAM,MAAM;;;CAA2C,CAAC"}
@@ -1,19 +1,13 @@
1
- import { sizes } from './sizes';
2
- import { radius } from './radius';
3
- import { spacing } from './spacing';
4
- import { typography } from './typography';
5
- import { breakpoints } from './breakpoints';
6
- export const theme = {
7
- colors: {
8
- primary: '#F56565',
9
- secondary: '#ED8936',
10
- tertiary: '#ECC94B',
11
- dark: '#2D3748',
12
- light: '#EDF2F7',
13
- },
14
- sizes,
15
- spacing,
16
- radius,
17
- breakpoints,
18
- ...typography
19
- };
1
+ /**
2
+ * sve-ui/theme subpath export
3
+ *
4
+ * Re-exports all token types, scales, and token maps.
5
+ * The old flat `theme` export has been removed (WU-2 restructure).
6
+ */
7
+ // Palette scales (raw color values — use semantic tokens in components)
8
+ export { palette, primaryScale, secondaryScale, successScale, warningScale, dangerScale, defaultScale, } from './palette';
9
+ // Semantic token maps and types
10
+ export { lightTokens, darkTokens, themeToVars, } from './tokens';
11
+ // Convenience grouped export: import { tokens } from 'sve-ui/theme'
12
+ import { lightTokens, darkTokens } from './tokens';
13
+ export const tokens = { light: lightTokens, dark: darkTokens };
@@ -0,0 +1,153 @@
1
+ /**
2
+ * Color palette scales — raw values (50–900) per semantic family.
3
+ * Seeded from the original flat colors and expanded to full 9-stop scales.
4
+ * Components should NOT import these directly — use semantic tokens instead.
5
+ */
6
+ export declare const primaryScale: {
7
+ readonly 50: "#fff5f5";
8
+ readonly 100: "#fed7d7";
9
+ readonly 200: "#feb2b2";
10
+ readonly 300: "#fc8181";
11
+ readonly 400: "#f87171";
12
+ readonly 500: "#f56565";
13
+ readonly 600: "#e53e3e";
14
+ readonly 700: "#c53030";
15
+ readonly 800: "#9b2c2c";
16
+ readonly 900: "#742a2a";
17
+ };
18
+ export declare const secondaryScale: {
19
+ readonly 50: "#fffaf0";
20
+ readonly 100: "#feebc8";
21
+ readonly 200: "#fbd38d";
22
+ readonly 300: "#f6ad55";
23
+ readonly 400: "#ed9e40";
24
+ readonly 500: "#ed8936";
25
+ readonly 600: "#dd6b20";
26
+ readonly 700: "#c05621";
27
+ readonly 800: "#9c4221";
28
+ readonly 900: "#7b341e";
29
+ };
30
+ export declare const successScale: {
31
+ readonly 50: "#f0fff4";
32
+ readonly 100: "#c6f6d5";
33
+ readonly 200: "#9ae6b4";
34
+ readonly 300: "#68d391";
35
+ readonly 400: "#48bb78";
36
+ readonly 500: "#38a169";
37
+ readonly 600: "#2f855a";
38
+ readonly 700: "#276749";
39
+ readonly 800: "#22543d";
40
+ readonly 900: "#1c4532";
41
+ };
42
+ export declare const warningScale: {
43
+ readonly 50: "#fffff0";
44
+ readonly 100: "#fefcbf";
45
+ readonly 200: "#faf089";
46
+ readonly 300: "#f6e05e";
47
+ readonly 400: "#ecc94b";
48
+ readonly 500: "#d69e2e";
49
+ readonly 600: "#b7791f";
50
+ readonly 700: "#975a16";
51
+ readonly 800: "#744210";
52
+ readonly 900: "#5f370e";
53
+ };
54
+ export declare const dangerScale: {
55
+ readonly 50: "#fff5f5";
56
+ readonly 100: "#fed7d7";
57
+ readonly 200: "#fc8181";
58
+ readonly 300: "#f56565";
59
+ readonly 400: "#e53e3e";
60
+ readonly 500: "#c53030";
61
+ readonly 600: "#9b2c2c";
62
+ readonly 700: "#822727";
63
+ readonly 800: "#63171b";
64
+ readonly 900: "#3d0a0a";
65
+ };
66
+ export declare const defaultScale: {
67
+ readonly 50: "#f7fafc";
68
+ readonly 100: "#edf2f7";
69
+ readonly 200: "#e2e8f0";
70
+ readonly 300: "#cbd5e0";
71
+ readonly 400: "#a0aec0";
72
+ readonly 500: "#718096";
73
+ readonly 600: "#4a5568";
74
+ readonly 700: "#2d3748";
75
+ readonly 800: "#1a202c";
76
+ readonly 900: "#171923";
77
+ };
78
+ export type PaletteScale = typeof primaryScale;
79
+ export declare const palette: {
80
+ readonly primary: {
81
+ readonly 50: "#fff5f5";
82
+ readonly 100: "#fed7d7";
83
+ readonly 200: "#feb2b2";
84
+ readonly 300: "#fc8181";
85
+ readonly 400: "#f87171";
86
+ readonly 500: "#f56565";
87
+ readonly 600: "#e53e3e";
88
+ readonly 700: "#c53030";
89
+ readonly 800: "#9b2c2c";
90
+ readonly 900: "#742a2a";
91
+ };
92
+ readonly secondary: {
93
+ readonly 50: "#fffaf0";
94
+ readonly 100: "#feebc8";
95
+ readonly 200: "#fbd38d";
96
+ readonly 300: "#f6ad55";
97
+ readonly 400: "#ed9e40";
98
+ readonly 500: "#ed8936";
99
+ readonly 600: "#dd6b20";
100
+ readonly 700: "#c05621";
101
+ readonly 800: "#9c4221";
102
+ readonly 900: "#7b341e";
103
+ };
104
+ readonly success: {
105
+ readonly 50: "#f0fff4";
106
+ readonly 100: "#c6f6d5";
107
+ readonly 200: "#9ae6b4";
108
+ readonly 300: "#68d391";
109
+ readonly 400: "#48bb78";
110
+ readonly 500: "#38a169";
111
+ readonly 600: "#2f855a";
112
+ readonly 700: "#276749";
113
+ readonly 800: "#22543d";
114
+ readonly 900: "#1c4532";
115
+ };
116
+ readonly warning: {
117
+ readonly 50: "#fffff0";
118
+ readonly 100: "#fefcbf";
119
+ readonly 200: "#faf089";
120
+ readonly 300: "#f6e05e";
121
+ readonly 400: "#ecc94b";
122
+ readonly 500: "#d69e2e";
123
+ readonly 600: "#b7791f";
124
+ readonly 700: "#975a16";
125
+ readonly 800: "#744210";
126
+ readonly 900: "#5f370e";
127
+ };
128
+ readonly danger: {
129
+ readonly 50: "#fff5f5";
130
+ readonly 100: "#fed7d7";
131
+ readonly 200: "#fc8181";
132
+ readonly 300: "#f56565";
133
+ readonly 400: "#e53e3e";
134
+ readonly 500: "#c53030";
135
+ readonly 600: "#9b2c2c";
136
+ readonly 700: "#822727";
137
+ readonly 800: "#63171b";
138
+ readonly 900: "#3d0a0a";
139
+ };
140
+ readonly default: {
141
+ readonly 50: "#f7fafc";
142
+ readonly 100: "#edf2f7";
143
+ readonly 200: "#e2e8f0";
144
+ readonly 300: "#cbd5e0";
145
+ readonly 400: "#a0aec0";
146
+ readonly 500: "#718096";
147
+ readonly 600: "#4a5568";
148
+ readonly 700: "#2d3748";
149
+ readonly 800: "#1a202c";
150
+ readonly 900: "#171923";
151
+ };
152
+ };
153
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/lib/theme/palette.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;;;;;CAWjB,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;;;;;;CAWd,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC;AAE/C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOV,CAAC"}
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Color palette scales — raw values (50–900) per semantic family.
3
+ * Seeded from the original flat colors and expanded to full 9-stop scales.
4
+ * Components should NOT import these directly — use semantic tokens instead.
5
+ */
6
+ export const primaryScale = {
7
+ 50: '#fff5f5',
8
+ 100: '#fed7d7',
9
+ 200: '#feb2b2',
10
+ 300: '#fc8181',
11
+ 400: '#f87171',
12
+ 500: '#f56565', // original primary
13
+ 600: '#e53e3e',
14
+ 700: '#c53030',
15
+ 800: '#9b2c2c',
16
+ 900: '#742a2a',
17
+ };
18
+ export const secondaryScale = {
19
+ 50: '#fffaf0',
20
+ 100: '#feebc8',
21
+ 200: '#fbd38d',
22
+ 300: '#f6ad55',
23
+ 400: '#ed9e40',
24
+ 500: '#ed8936', // original secondary
25
+ 600: '#dd6b20',
26
+ 700: '#c05621',
27
+ 800: '#9c4221',
28
+ 900: '#7b341e',
29
+ };
30
+ export const successScale = {
31
+ 50: '#f0fff4',
32
+ 100: '#c6f6d5',
33
+ 200: '#9ae6b4',
34
+ 300: '#68d391',
35
+ 400: '#48bb78',
36
+ 500: '#38a169',
37
+ 600: '#2f855a',
38
+ 700: '#276749',
39
+ 800: '#22543d',
40
+ 900: '#1c4532',
41
+ };
42
+ export const warningScale = {
43
+ 50: '#fffff0',
44
+ 100: '#fefcbf',
45
+ 200: '#faf089',
46
+ 300: '#f6e05e',
47
+ 400: '#ecc94b', // original tertiary/warning
48
+ 500: '#d69e2e',
49
+ 600: '#b7791f',
50
+ 700: '#975a16',
51
+ 800: '#744210',
52
+ 900: '#5f370e',
53
+ };
54
+ export const dangerScale = {
55
+ 50: '#fff5f5',
56
+ 100: '#fed7d7',
57
+ 200: '#fc8181',
58
+ 300: '#f56565',
59
+ 400: '#e53e3e',
60
+ 500: '#c53030',
61
+ 600: '#9b2c2c',
62
+ 700: '#822727',
63
+ 800: '#63171b',
64
+ 900: '#3d0a0a',
65
+ };
66
+ export const defaultScale = {
67
+ 50: '#f7fafc',
68
+ 100: '#edf2f7', // original light
69
+ 200: '#e2e8f0',
70
+ 300: '#cbd5e0',
71
+ 400: '#a0aec0',
72
+ 500: '#718096',
73
+ 600: '#4a5568',
74
+ 700: '#2d3748', // original dark
75
+ 800: '#1a202c',
76
+ 900: '#171923',
77
+ };
78
+ export const palette = {
79
+ primary: primaryScale,
80
+ secondary: secondaryScale,
81
+ success: successScale,
82
+ warning: warningScale,
83
+ danger: dangerScale,
84
+ default: defaultScale,
85
+ };
@@ -8,3 +8,4 @@ export declare const radius: {
8
8
  '3xl': string;
9
9
  full: string;
10
10
  };
11
+ //# sourceMappingURL=radius.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radius.d.ts","sourceRoot":"","sources":["../../src/lib/theme/radius.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;CASlB,CAAA"}
@@ -58,3 +58,4 @@ export declare const sizes: {
58
58
  "8xl": string;
59
59
  prose: string;
60
60
  };
61
+ //# sourceMappingURL=sizes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sizes.d.ts","sourceRoot":"","sources":["../../src/lib/theme/sizes.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIjB,CAAA"}
@@ -33,3 +33,4 @@ export declare const spacing: {
33
33
  80: string;
34
34
  96: string;
35
35
  };
36
+ //# sourceMappingURL=spacing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../src/lib/theme/spacing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCnB,CAAA"}