@frontile/theme 0.18.0-alpha.5 → 0.18.0-alpha.8

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 (70) hide show
  1. package/README.md +20 -22
  2. package/declarations/colors/config.d.ts +8 -32
  3. package/declarations/colors/palette-absolute.d.ts +2 -2
  4. package/declarations/colors/palette.d.ts +1 -1
  5. package/declarations/colors/types.d.ts +102 -151
  6. package/declarations/components/button.d.ts +13 -0
  7. package/declarations/components/dropdown.d.ts +2 -2
  8. package/declarations/components/forms/forms.d.ts +9 -4
  9. package/declarations/components/listbox.d.ts +5 -0
  10. package/declarations/components/popover.d.ts +2 -2
  11. package/declarations/components/progress-bar.d.ts +15 -0
  12. package/declarations/components/spinner.d.ts +5 -0
  13. package/declarations/plugin/default-config.d.ts +8 -32
  14. package/dist/colors.js +1 -1
  15. package/dist/config-CDp8PRHs.js +370 -0
  16. package/dist/config-CDp8PRHs.js.map +1 -0
  17. package/dist/{forms-legacy-d2uPt2pC.js → forms-legacy-DMdYgoNV.js} +222 -148
  18. package/dist/forms-legacy-DMdYgoNV.js.map +1 -0
  19. package/dist/index.js +2 -2
  20. package/dist/plugin.js +4 -4
  21. package/dist/plugin.js.map +1 -1
  22. package/dist/styles/font-faces.css +52 -8
  23. package/dist/styles/typography.css +213 -117
  24. package/package.json +7 -4
  25. package/public/fonts/domine-variable.woff2 +0 -0
  26. package/public/fonts/open-sans-italic-variable.woff2 +0 -0
  27. package/public/fonts/open-sans-variable.woff2 +0 -0
  28. package/public/fonts/source-code-pro-italic-variable.woff2 +0 -0
  29. package/public/fonts/source-code-pro-variable.woff2 +0 -0
  30. package/src/styles/font-faces.css +52 -8
  31. package/src/styles/typography.css +213 -117
  32. package/dist/config-4CswsBlg.js +0 -342
  33. package/dist/config-4CswsBlg.js.map +0 -1
  34. package/dist/config-B3XkEtHW.js +0 -377
  35. package/dist/config-B3XkEtHW.js.map +0 -1
  36. package/dist/config-BpWBpuzR.js +0 -335
  37. package/dist/config-BpWBpuzR.js.map +0 -1
  38. package/dist/config-Cle59Y4k.js +0 -523
  39. package/dist/config-Cle59Y4k.js.map +0 -1
  40. package/dist/config-D0EoeVzn.js +0 -388
  41. package/dist/config-D0EoeVzn.js.map +0 -1
  42. package/dist/config-DBAavoE2.js +0 -336
  43. package/dist/config-DBAavoE2.js.map +0 -1
  44. package/dist/config-Oysuq2Z9.js +0 -341
  45. package/dist/config-Oysuq2Z9.js.map +0 -1
  46. package/dist/config-PYki2g7N.js +0 -335
  47. package/dist/config-PYki2g7N.js.map +0 -1
  48. package/dist/forms-legacy-15iy0KmK.js +0 -1851
  49. package/dist/forms-legacy-15iy0KmK.js.map +0 -1
  50. package/dist/forms-legacy-B-L2HELt.js +0 -1881
  51. package/dist/forms-legacy-B-L2HELt.js.map +0 -1
  52. package/dist/forms-legacy-BMIAioRi.js +0 -1807
  53. package/dist/forms-legacy-BMIAioRi.js.map +0 -1
  54. package/dist/forms-legacy-B_EygtyK.js +0 -1763
  55. package/dist/forms-legacy-B_EygtyK.js.map +0 -1
  56. package/dist/forms-legacy-Bg_UoLDR.js +0 -1763
  57. package/dist/forms-legacy-Bg_UoLDR.js.map +0 -1
  58. package/dist/forms-legacy-CVLZ-9BG.js +0 -1804
  59. package/dist/forms-legacy-CVLZ-9BG.js.map +0 -1
  60. package/dist/forms-legacy-CuFc3hcn.js +0 -1807
  61. package/dist/forms-legacy-CuFc3hcn.js.map +0 -1
  62. package/dist/forms-legacy-DiKImAli.js +0 -1809
  63. package/dist/forms-legacy-DiKImAli.js.map +0 -1
  64. package/dist/forms-legacy-d2uPt2pC.js.map +0 -1
  65. package/dist/forms-legacy-edWQVbZP.js +0 -1809
  66. package/dist/forms-legacy-edWQVbZP.js.map +0 -1
  67. package/dist/semantic-DUv6Lpqq.js +0 -218
  68. package/dist/semantic-DUv6Lpqq.js.map +0 -1
  69. package/public/fonts/stix-two-text-italic-variable.woff2 +0 -0
  70. package/public/fonts/stix-two-text-variable.woff2 +0 -0
@@ -108,7 +108,7 @@ declare const formDescription: import("tailwind-variants").TVReturnType<{
108
108
  md: string;
109
109
  lg: string;
110
110
  };
111
- }, undefined, "text-neutral-medium text-xs pb-1 last:pb-0", {
111
+ }, undefined, "text-neutral font-body text-body-micro pb-1 last:pb-0", {
112
112
  responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
113
113
  size?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
114
114
  } | undefined;
@@ -163,7 +163,7 @@ declare const formDescription: import("tailwind-variants").TVReturnType<{
163
163
  md: string;
164
164
  lg: string;
165
165
  };
166
- }, undefined, "text-neutral-medium text-xs pb-1 last:pb-0", import("tailwind-variants/dist/config.js").TVConfig<{
166
+ }, undefined, "text-neutral font-body text-body-micro pb-1 last:pb-0", import("tailwind-variants/dist/config.js").TVConfig<{
167
167
  size: {
168
168
  sm: string;
169
169
  md: string;
@@ -179,6 +179,7 @@ declare const formDescription: import("tailwind-variants").TVReturnType<{
179
179
  declare const formFeedback: import("tailwind-variants").TVReturnType<{
180
180
  intent: {
181
181
  primary: string;
182
+ accent: string;
182
183
  success: string;
183
184
  danger: string;
184
185
  warning: string;
@@ -188,7 +189,7 @@ declare const formFeedback: import("tailwind-variants").TVReturnType<{
188
189
  md: string;
189
190
  lg: string;
190
191
  };
191
- }, undefined, "text-xs pt-1", {
192
+ }, undefined, "font-body text-body-micro pt-1", {
192
193
  responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
193
194
  size?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
194
195
  intent?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
@@ -235,6 +236,7 @@ declare const formFeedback: import("tailwind-variants").TVReturnType<{
235
236
  }, {
236
237
  intent: {
237
238
  primary: string;
239
+ accent: string;
238
240
  success: string;
239
241
  danger: string;
240
242
  warning: string;
@@ -247,6 +249,7 @@ declare const formFeedback: import("tailwind-variants").TVReturnType<{
247
249
  }, undefined, import("tailwind-variants").TVReturnType<{
248
250
  intent: {
249
251
  primary: string;
252
+ accent: string;
250
253
  success: string;
251
254
  danger: string;
252
255
  warning: string;
@@ -256,9 +259,10 @@ declare const formFeedback: import("tailwind-variants").TVReturnType<{
256
259
  md: string;
257
260
  lg: string;
258
261
  };
259
- }, undefined, "text-xs pt-1", import("tailwind-variants/dist/config.js").TVConfig<{
262
+ }, undefined, "font-body text-body-micro pt-1", import("tailwind-variants/dist/config.js").TVConfig<{
260
263
  intent: {
261
264
  primary: string;
265
+ accent: string;
262
266
  success: string;
263
267
  danger: string;
264
268
  warning: string;
@@ -271,6 +275,7 @@ declare const formFeedback: import("tailwind-variants").TVReturnType<{
271
275
  }, {
272
276
  intent: {
273
277
  primary: string;
278
+ accent: string;
274
279
  success: string;
275
280
  danger: string;
276
281
  warning: string;
@@ -56,6 +56,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
56
56
  default: {};
57
57
  primary: {};
58
58
  secondary: {};
59
+ accent: {};
59
60
  success: {};
60
61
  warning: {};
61
62
  danger: {};
@@ -151,6 +152,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
151
152
  default: {};
152
153
  primary: {};
153
154
  secondary: {};
155
+ accent: {};
154
156
  success: {};
155
157
  warning: {};
156
158
  danger: {};
@@ -198,6 +200,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
198
200
  default: {};
199
201
  primary: {};
200
202
  secondary: {};
203
+ accent: {};
201
204
  success: {};
202
205
  warning: {};
203
206
  danger: {};
@@ -245,6 +248,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
245
248
  default: {};
246
249
  primary: {};
247
250
  secondary: {};
251
+ accent: {};
248
252
  success: {};
249
253
  warning: {};
250
254
  danger: {};
@@ -285,6 +289,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
285
289
  default: {};
286
290
  primary: {};
287
291
  secondary: {};
292
+ accent: {};
288
293
  success: {};
289
294
  warning: {};
290
295
  danger: {};
@@ -6,7 +6,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
6
6
  xl: string;
7
7
  trigger: string;
8
8
  };
9
- }, undefined, "bg-surface-solid-1 rounded-sm border border-neutral-subtle", {
9
+ }, undefined, "bg-surface-input rounded-sm border border-neutral-subtle", {
10
10
  responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
11
11
  size?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
12
12
  } | undefined;
@@ -65,7 +65,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
65
65
  xl: string;
66
66
  trigger: string;
67
67
  };
68
- }, undefined, "bg-surface-solid-1 rounded-sm border border-neutral-subtle", import("tailwind-variants/dist/config.js").TVConfig<{
68
+ }, undefined, "bg-surface-input rounded-sm border border-neutral-subtle", import("tailwind-variants/dist/config.js").TVConfig<{
69
69
  size: {
70
70
  sm: string;
71
71
  md: string;
@@ -11,6 +11,9 @@ declare const progressBar: import("tailwind-variants").TVReturnType<{
11
11
  primary: {
12
12
  progress: string;
13
13
  };
14
+ accent: {
15
+ progress: string;
16
+ };
14
17
  success: {
15
18
  progress: string;
16
19
  };
@@ -115,6 +118,9 @@ declare const progressBar: import("tailwind-variants").TVReturnType<{
115
118
  primary: {
116
119
  progress: string;
117
120
  };
121
+ accent: {
122
+ progress: string;
123
+ };
118
124
  success: {
119
125
  progress: string;
120
126
  };
@@ -173,6 +179,9 @@ declare const progressBar: import("tailwind-variants").TVReturnType<{
173
179
  primary: {
174
180
  progress: string;
175
181
  };
182
+ accent: {
183
+ progress: string;
184
+ };
176
185
  success: {
177
186
  progress: string;
178
187
  };
@@ -231,6 +240,9 @@ declare const progressBar: import("tailwind-variants").TVReturnType<{
231
240
  primary: {
232
241
  progress: string;
233
242
  };
243
+ accent: {
244
+ progress: string;
245
+ };
234
246
  success: {
235
247
  progress: string;
236
248
  };
@@ -284,6 +296,9 @@ declare const progressBar: import("tailwind-variants").TVReturnType<{
284
296
  primary: {
285
297
  progress: string;
286
298
  };
299
+ accent: {
300
+ progress: string;
301
+ };
287
302
  success: {
288
303
  progress: string;
289
304
  };
@@ -10,6 +10,7 @@ declare const spinner: import("tailwind-variants").TVReturnType<{
10
10
  intent: {
11
11
  default: string;
12
12
  primary: string;
13
+ accent: string;
13
14
  success: string;
14
15
  warning: string;
15
16
  danger: string;
@@ -69,6 +70,7 @@ declare const spinner: import("tailwind-variants").TVReturnType<{
69
70
  intent: {
70
71
  default: string;
71
72
  primary: string;
73
+ accent: string;
72
74
  success: string;
73
75
  warning: string;
74
76
  danger: string;
@@ -84,6 +86,7 @@ declare const spinner: import("tailwind-variants").TVReturnType<{
84
86
  intent: {
85
87
  default: string;
86
88
  primary: string;
89
+ accent: string;
87
90
  success: string;
88
91
  warning: string;
89
92
  danger: string;
@@ -99,6 +102,7 @@ declare const spinner: import("tailwind-variants").TVReturnType<{
99
102
  intent: {
100
103
  default: string;
101
104
  primary: string;
105
+ accent: string;
102
106
  success: string;
103
107
  warning: string;
104
108
  danger: string;
@@ -114,6 +118,7 @@ declare const spinner: import("tailwind-variants").TVReturnType<{
114
118
  intent: {
115
119
  default: string;
116
120
  primary: string;
121
+ accent: string;
117
122
  success: string;
118
123
  warning: string;
119
124
  danger: string;
@@ -5,32 +5,20 @@ declare const defaultConfig: {
5
5
  light: {
6
6
  colors: {
7
7
  neutral: import("../colors").SemanticColorCategory;
8
- brand: import("../colors").SemanticColorCategory;
8
+ primary: import("../colors").SemanticColorCategory;
9
9
  accent: import("../colors").SemanticColorCategory;
10
10
  success: import("../colors").SemanticColorCategory;
11
11
  warning: import("../colors").SemanticColorCategory;
12
12
  danger: import("../colors").SemanticColorCategory;
13
13
  surface: import("../colors").SurfaceColors;
14
14
  'on-neutral'?: import("../colors").OnColorCategory;
15
- 'on-brand'?: import("../colors").OnColorCategory;
15
+ 'on-primary'?: import("../colors").OnColorCategory;
16
16
  'on-accent'?: import("../colors").OnColorCategory;
17
17
  'on-success'?: import("../colors").OnColorCategory;
18
18
  'on-warning'?: import("../colors").OnColorCategory;
19
19
  'on-danger'?: import("../colors").OnColorCategory;
20
- 'on-surface-solid'?: {
21
- 0?: string;
22
- 1?: string;
23
- 2?: string;
24
- 3?: string;
25
- 4?: string;
26
- 5?: string;
27
- 6?: string;
28
- 7?: string;
29
- 8?: string;
30
- 9?: string;
31
- 10?: string;
32
- 11?: string;
33
- };
20
+ 'on-surface-modal'?: string;
21
+ background: import("../colors").ColorScale;
34
22
  divider: import("../colors").ColorScale;
35
23
  focus: import("../colors").ColorScale;
36
24
  };
@@ -39,32 +27,20 @@ declare const defaultConfig: {
39
27
  dark: {
40
28
  colors: {
41
29
  neutral: import("../colors").SemanticColorCategory;
42
- brand: import("../colors").SemanticColorCategory;
30
+ primary: import("../colors").SemanticColorCategory;
43
31
  accent: import("../colors").SemanticColorCategory;
44
32
  success: import("../colors").SemanticColorCategory;
45
33
  warning: import("../colors").SemanticColorCategory;
46
34
  danger: import("../colors").SemanticColorCategory;
47
35
  surface: import("../colors").SurfaceColors;
48
36
  'on-neutral'?: import("../colors").OnColorCategory;
49
- 'on-brand'?: import("../colors").OnColorCategory;
37
+ 'on-primary'?: import("../colors").OnColorCategory;
50
38
  'on-accent'?: import("../colors").OnColorCategory;
51
39
  'on-success'?: import("../colors").OnColorCategory;
52
40
  'on-warning'?: import("../colors").OnColorCategory;
53
41
  'on-danger'?: import("../colors").OnColorCategory;
54
- 'on-surface-solid'?: {
55
- 0?: string;
56
- 1?: string;
57
- 2?: string;
58
- 3?: string;
59
- 4?: string;
60
- 5?: string;
61
- 6?: string;
62
- 7?: string;
63
- 8?: string;
64
- 9?: string;
65
- 10?: string;
66
- 11?: string;
67
- };
42
+ 'on-surface-modal'?: string;
43
+ background: import("../colors").ColorScale;
68
44
  divider: import("../colors").ColorScale;
69
45
  focus: import("../colors").ColorScale;
70
46
  };
package/dist/colors.js CHANGED
@@ -1,2 +1,2 @@
1
- export { b as blue, g as gray, a as green, o as orange, p as pink, r as red, s as semanticColors, t as teal, v as violet, y as yellow } from './config-Cle59Y4k.js';
1
+ export { b as blue, g as gray, a as green, o as orange, p as pink, r as red, s as semanticColors, t as teal, v as violet, y as yellow } from './config-CDp8PRHs.js';
2
2
  //# sourceMappingURL=colors.js.map
@@ -0,0 +1,370 @@
1
+ /**
2
+ * Frontile Color Palette
3
+ *
4
+ * Theme-independent color scales.
5
+ */
6
+
7
+ const gray = {
8
+ '50': '#f8f8f8',
9
+ '100': '#ececec',
10
+ '200': '#dddcdc',
11
+ '300': '#c9c8c7',
12
+ '400': '#b1afad',
13
+ '500': '#94918f',
14
+ '600': '#74706d',
15
+ '700': '#554f4b',
16
+ '800': '#39332e',
17
+ '900': '#241c17',
18
+ '950': '#140b06'
19
+ };
20
+ const blue = {
21
+ '50': '#f9fcff',
22
+ '100': '#f1f7ff',
23
+ '200': '#d2e6ff',
24
+ '300': '#95c4ff',
25
+ '400': '#4a8ee7',
26
+ '500': '#2259a6',
27
+ '600': '#053273',
28
+ '700': '#001b4e',
29
+ '800': '#000e38',
30
+ '900': '#00072d',
31
+ '950': '#020825'
32
+ };
33
+ const green = {
34
+ '50': '#f7ffeb',
35
+ '100': '#e6ffbc',
36
+ '200': '#d1ff8c',
37
+ '300': '#bbff60',
38
+ '400': '#a3fa3a',
39
+ '500': '#66e221',
40
+ '600': '#2fc511',
41
+ '700': '#07a20a',
42
+ '800': '#027b1b',
43
+ '900': '#005321',
44
+ '950': '#002e1b'
45
+ };
46
+ const orange = {
47
+ '50': '#fff3e9',
48
+ '100': '#ffd6b9',
49
+ '200': '#ffb686',
50
+ '300': '#ff914d',
51
+ '400': '#ef7125',
52
+ '500': '#d95503',
53
+ '600': '#bc3e00',
54
+ '700': '#9e2800',
55
+ '800': '#7f1301',
56
+ '900': '#600102',
57
+ '950': '#3e0004'
58
+ };
59
+ const pink = {
60
+ '50': '#fefafc',
61
+ '100': '#ffebf4',
62
+ '200': '#ffcee4',
63
+ '300': '#fca8cc',
64
+ '400': '#f17bad',
65
+ '500': '#e1458a',
66
+ '600': '#c10566',
67
+ '700': '#920147',
68
+ '800': '#69002d',
69
+ '900': '#4a011c',
70
+ '950': '#390011'
71
+ };
72
+ const red = {
73
+ '50': '#ffedea',
74
+ '100': '#ffcbc2',
75
+ '200': '#ffa697',
76
+ '300': '#fe7d69',
77
+ '400': '#ff432e',
78
+ '500': '#e51701',
79
+ '600': '#bf1201',
80
+ '700': '#9a0d01',
81
+ '800': '#760700',
82
+ '900': '#550400',
83
+ '950': '#360100'
84
+ };
85
+ const teal = {
86
+ '50': '#0768731a',
87
+ '100': '#c6f5f4',
88
+ '200': '#7ce0e1',
89
+ '300': '#47c1c7',
90
+ '400': '#26a0aa',
91
+ '500': '#12828e',
92
+ '600': '#076873',
93
+ '700': '#01525c',
94
+ '800': '#003f48',
95
+ '900': '#003138',
96
+ '950': '#00262c'
97
+ };
98
+ const violet = {
99
+ '50': '#fcfbff',
100
+ '100': '#f0e8ff',
101
+ '200': '#dfd0ff',
102
+ '300': '#c8b6f6',
103
+ '400': '#ac98e7',
104
+ '500': '#8d78d4',
105
+ '600': '#6d55bf',
106
+ '700': '#4f30aa',
107
+ '800': '#370191',
108
+ '900': '#23016a',
109
+ '950': '#170054'
110
+ };
111
+ const yellow = {
112
+ '50': '#faffe9',
113
+ '100': '#f9ffcc',
114
+ '200': '#fffb12',
115
+ '300': '#faea2b',
116
+ '400': '#eed434',
117
+ '500': '#d9ba34',
118
+ '600': '#be9b2e',
119
+ '700': '#9b7923',
120
+ '800': '#745512',
121
+ '900': '#493001',
122
+ '950': '#1c0e00'
123
+ };
124
+
125
+ /**
126
+ * Frontile Absolute Color Palette
127
+ *
128
+ * Absolute OKLCH colors that remain constant across light/dark themes.
129
+ */
130
+
131
+ const black = '#000000';
132
+ const white = '#ffffff';
133
+
134
+ /**
135
+ * Frontile Semantic Colors
136
+ *
137
+ * Semantic color mappings for light and dark themes.
138
+ */
139
+
140
+ const themeColorsLight = {
141
+ neutral: {
142
+ subtle: `${gray['500']}1a`,
143
+ // palette.gray['500'] @ 10%
144
+ muted: `${gray['400']}33`,
145
+ // palette.gray['400'] @ 20%
146
+ soft: gray['200'],
147
+ DEFAULT: gray['500'],
148
+ firm: gray['600'],
149
+ strong: gray['700'],
150
+ bolder: gray['800']
151
+ },
152
+ primary: {
153
+ subtle: `${teal['600']}1a`,
154
+ // palette.teal['600'] @ 10% — bg-tonal
155
+ muted: `${teal['600']}33`,
156
+ // palette.teal['600'] @ 20%
157
+ soft: teal['400'],
158
+ // bg-hover (lightens)
159
+ DEFAULT: teal['600'],
160
+ firm: teal['900'],
161
+ // bg-pressed (darkens)
162
+ strong: teal['600'],
163
+ // text (= bg-rest for primary)
164
+ bolder: teal['900'] // text-strong (= bg-pressed for primary)
165
+ },
166
+ accent: {
167
+ subtle: `${violet['600']}1a`,
168
+ // palette.violet['600'] @ 10%
169
+ muted: `${violet['600']}33`,
170
+ // palette.violet['600'] @ 20%
171
+ soft: violet['500'],
172
+ // bg-hover
173
+ DEFAULT: violet['600'],
174
+ firm: violet['800'],
175
+ // bg-pressed
176
+ strong: violet['700'],
177
+ // text
178
+ bolder: violet['900'] // text-strong
179
+ },
180
+ success: {
181
+ subtle: `${green['400']}1a`,
182
+ // palette.green['400'] @ 10%
183
+ muted: `${green['400']}33`,
184
+ // palette.green['400'] @ 20%
185
+ soft: green['300'],
186
+ // bg-hover
187
+ DEFAULT: green['400'],
188
+ firm: green['500'],
189
+ // bg-pressed
190
+ strong: green['800'],
191
+ // text (darker than bg-rest for legibility)
192
+ bolder: green['900'] // text-strong
193
+ },
194
+ warning: {
195
+ subtle: `${orange['300']}1a`,
196
+ // palette.orange['300'] @ 10%
197
+ muted: `${orange['300']}33`,
198
+ // palette.orange['300'] @ 20%
199
+ soft: orange['200'],
200
+ // bg-hover
201
+ DEFAULT: orange['300'],
202
+ firm: orange['400'],
203
+ // bg-pressed
204
+ strong: orange['600'],
205
+ // text (darker than bg-rest for legibility)
206
+ bolder: orange['900'] // text-strong
207
+ },
208
+ danger: {
209
+ subtle: `${red['600']}1a`,
210
+ // palette.red['600'] @ 10%
211
+ muted: `${red['600']}33`,
212
+ // palette.red['600'] @ 20%
213
+ soft: red['500'],
214
+ // bg-hover (lightens too)
215
+ DEFAULT: red['600'],
216
+ firm: red['700'],
217
+ // bg-pressed
218
+ strong: red['600'],
219
+ // text (= bg-rest for danger)
220
+ bolder: red['900'] // text-strong
221
+ },
222
+ surface: {
223
+ overlay: {
224
+ subtle: `${black}05`,
225
+ // absolute.black @ 2%
226
+ soft: `${black}0a`,
227
+ // absolute.black @ 4%
228
+ medium: `${black}12`,
229
+ // absolute.black @ 7%
230
+ strong: `${black}1c`,
231
+ // absolute.black @ 11%
232
+ scrim: `${black}bf` // absolute.black @ 75%, scheme-invariant
233
+ },
234
+ app: white,
235
+ canvas: gray['50'],
236
+ card: `${white}e6`,
237
+ // absolute.white @ 90%
238
+ input: white,
239
+ modal: white
240
+ }
241
+ };
242
+ const themeColorsDark = {
243
+ neutral: {
244
+ subtle: gray['900'],
245
+ muted: gray['800'],
246
+ soft: gray['700'],
247
+ DEFAULT: gray['600'],
248
+ firm: gray['500'],
249
+ strong: gray['300'],
250
+ bolder: gray['200']
251
+ },
252
+ primary: {
253
+ subtle: `${teal['300']}29`,
254
+ // palette.teal['300'] @ 16% — bg-tonal
255
+ muted: `${teal['300']}59`,
256
+ // palette.teal['300'] @ 35%
257
+ soft: teal['500'],
258
+ // bg-hover (darkens)
259
+ DEFAULT: teal['300'],
260
+ firm: teal['100'],
261
+ // bg-pressed (flashes light)
262
+ strong: teal['300'],
263
+ // text (= bg-rest for primary)
264
+ bolder: teal['100'] // text-strong (= bg-pressed for primary)
265
+ },
266
+ accent: {
267
+ subtle: `${violet['300']}29`,
268
+ // palette.violet['300'] @ 16%
269
+ muted: `${violet['300']}59`,
270
+ // palette.violet['300'] @ 35%
271
+ soft: violet['500'],
272
+ // bg-hover
273
+ DEFAULT: violet['300'],
274
+ firm: violet['800'],
275
+ // bg-pressed (presses deep, unlike primary's flash)
276
+ strong: violet['300'],
277
+ // text
278
+ bolder: violet['100'] // text-strong
279
+ },
280
+ success: {
281
+ subtle: `${green['400']}29`,
282
+ // palette.green['400'] @ 16%
283
+ muted: `${green['400']}59`,
284
+ // palette.green['400'] @ 35%
285
+ soft: green['700'],
286
+ // bg-hover (darkens)
287
+ DEFAULT: green['400'],
288
+ firm: green['900'],
289
+ // bg-pressed
290
+ strong: green['300'],
291
+ // text
292
+ bolder: green['100'] // text-strong
293
+ },
294
+ warning: {
295
+ subtle: `${orange['300']}29`,
296
+ // palette.orange['300'] @ 16%
297
+ muted: `${orange['300']}59`,
298
+ // palette.orange['300'] @ 35%
299
+ soft: orange['500'],
300
+ // bg-hover (darkens)
301
+ DEFAULT: orange['300'],
302
+ firm: orange['700'],
303
+ // bg-pressed
304
+ strong: orange['300'],
305
+ // text (= bg-rest)
306
+ bolder: orange['100'] // text-strong
307
+ },
308
+ danger: {
309
+ subtle: `${red['400']}29`,
310
+ // palette.red['400'] @ 16%
311
+ muted: `${red['400']}59`,
312
+ // palette.red['400'] @ 35%
313
+ soft: red['500'],
314
+ // bg-hover
315
+ DEFAULT: red['400'],
316
+ firm: red['700'],
317
+ // bg-pressed
318
+ strong: red['300'],
319
+ // text
320
+ bolder: red['100'] // text-strong
321
+ },
322
+ surface: {
323
+ overlay: {
324
+ subtle: `${white}08`,
325
+ // absolute.white @ 3%
326
+ soft: `${white}0f`,
327
+ // absolute.white @ 6%
328
+ medium: `${white}26`,
329
+ // absolute.white @ 15%
330
+ strong: `${white}3d`,
331
+ // absolute.white @ 24%
332
+ scrim: `${black}bf` // absolute.black @ 75%
333
+ },
334
+ app: black,
335
+ canvas: gray['950'],
336
+ card: gray['900'],
337
+ input: black,
338
+ modal: black
339
+ }
340
+ };
341
+ var tokens = {
342
+ light: themeColorsLight,
343
+ dark: themeColorsDark
344
+ };
345
+
346
+ const base = {
347
+ light: {
348
+ background: 'var(--color-surface-app)',
349
+ focus: 'var(--color-primary-muted)',
350
+ divider: 'rgba(17, 17, 17, 0.15)'
351
+ },
352
+ dark: {
353
+ background: 'var(--color-surface-app)',
354
+ focus: 'var(--color-primary-muted)',
355
+ divider: 'rgba(255, 255, 255, 0.15)'
356
+ }
357
+ };
358
+ const semanticColors = {
359
+ light: {
360
+ ...base.light,
361
+ ...tokens.light
362
+ },
363
+ dark: {
364
+ ...base.dark,
365
+ ...tokens.dark
366
+ }
367
+ };
368
+
369
+ export { green as a, blue as b, black as c, gray as g, orange as o, pink as p, red as r, semanticColors as s, teal as t, violet as v, white as w, yellow as y };
370
+ //# sourceMappingURL=config-CDp8PRHs.js.map