@fldr/ui 0.1.0 → 0.3.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.
Files changed (57) hide show
  1. package/dist/.build-complete +1 -1
  2. package/dist/ai/schemas.d.ts +18 -18
  3. package/dist/chunks/{code-nj2nu6qzxhz6qnkk.js → code-hp2x28uiufmk3elz.js} +2 -4
  4. package/dist/chunks/highlighter-mouttug0tu8xg1i8.js +1364 -0
  5. package/dist/code/server.d.ts +4 -89
  6. package/dist/code/server.js +3 -136
  7. package/dist/code.d.ts +53 -70
  8. package/dist/code.js +186 -327
  9. package/dist/command-line/cli.js +0 -0
  10. package/dist/command-line/commands/add.js +0 -0
  11. package/dist/command-line/commands/ai.js +0 -0
  12. package/dist/command-line/commands/blocks.js +0 -0
  13. package/dist/command-line/commands/doc.js +0 -0
  14. package/dist/command-line/commands/init.js +0 -0
  15. package/dist/command-line/commands/ls.js +0 -0
  16. package/dist/components/code.d.ts +1 -1
  17. package/dist/components/code.js +1 -1
  18. package/dist/highlighter-BT3TakhJ.d.ts +13 -0
  19. package/dist/{index-B9niVl3r.d.ts → index-CNL6VDYZ.d.ts} +2 -4
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +1 -1
  22. package/dist/styles/kumo-binding.css +1 -0
  23. package/dist/styles/kumo-standalone.css +1 -1
  24. package/dist/styles/kumo.css +20 -38
  25. package/dist/styles/theme-code.css +142 -0
  26. package/dist/styles/theme-fldr.css +429 -15
  27. package/dist/theming.d.ts +71 -32
  28. package/dist/theming.js +162 -17
  29. package/package.json +2 -4
  30. package/scripts/css-build.ts +1 -0
  31. package/scripts/publish-fldr.ts +62 -10
  32. package/scripts/theme-generator/index.ts +15 -5
  33. package/dist/chunks/bash-jpzh6zbf5237424t.js +0 -3
  34. package/dist/chunks/core-n0de50o00ej2ecfe.js +0 -7177
  35. package/dist/chunks/css-j501gxq1am2gnikh.js +0 -4
  36. package/dist/chunks/diff-g2re0kj6fh27rgg5.js +0 -4
  37. package/dist/chunks/engine-javascript-e9xj8hhz9xfqhpnu.js +0 -3118
  38. package/dist/chunks/engine-oniguruma-ias56ildu01gf939.js +0 -389
  39. package/dist/chunks/github-light-hir7yctc38258pwt.js +0 -5
  40. package/dist/chunks/graphql-n9vlzkvcp2j19p7a.js +0 -16
  41. package/dist/chunks/hcl-ohpfnrffs96hzyj5.js +0 -4
  42. package/dist/chunks/html-nimj6ljkkifnc9ni.js +0 -12
  43. package/dist/chunks/javascript-b6fq9bl50fdj6813.js +0 -4
  44. package/dist/chunks/json-h2g0z143t3cs13d7.js +0 -4
  45. package/dist/chunks/jsonc-jxlzvingck161eej.js +0 -4
  46. package/dist/chunks/jsx-jp7a33937sef92sn.js +0 -4
  47. package/dist/chunks/markdown-eybeqjr58vfygtz1.js +0 -4
  48. package/dist/chunks/python-nrpnmxq4r6yp6fcd.js +0 -4
  49. package/dist/chunks/shellscript-i4m7lo8wi0f5bl8b.js +0 -4
  50. package/dist/chunks/sql-hqp2eekl7qhmxe92.js +0 -4
  51. package/dist/chunks/toml-oyqrgosuct25x413.js +0 -4
  52. package/dist/chunks/tsx-pem8x69upvmibv6l.js +0 -4
  53. package/dist/chunks/typescript-pe5y016phdwbgws7.js +0 -4
  54. package/dist/chunks/vesper-g839e590k3dxnwh3.js +0 -5
  55. package/dist/chunks/wasm-cpasy0o9lsjrm39j.js +0 -8
  56. package/dist/chunks/yaml-kzk5ddyekbyha04v.js +0 -4
  57. package/dist/types-C6in2C8V.d.ts +0 -135
@@ -6,19 +6,26 @@
6
6
  --text-color-kumo-inverse: light-dark(#f6f5f2, #191918);
7
7
  --text-color-kumo-strong: light-dark(#111110, #fbfaf8);
8
8
  --text-color-kumo-subtle: light-dark(#76746f, #9c9a94);
9
- --text-color-kumo-brand: light-dark(#5146e5, #a59ff6);
10
- --text-color-kumo-link: light-dark(#4238c4, #a59ff6);
9
+ --text-color-kumo-brand: light-dark(
10
+ oklch(48.8% 0.243 264.376),
11
+ oklch(70.7% 0.165 254.624)
12
+ );
13
+ --text-color-kumo-link: light-dark(
14
+ oklch(42.4% 0.199 265.638),
15
+ oklch(70.7% 0.165 254.624)
16
+ );
11
17
  --color-kumo-canvas: light-dark(#fbfaf8, #111110);
12
18
  --color-kumo-elevated: light-dark(#f6f5f2, #151514);
13
19
  --color-kumo-recessed: light-dark(#ecebe7, #191918);
14
20
  --color-kumo-base: light-dark(#ffffff, #1c1c1b);
15
21
  --color-kumo-tint: light-dark(#f6f5f2, #2b2a28);
16
22
  --color-kumo-control: light-dark(#ffffff, #191918);
17
- --color-kumo-brand: light-dark(#5146e5, #6258ea);
18
- --color-kumo-brand-hover: light-dark(#4238c4, #5146e5);
19
23
  --color-kumo-line: light-dark(rgb(25 25 24 / 0.1), #41403d);
20
24
  --color-kumo-hairline: light-dark(#ecebe7, #2b2a28);
21
- --color-kumo-focus: light-dark(#5146e5, #7f76ee);
25
+ --color-kumo-focus: light-dark(
26
+ oklch(0.5772 0.2324 260),
27
+ oklch(70.7% 0.165 254.624)
28
+ );
22
29
  }
23
30
  }
24
31
 
@@ -28,19 +35,17 @@
28
35
  --text-color-kumo-inverse: #f6f5f2;
29
36
  --text-color-kumo-strong: #111110;
30
37
  --text-color-kumo-subtle: #76746f;
31
- --text-color-kumo-brand: #5146e5;
32
- --text-color-kumo-link: #4238c4;
38
+ --text-color-kumo-brand: oklch(48.8% 0.243 264.376);
39
+ --text-color-kumo-link: oklch(42.4% 0.199 265.638);
33
40
  --color-kumo-canvas: #fbfaf8;
34
41
  --color-kumo-elevated: #f6f5f2;
35
42
  --color-kumo-recessed: #ecebe7;
36
43
  --color-kumo-base: #ffffff;
37
44
  --color-kumo-tint: #f6f5f2;
38
45
  --color-kumo-control: #ffffff;
39
- --color-kumo-brand: #5146e5;
40
- --color-kumo-brand-hover: #4238c4;
41
46
  --color-kumo-line: rgb(25 25 24 / 0.1);
42
47
  --color-kumo-hairline: #ecebe7;
43
- --color-kumo-focus: #5146e5;
48
+ --color-kumo-focus: oklch(0.5772 0.2324 260);
44
49
  }
45
50
 
46
51
  [data-mode="dark"] [data-theme="fldr"],
@@ -50,18 +55,427 @@
50
55
  --text-color-kumo-inverse: #191918;
51
56
  --text-color-kumo-strong: #fbfaf8;
52
57
  --text-color-kumo-subtle: #9c9a94;
53
- --text-color-kumo-brand: #a59ff6;
54
- --text-color-kumo-link: #a59ff6;
58
+ --text-color-kumo-brand: oklch(70.7% 0.165 254.624);
59
+ --text-color-kumo-link: oklch(70.7% 0.165 254.624);
55
60
  --color-kumo-canvas: #111110;
56
61
  --color-kumo-elevated: #151514;
57
62
  --color-kumo-recessed: #191918;
58
63
  --color-kumo-base: #1c1c1b;
59
64
  --color-kumo-tint: #2b2a28;
60
65
  --color-kumo-control: #191918;
61
- --color-kumo-brand: #6258ea;
62
- --color-kumo-brand-hover: #5146e5;
63
66
  --color-kumo-line: #41403d;
64
67
  --color-kumo-hairline: #2b2a28;
65
- --color-kumo-focus: #7f76ee;
68
+ --color-kumo-focus: oklch(70.7% 0.165 254.624);
69
+ }
70
+ }
71
+
72
+ /* Kumo theme "fldr-violet". Generated by generateThemeCSS(); edit the theme definition, not this file. */
73
+
74
+ @layer base {
75
+ [data-theme="fldr-violet"] {
76
+ --text-color-kumo-default: light-dark(#191918, #f6f5f2);
77
+ --text-color-kumo-inverse: light-dark(#f6f5f2, #191918);
78
+ --text-color-kumo-strong: light-dark(#111110, #fbfaf8);
79
+ --text-color-kumo-subtle: light-dark(#76746f, #9c9a94);
80
+ --text-color-kumo-brand: light-dark(
81
+ oklch(49.1% 0.27 292.581),
82
+ oklch(70.2% 0.183 293.541)
83
+ );
84
+ --text-color-kumo-link: light-dark(
85
+ oklch(49.1% 0.27 292.581),
86
+ oklch(70.2% 0.183 293.541)
87
+ );
88
+ --color-kumo-canvas: light-dark(#fbfaf8, #111110);
89
+ --color-kumo-elevated: light-dark(#f6f5f2, #151514);
90
+ --color-kumo-recessed: light-dark(#ecebe7, #191918);
91
+ --color-kumo-base: light-dark(#ffffff, #1c1c1b);
92
+ --color-kumo-tint: light-dark(#f6f5f2, #2b2a28);
93
+ --color-kumo-control: light-dark(#ffffff, #191918);
94
+ --color-kumo-brand: light-dark(
95
+ oklch(54.1% 0.281 293.009),
96
+ oklch(54.1% 0.281 293.009)
97
+ );
98
+ --color-kumo-brand-hover: light-dark(
99
+ oklch(49.1% 0.27 292.581),
100
+ oklch(60.6% 0.25 292.717)
101
+ );
102
+ --color-kumo-line: light-dark(rgb(25 25 24 / 0.1), #41403d);
103
+ --color-kumo-hairline: light-dark(#ecebe7, #2b2a28);
104
+ --color-kumo-focus: light-dark(
105
+ oklch(54.1% 0.281 293.009),
106
+ oklch(54.1% 0.281 293.009)
107
+ );
108
+ }
109
+ }
110
+
111
+ @layer base {
112
+ [data-theme="fldr-violet"] {
113
+ --text-color-kumo-default: #191918;
114
+ --text-color-kumo-inverse: #f6f5f2;
115
+ --text-color-kumo-strong: #111110;
116
+ --text-color-kumo-subtle: #76746f;
117
+ --text-color-kumo-brand: oklch(49.1% 0.27 292.581);
118
+ --text-color-kumo-link: oklch(49.1% 0.27 292.581);
119
+ --color-kumo-canvas: #fbfaf8;
120
+ --color-kumo-elevated: #f6f5f2;
121
+ --color-kumo-recessed: #ecebe7;
122
+ --color-kumo-base: #ffffff;
123
+ --color-kumo-tint: #f6f5f2;
124
+ --color-kumo-control: #ffffff;
125
+ --color-kumo-brand: oklch(54.1% 0.281 293.009);
126
+ --color-kumo-brand-hover: oklch(49.1% 0.27 292.581);
127
+ --color-kumo-line: rgb(25 25 24 / 0.1);
128
+ --color-kumo-hairline: #ecebe7;
129
+ --color-kumo-focus: oklch(54.1% 0.281 293.009);
130
+ }
131
+
132
+ [data-mode="dark"] [data-theme="fldr-violet"],
133
+ [data-theme="fldr-violet"][data-mode="dark"],
134
+ [data-theme="fldr-violet"] [data-mode="dark"] {
135
+ --text-color-kumo-default: #f6f5f2;
136
+ --text-color-kumo-inverse: #191918;
137
+ --text-color-kumo-strong: #fbfaf8;
138
+ --text-color-kumo-subtle: #9c9a94;
139
+ --text-color-kumo-brand: oklch(70.2% 0.183 293.541);
140
+ --text-color-kumo-link: oklch(70.2% 0.183 293.541);
141
+ --color-kumo-canvas: #111110;
142
+ --color-kumo-elevated: #151514;
143
+ --color-kumo-recessed: #191918;
144
+ --color-kumo-base: #1c1c1b;
145
+ --color-kumo-tint: #2b2a28;
146
+ --color-kumo-control: #191918;
147
+ --color-kumo-brand: oklch(54.1% 0.281 293.009);
148
+ --color-kumo-brand-hover: oklch(60.6% 0.25 292.717);
149
+ --color-kumo-line: #41403d;
150
+ --color-kumo-hairline: #2b2a28;
151
+ --color-kumo-focus: oklch(54.1% 0.281 293.009);
152
+ }
153
+ }
154
+
155
+ /* Kumo theme "fldr-green". Generated by generateThemeCSS(); edit the theme definition, not this file. */
156
+
157
+ @layer base {
158
+ [data-theme="fldr-green"] {
159
+ --text-color-kumo-default: light-dark(#191918, #f6f5f2);
160
+ --text-color-kumo-inverse: light-dark(#f6f5f2, #191918);
161
+ --text-color-kumo-strong: light-dark(#111110, #fbfaf8);
162
+ --text-color-kumo-subtle: light-dark(#76746f, #9c9a94);
163
+ --text-color-kumo-brand: light-dark(
164
+ oklch(43.2% 0.095 166.913),
165
+ oklch(76.5% 0.177 163.223)
166
+ );
167
+ --text-color-kumo-link: light-dark(
168
+ oklch(43.2% 0.095 166.913),
169
+ oklch(76.5% 0.177 163.223)
170
+ );
171
+ --color-kumo-canvas: light-dark(#fbfaf8, #111110);
172
+ --color-kumo-elevated: light-dark(#f6f5f2, #151514);
173
+ --color-kumo-recessed: light-dark(#ecebe7, #191918);
174
+ --color-kumo-base: light-dark(#ffffff, #1c1c1b);
175
+ --color-kumo-tint: light-dark(#f6f5f2, #2b2a28);
176
+ --color-kumo-control: light-dark(#ffffff, #191918);
177
+ --color-kumo-brand: light-dark(
178
+ oklch(50.8% 0.118 165.612),
179
+ oklch(50.8% 0.118 165.612)
180
+ );
181
+ --color-kumo-brand-hover: light-dark(
182
+ oklch(43.2% 0.095 166.913),
183
+ oklch(59.6% 0.145 163.225)
184
+ );
185
+ --color-kumo-line: light-dark(rgb(25 25 24 / 0.1), #41403d);
186
+ --color-kumo-hairline: light-dark(#ecebe7, #2b2a28);
187
+ --color-kumo-focus: light-dark(
188
+ oklch(50.8% 0.118 165.612),
189
+ oklch(50.8% 0.118 165.612)
190
+ );
191
+ }
192
+ }
193
+
194
+ @layer base {
195
+ [data-theme="fldr-green"] {
196
+ --text-color-kumo-default: #191918;
197
+ --text-color-kumo-inverse: #f6f5f2;
198
+ --text-color-kumo-strong: #111110;
199
+ --text-color-kumo-subtle: #76746f;
200
+ --text-color-kumo-brand: oklch(43.2% 0.095 166.913);
201
+ --text-color-kumo-link: oklch(43.2% 0.095 166.913);
202
+ --color-kumo-canvas: #fbfaf8;
203
+ --color-kumo-elevated: #f6f5f2;
204
+ --color-kumo-recessed: #ecebe7;
205
+ --color-kumo-base: #ffffff;
206
+ --color-kumo-tint: #f6f5f2;
207
+ --color-kumo-control: #ffffff;
208
+ --color-kumo-brand: oklch(50.8% 0.118 165.612);
209
+ --color-kumo-brand-hover: oklch(43.2% 0.095 166.913);
210
+ --color-kumo-line: rgb(25 25 24 / 0.1);
211
+ --color-kumo-hairline: #ecebe7;
212
+ --color-kumo-focus: oklch(50.8% 0.118 165.612);
213
+ }
214
+
215
+ [data-mode="dark"] [data-theme="fldr-green"],
216
+ [data-theme="fldr-green"][data-mode="dark"],
217
+ [data-theme="fldr-green"] [data-mode="dark"] {
218
+ --text-color-kumo-default: #f6f5f2;
219
+ --text-color-kumo-inverse: #191918;
220
+ --text-color-kumo-strong: #fbfaf8;
221
+ --text-color-kumo-subtle: #9c9a94;
222
+ --text-color-kumo-brand: oklch(76.5% 0.177 163.223);
223
+ --text-color-kumo-link: oklch(76.5% 0.177 163.223);
224
+ --color-kumo-canvas: #111110;
225
+ --color-kumo-elevated: #151514;
226
+ --color-kumo-recessed: #191918;
227
+ --color-kumo-base: #1c1c1b;
228
+ --color-kumo-tint: #2b2a28;
229
+ --color-kumo-control: #191918;
230
+ --color-kumo-brand: oklch(50.8% 0.118 165.612);
231
+ --color-kumo-brand-hover: oklch(59.6% 0.145 163.225);
232
+ --color-kumo-line: #41403d;
233
+ --color-kumo-hairline: #2b2a28;
234
+ --color-kumo-focus: oklch(50.8% 0.118 165.612);
235
+ }
236
+ }
237
+
238
+ /* Kumo theme "fldr-orange". Generated by generateThemeCSS(); edit the theme definition, not this file. */
239
+
240
+ @layer base {
241
+ [data-theme="fldr-orange"] {
242
+ --text-color-kumo-default: light-dark(#191918, #f6f5f2);
243
+ --text-color-kumo-inverse: light-dark(#f6f5f2, #191918);
244
+ --text-color-kumo-strong: light-dark(#111110, #fbfaf8);
245
+ --text-color-kumo-subtle: light-dark(#76746f, #9c9a94);
246
+ --text-color-kumo-brand: light-dark(
247
+ oklch(47% 0.157 37.304),
248
+ oklch(75% 0.183 55.934)
249
+ );
250
+ --text-color-kumo-link: light-dark(
251
+ oklch(47% 0.157 37.304),
252
+ oklch(75% 0.183 55.934)
253
+ );
254
+ --color-kumo-canvas: light-dark(#fbfaf8, #111110);
255
+ --color-kumo-elevated: light-dark(#f6f5f2, #151514);
256
+ --color-kumo-recessed: light-dark(#ecebe7, #191918);
257
+ --color-kumo-base: light-dark(#ffffff, #1c1c1b);
258
+ --color-kumo-tint: light-dark(#f6f5f2, #2b2a28);
259
+ --color-kumo-control: light-dark(#ffffff, #191918);
260
+ --color-kumo-brand: light-dark(
261
+ oklch(55.3% 0.195 38.402),
262
+ oklch(55.3% 0.195 38.402)
263
+ );
264
+ --color-kumo-brand-hover: light-dark(
265
+ oklch(47% 0.157 37.304),
266
+ oklch(64.6% 0.222 41.116)
267
+ );
268
+ --color-kumo-line: light-dark(rgb(25 25 24 / 0.1), #41403d);
269
+ --color-kumo-hairline: light-dark(#ecebe7, #2b2a28);
270
+ --color-kumo-focus: light-dark(
271
+ oklch(55.3% 0.195 38.402),
272
+ oklch(55.3% 0.195 38.402)
273
+ );
274
+ }
275
+ }
276
+
277
+ @layer base {
278
+ [data-theme="fldr-orange"] {
279
+ --text-color-kumo-default: #191918;
280
+ --text-color-kumo-inverse: #f6f5f2;
281
+ --text-color-kumo-strong: #111110;
282
+ --text-color-kumo-subtle: #76746f;
283
+ --text-color-kumo-brand: oklch(47% 0.157 37.304);
284
+ --text-color-kumo-link: oklch(47% 0.157 37.304);
285
+ --color-kumo-canvas: #fbfaf8;
286
+ --color-kumo-elevated: #f6f5f2;
287
+ --color-kumo-recessed: #ecebe7;
288
+ --color-kumo-base: #ffffff;
289
+ --color-kumo-tint: #f6f5f2;
290
+ --color-kumo-control: #ffffff;
291
+ --color-kumo-brand: oklch(55.3% 0.195 38.402);
292
+ --color-kumo-brand-hover: oklch(47% 0.157 37.304);
293
+ --color-kumo-line: rgb(25 25 24 / 0.1);
294
+ --color-kumo-hairline: #ecebe7;
295
+ --color-kumo-focus: oklch(55.3% 0.195 38.402);
296
+ }
297
+
298
+ [data-mode="dark"] [data-theme="fldr-orange"],
299
+ [data-theme="fldr-orange"][data-mode="dark"],
300
+ [data-theme="fldr-orange"] [data-mode="dark"] {
301
+ --text-color-kumo-default: #f6f5f2;
302
+ --text-color-kumo-inverse: #191918;
303
+ --text-color-kumo-strong: #fbfaf8;
304
+ --text-color-kumo-subtle: #9c9a94;
305
+ --text-color-kumo-brand: oklch(75% 0.183 55.934);
306
+ --text-color-kumo-link: oklch(75% 0.183 55.934);
307
+ --color-kumo-canvas: #111110;
308
+ --color-kumo-elevated: #151514;
309
+ --color-kumo-recessed: #191918;
310
+ --color-kumo-base: #1c1c1b;
311
+ --color-kumo-tint: #2b2a28;
312
+ --color-kumo-control: #191918;
313
+ --color-kumo-brand: oklch(55.3% 0.195 38.402);
314
+ --color-kumo-brand-hover: oklch(64.6% 0.222 41.116);
315
+ --color-kumo-line: #41403d;
316
+ --color-kumo-hairline: #2b2a28;
317
+ --color-kumo-focus: oklch(55.3% 0.195 38.402);
318
+ }
319
+ }
320
+
321
+ /* Kumo theme "fldr-rose". Generated by generateThemeCSS(); edit the theme definition, not this file. */
322
+
323
+ @layer base {
324
+ [data-theme="fldr-rose"] {
325
+ --text-color-kumo-default: light-dark(#191918, #f6f5f2);
326
+ --text-color-kumo-inverse: light-dark(#f6f5f2, #191918);
327
+ --text-color-kumo-strong: light-dark(#111110, #fbfaf8);
328
+ --text-color-kumo-subtle: light-dark(#76746f, #9c9a94);
329
+ --text-color-kumo-brand: light-dark(
330
+ oklch(51.4% 0.222 16.935),
331
+ oklch(71.2% 0.194 13.428)
332
+ );
333
+ --text-color-kumo-link: light-dark(
334
+ oklch(51.4% 0.222 16.935),
335
+ oklch(71.2% 0.194 13.428)
336
+ );
337
+ --color-kumo-canvas: light-dark(#fbfaf8, #111110);
338
+ --color-kumo-elevated: light-dark(#f6f5f2, #151514);
339
+ --color-kumo-recessed: light-dark(#ecebe7, #191918);
340
+ --color-kumo-base: light-dark(#ffffff, #1c1c1b);
341
+ --color-kumo-tint: light-dark(#f6f5f2, #2b2a28);
342
+ --color-kumo-control: light-dark(#ffffff, #191918);
343
+ --color-kumo-brand: light-dark(
344
+ oklch(58.6% 0.253 17.585),
345
+ oklch(58.6% 0.253 17.585)
346
+ );
347
+ --color-kumo-brand-hover: light-dark(
348
+ oklch(51.4% 0.222 16.935),
349
+ oklch(64.5% 0.246 16.439)
350
+ );
351
+ --color-kumo-line: light-dark(rgb(25 25 24 / 0.1), #41403d);
352
+ --color-kumo-hairline: light-dark(#ecebe7, #2b2a28);
353
+ --color-kumo-focus: light-dark(
354
+ oklch(58.6% 0.253 17.585),
355
+ oklch(58.6% 0.253 17.585)
356
+ );
357
+ }
358
+ }
359
+
360
+ @layer base {
361
+ [data-theme="fldr-rose"] {
362
+ --text-color-kumo-default: #191918;
363
+ --text-color-kumo-inverse: #f6f5f2;
364
+ --text-color-kumo-strong: #111110;
365
+ --text-color-kumo-subtle: #76746f;
366
+ --text-color-kumo-brand: oklch(51.4% 0.222 16.935);
367
+ --text-color-kumo-link: oklch(51.4% 0.222 16.935);
368
+ --color-kumo-canvas: #fbfaf8;
369
+ --color-kumo-elevated: #f6f5f2;
370
+ --color-kumo-recessed: #ecebe7;
371
+ --color-kumo-base: #ffffff;
372
+ --color-kumo-tint: #f6f5f2;
373
+ --color-kumo-control: #ffffff;
374
+ --color-kumo-brand: oklch(58.6% 0.253 17.585);
375
+ --color-kumo-brand-hover: oklch(51.4% 0.222 16.935);
376
+ --color-kumo-line: rgb(25 25 24 / 0.1);
377
+ --color-kumo-hairline: #ecebe7;
378
+ --color-kumo-focus: oklch(58.6% 0.253 17.585);
379
+ }
380
+
381
+ [data-mode="dark"] [data-theme="fldr-rose"],
382
+ [data-theme="fldr-rose"][data-mode="dark"],
383
+ [data-theme="fldr-rose"] [data-mode="dark"] {
384
+ --text-color-kumo-default: #f6f5f2;
385
+ --text-color-kumo-inverse: #191918;
386
+ --text-color-kumo-strong: #fbfaf8;
387
+ --text-color-kumo-subtle: #9c9a94;
388
+ --text-color-kumo-brand: oklch(71.2% 0.194 13.428);
389
+ --text-color-kumo-link: oklch(71.2% 0.194 13.428);
390
+ --color-kumo-canvas: #111110;
391
+ --color-kumo-elevated: #151514;
392
+ --color-kumo-recessed: #191918;
393
+ --color-kumo-base: #1c1c1b;
394
+ --color-kumo-tint: #2b2a28;
395
+ --color-kumo-control: #191918;
396
+ --color-kumo-brand: oklch(58.6% 0.253 17.585);
397
+ --color-kumo-brand-hover: oklch(64.5% 0.246 16.439);
398
+ --color-kumo-line: #41403d;
399
+ --color-kumo-hairline: #2b2a28;
400
+ --color-kumo-focus: oklch(58.6% 0.253 17.585);
401
+ }
402
+ }
403
+
404
+ /* Kumo theme "fldr-ink". Generated by generateThemeCSS(); edit the theme definition, not this file. */
405
+
406
+ @layer base {
407
+ [data-theme="fldr-ink"] {
408
+ --text-color-kumo-default: light-dark(#191918, #f6f5f2);
409
+ --text-color-kumo-inverse: light-dark(#f6f5f2, #191918);
410
+ --text-color-kumo-strong: light-dark(#111110, #fbfaf8);
411
+ --text-color-kumo-subtle: light-dark(#76746f, #9c9a94);
412
+ --text-color-kumo-brand: light-dark(#191918, #f6f5f2);
413
+ --text-color-kumo-link: light-dark(#191918, #f6f5f2);
414
+ --color-kumo-canvas: light-dark(#fbfaf8, #111110);
415
+ --color-kumo-elevated: light-dark(#f6f5f2, #151514);
416
+ --color-kumo-recessed: light-dark(#ecebe7, #191918);
417
+ --color-kumo-base: light-dark(#ffffff, #1c1c1b);
418
+ --color-kumo-tint: light-dark(#f6f5f2, #2b2a28);
419
+ --color-kumo-control: light-dark(#ffffff, #191918);
420
+ --color-kumo-brand: light-dark(#191918, #41403d);
421
+ --color-kumo-brand-hover: light-dark(#2b2a28, #5a5955);
422
+ --color-kumo-line: light-dark(rgb(25 25 24 / 0.1), #41403d);
423
+ --color-kumo-hairline: light-dark(#ecebe7, #2b2a28);
424
+ --color-kumo-focus: light-dark(#191918, #41403d);
425
+ }
426
+ }
427
+
428
+ @layer base {
429
+ [data-theme="fldr-ink"] {
430
+ --text-color-kumo-default: #191918;
431
+ --text-color-kumo-inverse: #f6f5f2;
432
+ --text-color-kumo-strong: #111110;
433
+ --text-color-kumo-subtle: #76746f;
434
+ --text-color-kumo-brand: #191918;
435
+ --text-color-kumo-link: #191918;
436
+ --color-kumo-canvas: #fbfaf8;
437
+ --color-kumo-elevated: #f6f5f2;
438
+ --color-kumo-recessed: #ecebe7;
439
+ --color-kumo-base: #ffffff;
440
+ --color-kumo-tint: #f6f5f2;
441
+ --color-kumo-control: #ffffff;
442
+ --color-kumo-brand: #191918;
443
+ --color-kumo-brand-hover: #2b2a28;
444
+ --color-kumo-line: rgb(25 25 24 / 0.1);
445
+ --color-kumo-hairline: #ecebe7;
446
+ --color-kumo-focus: #191918;
447
+ }
448
+
449
+ [data-mode="dark"] [data-theme="fldr-ink"],
450
+ [data-theme="fldr-ink"][data-mode="dark"],
451
+ [data-theme="fldr-ink"] [data-mode="dark"] {
452
+ --text-color-kumo-default: #f6f5f2;
453
+ --text-color-kumo-inverse: #191918;
454
+ --text-color-kumo-strong: #fbfaf8;
455
+ --text-color-kumo-subtle: #9c9a94;
456
+ --text-color-kumo-brand: #f6f5f2;
457
+ --text-color-kumo-link: #f6f5f2;
458
+ --color-kumo-canvas: #111110;
459
+ --color-kumo-elevated: #151514;
460
+ --color-kumo-recessed: #191918;
461
+ --color-kumo-base: #1c1c1b;
462
+ --color-kumo-tint: #2b2a28;
463
+ --color-kumo-control: #191918;
464
+ --color-kumo-brand: #41403d;
465
+ --color-kumo-brand-hover: #5a5955;
466
+ --color-kumo-line: #41403d;
467
+ --color-kumo-hairline: #2b2a28;
468
+ --color-kumo-focus: #41403d;
469
+ }
470
+ }
471
+
472
+ /* Kumo density "compact". Generated by generateDensityCSS(). */
473
+ @layer base {
474
+ [data-density="compact"] {
475
+ --spacing: 0.22rem;
476
+ --text-xs: 11px;
477
+ --text-sm: 12px;
478
+ --text-base: 13px;
479
+ --text-lg: 15px;
66
480
  }
67
481
  }
package/dist/theming.d.ts CHANGED
@@ -20,14 +20,35 @@ interface KumoTheme {
20
20
  }
21
21
  /** Identity helper that gives token-name autocomplete and type checking. */
22
22
  export declare function defineTheme<const T extends KumoTheme>(theme: T): T;
23
+ /**
24
+ * Build a theme on top of another one. Token groups merge, and the new
25
+ * theme's tokens win, so a variant only lists what it changes.
26
+ */
27
+ export declare function extendTheme(base: KumoTheme, theme: KumoTheme): KumoTheme;
23
28
  /**
24
29
  * Generate the CSS for a theme. Load it after Kumo's styles and set
25
30
  * `data-theme="<name>"` on `<html>` or any subtree.
26
31
  */
27
32
  export declare function generateThemeCSS(theme: KumoTheme): string;
33
+ /**
34
+ * A density: a size scale applied with `data-density="<name>"`, independent
35
+ * of the color theme. Kumo sizes are multiples of `--spacing` (`h-9` is
36
+ * `9 × --spacing`), so shrinking it tightens every control proportionally.
37
+ */
38
+ interface KumoDensity {
39
+ /** Used as `data-density="<name>"`. */
40
+ name: string;
41
+ /** Base spacing unit. Kumo's default is `0.25rem`. */
42
+ spacing: string;
43
+ /** Font sizes and line heights. */
44
+ typography?: Partial<Record<KumoTypographyToken, string>>;
45
+ }
46
+ export declare function defineDensity<const T extends KumoDensity>(density: T): T;
47
+ /** Generate the CSS for a density. Load it after Kumo's styles. */
48
+ export declare function generateDensityCSS(density: KumoDensity): string;
28
49
  //#endregion
29
50
  //#region src/themes/fldr.d.ts
30
- /** fldr: graphite on warm off-white, indigo accent. */
51
+ /** fldr: graphite on warm off-white, with Kumo's blue as the accent. */
31
52
  export declare const fldrTheme: {
32
53
  readonly name: "fldr";
33
54
  readonly text: {
@@ -48,12 +69,12 @@ export declare const fldrTheme: {
48
69
  readonly dark: "#9c9a94";
49
70
  };
50
71
  readonly "kumo-brand": {
51
- readonly light: "#5146e5";
52
- readonly dark: "#a59ff6";
72
+ readonly light: "oklch(48.8% 0.243 264.376)";
73
+ readonly dark: "oklch(70.7% 0.165 254.624)";
53
74
  };
54
75
  readonly "kumo-link": {
55
- readonly light: "#4238c4";
56
- readonly dark: "#a59ff6";
76
+ readonly light: "oklch(42.4% 0.199 265.638)";
77
+ readonly dark: "oklch(70.7% 0.165 254.624)";
57
78
  };
58
79
  };
59
80
  readonly color: {
@@ -90,23 +111,38 @@ export declare const fldrTheme: {
90
111
  readonly dark: "#2b2a28";
91
112
  };
92
113
  readonly "kumo-focus": {
93
- readonly light: "#5146e5";
94
- readonly dark: "#7f76ee";
95
- };
96
- readonly "kumo-brand": {
97
- readonly light: "#5146e5";
98
- readonly dark: "#6258ea";
99
- };
100
- readonly "kumo-brand-hover": {
101
- readonly light: "#4238c4";
102
- readonly dark: "#5146e5";
114
+ readonly light: "oklch(0.5772 0.2324 260)";
115
+ readonly dark: "oklch(70.7% 0.165 254.624)";
103
116
  };
104
117
  };
105
118
  };
119
+ export declare const fldrVioletTheme: KumoTheme;
120
+ export declare const fldrGreenTheme: KumoTheme;
121
+ export declare const fldrOrangeTheme: KumoTheme;
122
+ export declare const fldrRoseTheme: KumoTheme;
123
+ /** Monochrome: graphite ink instead of a hue. */
124
+ export declare const fldrInkTheme: KumoTheme;
125
+ //#endregion
126
+ //#region src/themes/density.d.ts
127
+ /** About 12% tighter than Kumo's default: 28px base controls, 13px body text. */
128
+ export declare const compactDensity: {
129
+ readonly name: "compact";
130
+ readonly spacing: "0.22rem";
131
+ readonly typography: {
132
+ readonly xs: "11px";
133
+ readonly sm: "12px";
134
+ readonly base: "13px";
135
+ readonly lg: "15px";
136
+ };
137
+ };
106
138
  //#endregion
107
139
  //#region src/themes/index.d.ts
108
- /** Themes shipped as prebuilt CSS (`@fldr/ui/styles/theme-<name>.css`). */
109
- export declare const BUILT_IN_THEMES: {
140
+ /**
141
+ * Themes shipped as prebuilt CSS. All of them are written to
142
+ * `theme-fldr.css` (`@fldr/ui/styles/theme-fldr.css`), which the
143
+ * standalone and Tailwind builds already include.
144
+ */
145
+ export declare const BUILT_IN_THEMES: (KumoTheme | {
110
146
  readonly name: "fldr";
111
147
  readonly text: {
112
148
  readonly "kumo-default": {
@@ -126,12 +162,12 @@ export declare const BUILT_IN_THEMES: {
126
162
  readonly dark: "#9c9a94";
127
163
  };
128
164
  readonly "kumo-brand": {
129
- readonly light: "#5146e5";
130
- readonly dark: "#a59ff6";
165
+ readonly light: "oklch(48.8% 0.243 264.376)";
166
+ readonly dark: "oklch(70.7% 0.165 254.624)";
131
167
  };
132
168
  readonly "kumo-link": {
133
- readonly light: "#4238c4";
134
- readonly dark: "#a59ff6";
169
+ readonly light: "oklch(42.4% 0.199 265.638)";
170
+ readonly dark: "oklch(70.7% 0.165 254.624)";
135
171
  };
136
172
  };
137
173
  readonly color: {
@@ -168,18 +204,21 @@ export declare const BUILT_IN_THEMES: {
168
204
  readonly dark: "#2b2a28";
169
205
  };
170
206
  readonly "kumo-focus": {
171
- readonly light: "#5146e5";
172
- readonly dark: "#7f76ee";
173
- };
174
- readonly "kumo-brand": {
175
- readonly light: "#5146e5";
176
- readonly dark: "#6258ea";
177
- };
178
- readonly "kumo-brand-hover": {
179
- readonly light: "#4238c4";
180
- readonly dark: "#5146e5";
207
+ readonly light: "oklch(0.5772 0.2324 260)";
208
+ readonly dark: "oklch(70.7% 0.165 254.624)";
181
209
  };
182
210
  };
211
+ })[];
212
+ /** Densities shipped in `theme-fldr.css`, applied with `data-density="<name>"`. */
213
+ export declare const BUILT_IN_DENSITIES: {
214
+ readonly name: "compact";
215
+ readonly spacing: "0.22rem";
216
+ readonly typography: {
217
+ readonly xs: "11px";
218
+ readonly sm: "12px";
219
+ readonly base: "13px";
220
+ readonly lg: "15px";
221
+ };
183
222
  }[];
184
223
  //#endregion
185
- export type { ColorMode, KumoColorToken, KumoTextToken, KumoTheme, KumoTypographyToken };
224
+ export type { ColorMode, KumoColorToken, KumoDensity, KumoTextToken, KumoTheme, KumoTypographyToken };