@reactloom/theme 0.0.0-stage → 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.
Files changed (43) hide show
  1. package/README.md +13 -2
  2. package/dist/LICENSE +21 -0
  3. package/dist/contrast.d.ts +7 -0
  4. package/dist/contrast.d.ts.map +1 -0
  5. package/dist/contrast.js +33 -0
  6. package/dist/contrast.js.map +1 -0
  7. package/dist/create-theme.d.ts +37 -0
  8. package/dist/create-theme.d.ts.map +1 -0
  9. package/dist/create-theme.js +51 -0
  10. package/dist/create-theme.js.map +1 -0
  11. package/dist/css.d.ts +17 -0
  12. package/dist/css.d.ts.map +1 -0
  13. package/dist/css.js +125 -0
  14. package/dist/css.js.map +1 -0
  15. package/dist/index.d.ts +10 -0
  16. package/dist/index.d.ts.map +1 -0
  17. package/dist/index.js +10 -0
  18. package/dist/prefix.d.ts +12 -0
  19. package/dist/prefix.d.ts.map +1 -0
  20. package/dist/prefix.js +19 -0
  21. package/dist/prefix.js.map +1 -0
  22. package/dist/theme-provider.d.ts +39 -0
  23. package/dist/theme-provider.d.ts.map +1 -0
  24. package/dist/theme-provider.js +92 -0
  25. package/dist/theme-provider.js.map +1 -0
  26. package/dist/theme.css +460 -0
  27. package/dist/themes.d.ts +58 -0
  28. package/dist/themes.d.ts.map +1 -0
  29. package/dist/themes.js +328 -0
  30. package/dist/themes.js.map +1 -0
  31. package/dist/tokens/palette.d.ts +28 -0
  32. package/dist/tokens/palette.d.ts.map +1 -0
  33. package/dist/tokens/palette.js +97 -0
  34. package/dist/tokens/palette.js.map +1 -0
  35. package/dist/tokens/scales.d.ts +97 -0
  36. package/dist/tokens/scales.d.ts.map +1 -0
  37. package/dist/tokens/scales.js +99 -0
  38. package/dist/tokens/scales.js.map +1 -0
  39. package/dist/tokens/semantic.d.ts +21 -0
  40. package/dist/tokens/semantic.d.ts.map +1 -0
  41. package/dist/tokens/semantic.js +182 -0
  42. package/dist/tokens/semantic.js.map +1 -0
  43. package/package.json +58 -3
package/dist/themes.js ADDED
@@ -0,0 +1,328 @@
1
+ import { contrastRatio } from "./contrast.js";
2
+ import { defaultPalettes } from "./tokens/palette.js";
3
+ import { fontFamily, radius } from "./tokens/scales.js";
4
+ import { darkColors, highContrastColors, lightColors } from "./tokens/semantic.js";
5
+ // src/themes.ts
6
+ var lightShadows = {
7
+ xs: "0 1px 2px rgb(15 19 24 / 0.06)",
8
+ sm: "0 1px 3px rgb(15 19 24 / 0.08), 0 1px 2px rgb(15 19 24 / 0.04)",
9
+ md: "0 4px 12px rgb(15 19 24 / 0.10), 0 2px 4px rgb(15 19 24 / 0.04)",
10
+ lg: "0 16px 40px rgb(15 19 24 / 0.16), 0 4px 12px rgb(15 19 24 / 0.06)"
11
+ };
12
+ var darkShadows = {
13
+ xs: "0 1px 2px rgb(0 0 0 / 0.4)",
14
+ sm: "0 1px 3px rgb(0 0 0 / 0.5)",
15
+ md: "0 6px 16px rgb(0 0 0 / 0.5)",
16
+ lg: "0 20px 48px rgb(0 0 0 / 0.6)"
17
+ };
18
+ var noShadows = {
19
+ xs: "none",
20
+ sm: "none",
21
+ md: "none",
22
+ lg: "none"
23
+ };
24
+ function buildThemeTokens(base, palettes) {
25
+ switch (base) {
26
+ case "dark": {
27
+ const colors = darkColors(palettes);
28
+ return {
29
+ colors,
30
+ shadows: darkShadows,
31
+ radius,
32
+ fontFamily,
33
+ focusRing: {
34
+ color: colors["border-focus"],
35
+ width: "2px",
36
+ offset: "2px"
37
+ },
38
+ controlBorderWidth: "1px"
39
+ };
40
+ }
41
+ case "high-contrast": {
42
+ const colors = highContrastColors(palettes);
43
+ return {
44
+ colors,
45
+ shadows: noShadows,
46
+ radius,
47
+ fontFamily,
48
+ focusRing: {
49
+ color: colors["border-focus"],
50
+ width: "3px",
51
+ offset: "2px"
52
+ },
53
+ controlBorderWidth: "2px"
54
+ };
55
+ }
56
+ case "light": {
57
+ const colors = lightColors(palettes);
58
+ return {
59
+ colors,
60
+ shadows: lightShadows,
61
+ radius,
62
+ fontFamily,
63
+ focusRing: {
64
+ color: colors["border-focus"],
65
+ width: "2px",
66
+ offset: "2px"
67
+ },
68
+ controlBorderWidth: "1px"
69
+ };
70
+ }
71
+ }
72
+ }
73
+ var lightTheme = {
74
+ name: "light",
75
+ base: "light",
76
+ colorScheme: "light",
77
+ tokens: buildThemeTokens("light", defaultPalettes)
78
+ };
79
+ var darkTheme = {
80
+ name: "dark",
81
+ base: "dark",
82
+ colorScheme: "dark",
83
+ tokens: buildThemeTokens("dark", defaultPalettes)
84
+ };
85
+ var highContrastTheme = {
86
+ name: "high-contrast",
87
+ base: "high-contrast",
88
+ colorScheme: "light",
89
+ tokens: buildThemeTokens("high-contrast", defaultPalettes)
90
+ };
91
+ var builtInThemes = {
92
+ light: lightTheme,
93
+ dark: darkTheme,
94
+ "high-contrast": highContrastTheme
95
+ };
96
+ /** Colour pairs every theme must satisfy. `min` is the WCAG contrast ratio. */
97
+ var contrastRequirements = [
98
+ {
99
+ fg: "fg-default",
100
+ bg: "bg-canvas",
101
+ min: 4.5,
102
+ text: true
103
+ },
104
+ {
105
+ fg: "fg-default",
106
+ bg: "bg-surface",
107
+ min: 4.5,
108
+ text: true
109
+ },
110
+ {
111
+ fg: "fg-default",
112
+ bg: "bg-subtle",
113
+ min: 4.5,
114
+ text: true
115
+ },
116
+ {
117
+ fg: "fg-muted",
118
+ bg: "bg-canvas",
119
+ min: 4.5,
120
+ text: true
121
+ },
122
+ {
123
+ fg: "fg-muted",
124
+ bg: "bg-surface",
125
+ min: 4.5,
126
+ text: true
127
+ },
128
+ {
129
+ fg: "fg-muted",
130
+ bg: "bg-subtle",
131
+ min: 4.5,
132
+ text: true
133
+ },
134
+ {
135
+ fg: "fg-subtle",
136
+ bg: "bg-surface",
137
+ min: 4.5,
138
+ text: true
139
+ },
140
+ {
141
+ fg: "fg-link",
142
+ bg: "bg-surface",
143
+ min: 4.5,
144
+ text: true
145
+ },
146
+ {
147
+ fg: "fg-on-accent",
148
+ bg: "accent-solid",
149
+ min: 4.5,
150
+ text: true
151
+ },
152
+ {
153
+ fg: "fg-on-accent",
154
+ bg: "accent-solid-hover",
155
+ min: 4.5,
156
+ text: true
157
+ },
158
+ {
159
+ fg: "accent-fg",
160
+ bg: "bg-surface",
161
+ min: 4.5,
162
+ text: true
163
+ },
164
+ {
165
+ fg: "accent-fg",
166
+ bg: "accent-subtle",
167
+ min: 4.5,
168
+ text: true
169
+ },
170
+ {
171
+ fg: "danger-on-solid",
172
+ bg: "danger-solid",
173
+ min: 4.5,
174
+ text: true
175
+ },
176
+ {
177
+ fg: "danger-on-solid",
178
+ bg: "danger-solid-hover",
179
+ min: 4.5,
180
+ text: true
181
+ },
182
+ {
183
+ fg: "danger-fg",
184
+ bg: "bg-surface",
185
+ min: 4.5,
186
+ text: true
187
+ },
188
+ {
189
+ fg: "danger-fg",
190
+ bg: "danger-subtle",
191
+ min: 4.5,
192
+ text: true
193
+ },
194
+ {
195
+ fg: "success-on-solid",
196
+ bg: "success-solid",
197
+ min: 4.5,
198
+ text: true
199
+ },
200
+ {
201
+ fg: "success-fg",
202
+ bg: "bg-surface",
203
+ min: 4.5,
204
+ text: true
205
+ },
206
+ {
207
+ fg: "success-fg",
208
+ bg: "success-subtle",
209
+ min: 4.5,
210
+ text: true
211
+ },
212
+ {
213
+ fg: "warning-on-solid",
214
+ bg: "warning-solid",
215
+ min: 4.5,
216
+ text: true
217
+ },
218
+ {
219
+ fg: "warning-fg",
220
+ bg: "bg-surface",
221
+ min: 4.5,
222
+ text: true
223
+ },
224
+ {
225
+ fg: "warning-fg",
226
+ bg: "warning-subtle",
227
+ min: 4.5,
228
+ text: true
229
+ },
230
+ {
231
+ fg: "info-on-solid",
232
+ bg: "info-solid",
233
+ min: 4.5,
234
+ text: true
235
+ },
236
+ {
237
+ fg: "info-fg",
238
+ bg: "bg-surface",
239
+ min: 4.5,
240
+ text: true
241
+ },
242
+ {
243
+ fg: "info-fg",
244
+ bg: "info-subtle",
245
+ min: 4.5,
246
+ text: true
247
+ },
248
+ {
249
+ fg: "fg-inverse",
250
+ bg: "bg-inverse",
251
+ min: 4.5,
252
+ text: true
253
+ },
254
+ {
255
+ fg: "border-input",
256
+ bg: "bg-surface",
257
+ min: 3,
258
+ text: false
259
+ },
260
+ {
261
+ fg: "border-input",
262
+ bg: "bg-canvas",
263
+ min: 3,
264
+ text: false
265
+ },
266
+ {
267
+ fg: "border-input",
268
+ bg: "bg-muted",
269
+ min: 3,
270
+ text: false
271
+ },
272
+ {
273
+ fg: "border-focus",
274
+ bg: "bg-canvas",
275
+ min: 3,
276
+ text: false
277
+ },
278
+ {
279
+ fg: "border-focus",
280
+ bg: "bg-surface",
281
+ min: 3,
282
+ text: false
283
+ },
284
+ ...[
285
+ "chart-1",
286
+ "chart-2",
287
+ "chart-3",
288
+ "chart-4",
289
+ "chart-5",
290
+ "chart-6"
291
+ ].flatMap((fg) => [{
292
+ fg,
293
+ bg: "bg-surface",
294
+ min: 3,
295
+ text: false
296
+ }, {
297
+ fg,
298
+ bg: "bg-canvas",
299
+ min: 3,
300
+ text: false
301
+ }])
302
+ ];
303
+ /**
304
+ * Checks a theme's semantic colours against ReactLoom's contrast requirements.
305
+ * Use it in tests for custom themes: `expect(checkThemeContrast(myTheme)).toEqual([])`.
306
+ * Colours that are not plain hex (e.g. `rgb()` with alpha) are skipped.
307
+ */
308
+ function checkThemeContrast(theme) {
309
+ const issues = [];
310
+ const strict = theme.base === "high-contrast";
311
+ for (const { fg, bg, min, text } of contrastRequirements) {
312
+ const required = strict && text ? 7 : min;
313
+ const f = theme.tokens.colors[fg];
314
+ const b = theme.tokens.colors[bg];
315
+ if (!f.startsWith("#") || !b.startsWith("#")) continue;
316
+ const ratio = contrastRatio(f, b);
317
+ if (ratio < required) issues.push({
318
+ fg,
319
+ bg,
320
+ ratio: Math.round(ratio * 100) / 100,
321
+ required
322
+ });
323
+ }
324
+ return issues;
325
+ }
326
+ export { buildThemeTokens, builtInThemes, checkThemeContrast, contrastRequirements, darkTheme, highContrastTheme, lightTheme };
327
+
328
+ //# sourceMappingURL=themes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themes.js","names":[],"sources":["../src/themes.ts"],"sourcesContent":["import { contrastRatio } from './contrast.js';\nimport { defaultPalettes, type ThemePalettes } from './tokens/palette.js';\nimport { fontFamily, radius } from './tokens/scales.js';\nimport {\n darkColors,\n highContrastColors,\n lightColors,\n type SemanticColorName,\n type SemanticColors,\n} from './tokens/semantic.js';\n\nexport type ColorScheme = 'light' | 'dark';\nexport type BuiltInThemeName = 'light' | 'dark' | 'high-contrast';\nexport type RadiusName = keyof typeof radius;\nexport type ShadowName = 'xs' | 'sm' | 'md' | 'lg';\n\n/** Theme-dependent tokens. Everything else (space, type scale, motion…) is global. */\nexport interface ThemeTokens {\n colors: SemanticColors;\n shadows: Readonly<Record<ShadowName, string>>;\n radius: Readonly<Record<RadiusName, string>>;\n fontFamily: Readonly<{ sans: string; mono: string }>;\n focusRing: Readonly<{ color: string; width: string; offset: string }>;\n /** Border width of form controls and outlined components. */\n controlBorderWidth: string;\n}\n\nexport interface ThemeDefinition {\n /** Unique theme name. Used in `data-pl-theme` for custom themes' base resolution and debugging. */\n readonly name: string;\n /** The built-in theme this one is derived from. Its CSS selector supplies all defaults. */\n readonly base: BuiltInThemeName;\n readonly colorScheme: ColorScheme;\n readonly tokens: ThemeTokens;\n}\n\nconst lightShadows = {\n xs: '0 1px 2px rgb(15 19 24 / 0.06)',\n sm: '0 1px 3px rgb(15 19 24 / 0.08), 0 1px 2px rgb(15 19 24 / 0.04)',\n md: '0 4px 12px rgb(15 19 24 / 0.10), 0 2px 4px rgb(15 19 24 / 0.04)',\n lg: '0 16px 40px rgb(15 19 24 / 0.16), 0 4px 12px rgb(15 19 24 / 0.06)',\n} as const;\n\nconst darkShadows = {\n xs: '0 1px 2px rgb(0 0 0 / 0.4)',\n sm: '0 1px 3px rgb(0 0 0 / 0.5)',\n md: '0 6px 16px rgb(0 0 0 / 0.5)',\n lg: '0 20px 48px rgb(0 0 0 / 0.6)',\n} as const;\n\nconst noShadows = { xs: 'none', sm: 'none', md: 'none', lg: 'none' } as const;\n\nexport function buildThemeTokens(base: BuiltInThemeName, palettes: ThemePalettes): ThemeTokens {\n switch (base) {\n case 'dark': {\n const colors = darkColors(palettes);\n return {\n colors,\n shadows: darkShadows,\n radius,\n fontFamily,\n focusRing: { color: colors['border-focus'], width: '2px', offset: '2px' },\n controlBorderWidth: '1px',\n };\n }\n case 'high-contrast': {\n const colors = highContrastColors(palettes);\n return {\n colors,\n shadows: noShadows,\n radius,\n fontFamily,\n focusRing: { color: colors['border-focus'], width: '3px', offset: '2px' },\n controlBorderWidth: '2px',\n };\n }\n case 'light': {\n const colors = lightColors(palettes);\n return {\n colors,\n shadows: lightShadows,\n radius,\n fontFamily,\n focusRing: { color: colors['border-focus'], width: '2px', offset: '2px' },\n controlBorderWidth: '1px',\n };\n }\n }\n}\n\nexport const lightTheme: ThemeDefinition = {\n name: 'light',\n base: 'light',\n colorScheme: 'light',\n tokens: buildThemeTokens('light', defaultPalettes),\n};\n\nexport const darkTheme: ThemeDefinition = {\n name: 'dark',\n base: 'dark',\n colorScheme: 'dark',\n tokens: buildThemeTokens('dark', defaultPalettes),\n};\n\nexport const highContrastTheme: ThemeDefinition = {\n name: 'high-contrast',\n base: 'high-contrast',\n colorScheme: 'light',\n tokens: buildThemeTokens('high-contrast', defaultPalettes),\n};\n\nexport const builtInThemes: Readonly<Record<BuiltInThemeName, ThemeDefinition>> = {\n light: lightTheme,\n dark: darkTheme,\n 'high-contrast': highContrastTheme,\n};\n\n/** Colour pairs every theme must satisfy. `min` is the WCAG contrast ratio. */\nexport const contrastRequirements: ReadonlyArray<{\n fg: SemanticColorName;\n bg: SemanticColorName;\n min: number;\n /** For text pairs the high-contrast theme must reach 7:1. */\n text: boolean;\n}> = [\n { fg: 'fg-default', bg: 'bg-canvas', min: 4.5, text: true },\n { fg: 'fg-default', bg: 'bg-surface', min: 4.5, text: true },\n { fg: 'fg-default', bg: 'bg-subtle', min: 4.5, text: true },\n { fg: 'fg-muted', bg: 'bg-canvas', min: 4.5, text: true },\n { fg: 'fg-muted', bg: 'bg-surface', min: 4.5, text: true },\n { fg: 'fg-muted', bg: 'bg-subtle', min: 4.5, text: true },\n { fg: 'fg-subtle', bg: 'bg-surface', min: 4.5, text: true },\n { fg: 'fg-link', bg: 'bg-surface', min: 4.5, text: true },\n { fg: 'fg-on-accent', bg: 'accent-solid', min: 4.5, text: true },\n { fg: 'fg-on-accent', bg: 'accent-solid-hover', min: 4.5, text: true },\n { fg: 'accent-fg', bg: 'bg-surface', min: 4.5, text: true },\n { fg: 'accent-fg', bg: 'accent-subtle', min: 4.5, text: true },\n { fg: 'danger-on-solid', bg: 'danger-solid', min: 4.5, text: true },\n { fg: 'danger-on-solid', bg: 'danger-solid-hover', min: 4.5, text: true },\n { fg: 'danger-fg', bg: 'bg-surface', min: 4.5, text: true },\n { fg: 'danger-fg', bg: 'danger-subtle', min: 4.5, text: true },\n { fg: 'success-on-solid', bg: 'success-solid', min: 4.5, text: true },\n { fg: 'success-fg', bg: 'bg-surface', min: 4.5, text: true },\n { fg: 'success-fg', bg: 'success-subtle', min: 4.5, text: true },\n { fg: 'warning-on-solid', bg: 'warning-solid', min: 4.5, text: true },\n { fg: 'warning-fg', bg: 'bg-surface', min: 4.5, text: true },\n { fg: 'warning-fg', bg: 'warning-subtle', min: 4.5, text: true },\n { fg: 'info-on-solid', bg: 'info-solid', min: 4.5, text: true },\n { fg: 'info-fg', bg: 'bg-surface', min: 4.5, text: true },\n { fg: 'info-fg', bg: 'info-subtle', min: 4.5, text: true },\n { fg: 'fg-inverse', bg: 'bg-inverse', min: 4.5, text: true },\n { fg: 'border-input', bg: 'bg-surface', min: 3, text: false },\n { fg: 'border-input', bg: 'bg-canvas', min: 3, text: false },\n { fg: 'border-input', bg: 'bg-muted', min: 3, text: false },\n { fg: 'border-focus', bg: 'bg-canvas', min: 3, text: false },\n { fg: 'border-focus', bg: 'bg-surface', min: 3, text: false },\n // Chart marks (lines, bars, slices) are graphical objects: 3:1 (WCAG 1.4.11).\n ...(['chart-1', 'chart-2', 'chart-3', 'chart-4', 'chart-5', 'chart-6'] as const).flatMap((fg) => [\n { fg, bg: 'bg-surface' as const, min: 3, text: false },\n { fg, bg: 'bg-canvas' as const, min: 3, text: false },\n ]),\n];\n\nexport interface ContrastIssue {\n fg: SemanticColorName;\n bg: SemanticColorName;\n ratio: number;\n required: number;\n}\n\n/**\n * Checks a theme's semantic colours against ReactLoom's contrast requirements.\n * Use it in tests for custom themes: `expect(checkThemeContrast(myTheme)).toEqual([])`.\n * Colours that are not plain hex (e.g. `rgb()` with alpha) are skipped.\n */\nexport function checkThemeContrast(theme: ThemeDefinition): ContrastIssue[] {\n const issues: ContrastIssue[] = [];\n const strict = theme.base === 'high-contrast';\n for (const { fg, bg, min, text } of contrastRequirements) {\n const required = strict && text ? 7 : min;\n const f = theme.tokens.colors[fg];\n const b = theme.tokens.colors[bg];\n if (!f.startsWith('#') || !b.startsWith('#')) continue;\n const ratio = contrastRatio(f, b);\n if (ratio < required) issues.push({ fg, bg, ratio: Math.round(ratio * 100) / 100, required });\n }\n return issues;\n}\n"],"mappings":"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"}
@@ -0,0 +1,28 @@
1
+ /** Primitive colour scales. Hue/lightness curves are original to ReactLoom. */
2
+ export type ColorStep = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
3
+ export type ColorScale = Readonly<Record<ColorStep, string>>;
4
+ export declare const colorSteps: readonly ColorStep[];
5
+ export declare const neutral: ColorScale;
6
+ export declare const blue: ColorScale;
7
+ export declare const red: ColorScale;
8
+ export declare const green: ColorScale;
9
+ export declare const amber: ColorScale;
10
+ export declare const palettes: {
11
+ readonly neutral: Readonly<Record<ColorStep, string>>;
12
+ readonly blue: Readonly<Record<ColorStep, string>>;
13
+ readonly red: Readonly<Record<ColorStep, string>>;
14
+ readonly green: Readonly<Record<ColorStep, string>>;
15
+ readonly amber: Readonly<Record<ColorStep, string>>;
16
+ };
17
+ export type PaletteName = keyof typeof palettes;
18
+ /** The palettes a theme's semantic colours are derived from. */
19
+ export interface ThemePalettes {
20
+ neutral: ColorScale;
21
+ accent: ColorScale;
22
+ danger: ColorScale;
23
+ success: ColorScale;
24
+ warning: ColorScale;
25
+ info: ColorScale;
26
+ }
27
+ export declare const defaultPalettes: ThemePalettes;
28
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/tokens/palette.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,MAAM,MAAM,SAAS,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AACvF,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAE7D,eAAO,MAAM,UAAU,EAAE,SAAS,SAAS,EAA2D,CAAC;AAEvG,eAAO,MAAM,OAAO,EAAE,UAYrB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,UAYlB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,UAYjB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,UAYnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,UAYnB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;CAAgD,CAAC;AACtE,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,QAAQ,CAAC;AAEhD,gEAAgE;AAChE,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,UAAU,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC;IACpB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,eAAO,MAAM,eAAe,EAAE,aAO7B,CAAC"}
@@ -0,0 +1,97 @@
1
+ // src/tokens/palette.ts
2
+ var colorSteps = [
3
+ 50,
4
+ 100,
5
+ 200,
6
+ 300,
7
+ 400,
8
+ 500,
9
+ 600,
10
+ 700,
11
+ 800,
12
+ 900,
13
+ 950
14
+ ];
15
+ var neutral = {
16
+ 50: "#F7F8FA",
17
+ 100: "#EEF0F3",
18
+ 200: "#DDE1E7",
19
+ 300: "#C3C9D2",
20
+ 400: "#9AA3B0",
21
+ 500: "#6B7584",
22
+ 600: "#525B69",
23
+ 700: "#3F4753",
24
+ 800: "#2A313B",
25
+ 900: "#1A1F27",
26
+ 950: "#0F1318"
27
+ };
28
+ var blue = {
29
+ 50: "#EFF4FF",
30
+ 100: "#DCE6FE",
31
+ 200: "#BFD1FD",
32
+ 300: "#93B2FA",
33
+ 400: "#5F8AF5",
34
+ 500: "#3A67EB",
35
+ 600: "#2950D4",
36
+ 700: "#2240AB",
37
+ 800: "#1F3887",
38
+ 900: "#1D326B",
39
+ 950: "#141F42"
40
+ };
41
+ var red = {
42
+ 50: "#FEF2F2",
43
+ 100: "#FDE3E3",
44
+ 200: "#FBCBCB",
45
+ 300: "#F6A3A3",
46
+ 400: "#EE6D6D",
47
+ 500: "#E04343",
48
+ 600: "#C42B2B",
49
+ 700: "#A32222",
50
+ 800: "#861F1F",
51
+ 900: "#6F1F1F",
52
+ 950: "#3D0C0C"
53
+ };
54
+ var green = {
55
+ 50: "#EFFAF3",
56
+ 100: "#D8F3E1",
57
+ 200: "#B3E5C5",
58
+ 300: "#80D1A2",
59
+ 400: "#4BB57B",
60
+ 500: "#2A9A5E",
61
+ 600: "#1D7D4A",
62
+ 700: "#18643D",
63
+ 800: "#165033",
64
+ 900: "#13422B",
65
+ 950: "#082417"
66
+ };
67
+ var amber = {
68
+ 50: "#FFF8EB",
69
+ 100: "#FEEDC7",
70
+ 200: "#FDD98A",
71
+ 300: "#FBC04D",
72
+ 400: "#F5A524",
73
+ 500: "#E0870E",
74
+ 600: "#BF6809",
75
+ 700: "#984C0C",
76
+ 800: "#7C3D11",
77
+ 900: "#663311",
78
+ 950: "#3A1A05"
79
+ };
80
+ var palettes = {
81
+ neutral,
82
+ blue,
83
+ red,
84
+ green,
85
+ amber
86
+ };
87
+ var defaultPalettes = {
88
+ neutral,
89
+ accent: blue,
90
+ danger: red,
91
+ success: green,
92
+ warning: amber,
93
+ info: blue
94
+ };
95
+ export { amber, blue, colorSteps, defaultPalettes, green, neutral, palettes, red };
96
+
97
+ //# sourceMappingURL=palette.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.js","names":[],"sources":["../../src/tokens/palette.ts"],"sourcesContent":["/** Primitive colour scales. Hue/lightness curves are original to ReactLoom. */\nexport type ColorStep = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;\nexport type ColorScale = Readonly<Record<ColorStep, string>>;\n\nexport const colorSteps: readonly ColorStep[] = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];\n\nexport const neutral: ColorScale = {\n 50: '#F7F8FA',\n 100: '#EEF0F3',\n 200: '#DDE1E7',\n 300: '#C3C9D2',\n 400: '#9AA3B0',\n 500: '#6B7584',\n 600: '#525B69',\n 700: '#3F4753',\n 800: '#2A313B',\n 900: '#1A1F27',\n 950: '#0F1318',\n};\n\nexport const blue: ColorScale = {\n 50: '#EFF4FF',\n 100: '#DCE6FE',\n 200: '#BFD1FD',\n 300: '#93B2FA',\n 400: '#5F8AF5',\n 500: '#3A67EB',\n 600: '#2950D4',\n 700: '#2240AB',\n 800: '#1F3887',\n 900: '#1D326B',\n 950: '#141F42',\n};\n\nexport const red: ColorScale = {\n 50: '#FEF2F2',\n 100: '#FDE3E3',\n 200: '#FBCBCB',\n 300: '#F6A3A3',\n 400: '#EE6D6D',\n 500: '#E04343',\n 600: '#C42B2B',\n 700: '#A32222',\n 800: '#861F1F',\n 900: '#6F1F1F',\n 950: '#3D0C0C',\n};\n\nexport const green: ColorScale = {\n 50: '#EFFAF3',\n 100: '#D8F3E1',\n 200: '#B3E5C5',\n 300: '#80D1A2',\n 400: '#4BB57B',\n 500: '#2A9A5E',\n 600: '#1D7D4A',\n 700: '#18643D',\n 800: '#165033',\n 900: '#13422B',\n 950: '#082417',\n};\n\nexport const amber: ColorScale = {\n 50: '#FFF8EB',\n 100: '#FEEDC7',\n 200: '#FDD98A',\n 300: '#FBC04D',\n 400: '#F5A524',\n 500: '#E0870E',\n 600: '#BF6809',\n 700: '#984C0C',\n 800: '#7C3D11',\n 900: '#663311',\n 950: '#3A1A05',\n};\n\nexport const palettes = { neutral, blue, red, green, amber } as const;\nexport type PaletteName = keyof typeof palettes;\n\n/** The palettes a theme's semantic colours are derived from. */\nexport interface ThemePalettes {\n neutral: ColorScale;\n accent: ColorScale;\n danger: ColorScale;\n success: ColorScale;\n warning: ColorScale;\n info: ColorScale;\n}\n\nexport const defaultPalettes: ThemePalettes = {\n neutral,\n accent: blue,\n danger: red,\n success: green,\n warning: amber,\n info: blue,\n};\n"],"mappings":";AAIA,IAAa,aAAmC;CAAC;CAAI;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;AAAG;AAErG,IAAa,UAAsB;CACjC,IAAI;CACJ,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;AACP;AAEA,IAAa,OAAmB;CAC9B,IAAI;CACJ,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;AACP;AAEA,IAAa,MAAkB;CAC7B,IAAI;CACJ,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;AACP;AAEA,IAAa,QAAoB;CAC/B,IAAI;CACJ,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;AACP;AAEA,IAAa,QAAoB;CAC/B,IAAI;CACJ,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;AACP;AAEA,IAAa,WAAW;CAAE;CAAS;CAAM;CAAK;CAAO;AAAM;AAa3D,IAAa,kBAAiC;CAC5C;CACA,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,SAAS;CACT,MAAM;AACR"}
@@ -0,0 +1,97 @@
1
+ /** Non-colour primitive tokens. Values are theme-independent unless a theme overrides them. */
2
+ export declare const space: {
3
+ readonly '0': "0";
4
+ readonly '0-5': "0.125rem";
5
+ readonly '1': "0.25rem";
6
+ readonly '1-5': "0.375rem";
7
+ readonly '2': "0.5rem";
8
+ readonly '3': "0.75rem";
9
+ readonly '4': "1rem";
10
+ readonly '5': "1.25rem";
11
+ readonly '6': "1.5rem";
12
+ readonly '8': "2rem";
13
+ readonly '10': "2.5rem";
14
+ readonly '12': "3rem";
15
+ readonly '16': "4rem";
16
+ };
17
+ export declare const radius: {
18
+ readonly none: "0";
19
+ readonly xs: "2px";
20
+ readonly sm: "4px";
21
+ readonly md: "6px";
22
+ readonly lg: "8px";
23
+ readonly xl: "12px";
24
+ readonly full: "9999px";
25
+ };
26
+ export declare const fontFamily: {
27
+ readonly sans: "ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif";
28
+ readonly mono: "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace";
29
+ };
30
+ export declare const fontSize: {
31
+ readonly xs: "0.75rem";
32
+ readonly sm: "0.8125rem";
33
+ readonly md: "0.875rem";
34
+ readonly lg: "1rem";
35
+ readonly xl: "1.125rem";
36
+ readonly '2xl': "1.25rem";
37
+ readonly '3xl': "1.5rem";
38
+ readonly '4xl': "1.875rem";
39
+ readonly '5xl': "2.25rem";
40
+ };
41
+ export declare const lineHeight: {
42
+ readonly tight: "1.25";
43
+ readonly snug: "1.375";
44
+ readonly normal: "1.5";
45
+ };
46
+ export declare const fontWeight: {
47
+ readonly regular: "400";
48
+ readonly medium: "500";
49
+ readonly semibold: "600";
50
+ readonly bold: "700";
51
+ };
52
+ export declare const borderWidth: {
53
+ readonly hairline: "1px";
54
+ readonly thick: "2px";
55
+ };
56
+ /** Control heights; density attributes shift these in the generated CSS. */
57
+ export declare const controlHeight: {
58
+ readonly sm: "1.75rem";
59
+ readonly md: "2rem";
60
+ readonly lg: "2.5rem";
61
+ };
62
+ export declare const duration: {
63
+ readonly instant: "0ms";
64
+ readonly fast: "100ms";
65
+ readonly normal: "160ms";
66
+ readonly slow: "240ms";
67
+ };
68
+ export declare const easing: {
69
+ readonly standard: "cubic-bezier(0.2, 0, 0, 1)";
70
+ readonly enter: "cubic-bezier(0, 0, 0, 1)";
71
+ readonly exit: "cubic-bezier(0.3, 0, 1, 1)";
72
+ };
73
+ export declare const zIndex: {
74
+ readonly base: "0";
75
+ readonly dropdown: "1000";
76
+ readonly sticky: "1100";
77
+ readonly banner: "1200";
78
+ readonly overlay: "1300";
79
+ readonly modal: "1400";
80
+ readonly popover: "1500";
81
+ readonly toast: "1600";
82
+ readonly tooltip: "1700";
83
+ };
84
+ export declare const opacity: {
85
+ readonly disabled: "0.55";
86
+ readonly overlay: "0.48";
87
+ };
88
+ /** Breakpoints in px. Exported as numbers because CSS variables cannot be used in media queries. */
89
+ export declare const breakpoints: {
90
+ readonly sm: 640;
91
+ readonly md: 768;
92
+ readonly lg: 1024;
93
+ readonly xl: 1280;
94
+ readonly '2xl': 1536;
95
+ };
96
+ export type Breakpoint = keyof typeof breakpoints;
97
+ //# sourceMappingURL=scales.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scales.d.ts","sourceRoot":"","sources":["../../src/tokens/scales.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAE/F,eAAO,MAAM,KAAK;;;;;;;;;;;;;;CAcR,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;;;;CAQT,CAAC;AAEX,eAAO,MAAM,UAAU;;;CAGb,CAAC;AAEX,eAAO,MAAM,QAAQ;;;;;;;;;;CAUX,CAAC;AAEX,eAAO,MAAM,UAAU;;;;CAIb,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;CAKb,CAAC;AAEX,eAAO,MAAM,WAAW;;;CAGd,CAAC;AAEX,4EAA4E;AAC5E,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,eAAO,MAAM,QAAQ;;;;;CAKX,CAAC;AAEX,eAAO,MAAM,MAAM;;;;CAIT,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;;;;;;CAUT,CAAC;AAEX,eAAO,MAAM,OAAO;;;CAGV,CAAC;AAEX,oGAAoG;AACpG,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,WAAW,CAAC"}
@@ -0,0 +1,99 @@
1
+ // src/tokens/scales.ts
2
+ /** Non-colour primitive tokens. Values are theme-independent unless a theme overrides them. */
3
+ var space = {
4
+ "0": "0",
5
+ "0-5": "0.125rem",
6
+ "1": "0.25rem",
7
+ "1-5": "0.375rem",
8
+ "2": "0.5rem",
9
+ "3": "0.75rem",
10
+ "4": "1rem",
11
+ "5": "1.25rem",
12
+ "6": "1.5rem",
13
+ "8": "2rem",
14
+ "10": "2.5rem",
15
+ "12": "3rem",
16
+ "16": "4rem"
17
+ };
18
+ var radius = {
19
+ none: "0",
20
+ xs: "2px",
21
+ sm: "4px",
22
+ md: "6px",
23
+ lg: "8px",
24
+ xl: "12px",
25
+ full: "9999px"
26
+ };
27
+ var fontFamily = {
28
+ sans: "ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif",
29
+ mono: "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace"
30
+ };
31
+ var fontSize = {
32
+ xs: "0.75rem",
33
+ sm: "0.8125rem",
34
+ md: "0.875rem",
35
+ lg: "1rem",
36
+ xl: "1.125rem",
37
+ "2xl": "1.25rem",
38
+ "3xl": "1.5rem",
39
+ "4xl": "1.875rem",
40
+ "5xl": "2.25rem"
41
+ };
42
+ var lineHeight = {
43
+ tight: "1.25",
44
+ snug: "1.375",
45
+ normal: "1.5"
46
+ };
47
+ var fontWeight = {
48
+ regular: "400",
49
+ medium: "500",
50
+ semibold: "600",
51
+ bold: "700"
52
+ };
53
+ var borderWidth = {
54
+ hairline: "1px",
55
+ thick: "2px"
56
+ };
57
+ /** Control heights; density attributes shift these in the generated CSS. */
58
+ var controlHeight = {
59
+ sm: "1.75rem",
60
+ md: "2rem",
61
+ lg: "2.5rem"
62
+ };
63
+ var duration = {
64
+ instant: "0ms",
65
+ fast: "100ms",
66
+ normal: "160ms",
67
+ slow: "240ms"
68
+ };
69
+ var easing = {
70
+ standard: "cubic-bezier(0.2, 0, 0, 1)",
71
+ enter: "cubic-bezier(0, 0, 0, 1)",
72
+ exit: "cubic-bezier(0.3, 0, 1, 1)"
73
+ };
74
+ var zIndex = {
75
+ base: "0",
76
+ dropdown: "1000",
77
+ sticky: "1100",
78
+ banner: "1200",
79
+ overlay: "1300",
80
+ modal: "1400",
81
+ popover: "1500",
82
+ toast: "1600",
83
+ tooltip: "1700"
84
+ };
85
+ var opacity = {
86
+ disabled: "0.55",
87
+ overlay: "0.48"
88
+ };
89
+ /** Breakpoints in px. Exported as numbers because CSS variables cannot be used in media queries. */
90
+ var breakpoints = {
91
+ sm: 640,
92
+ md: 768,
93
+ lg: 1024,
94
+ xl: 1280,
95
+ "2xl": 1536
96
+ };
97
+ export { borderWidth, breakpoints, controlHeight, duration, easing, fontFamily, fontSize, fontWeight, lineHeight, opacity, radius, space, zIndex };
98
+
99
+ //# sourceMappingURL=scales.js.map