@f-ewald/components 1.40.3 → 1.41.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 (86) hide show
  1. package/README.md +11 -3
  2. package/custom-elements.json +788 -97
  3. package/dist/app-shell.js +1 -1
  4. package/dist/app-shell.js.map +1 -1
  5. package/dist/blink-cursor.d.ts +27 -0
  6. package/dist/blink-cursor.d.ts.map +1 -0
  7. package/dist/blink-cursor.js +78 -0
  8. package/dist/blink-cursor.js.map +1 -0
  9. package/dist/code-diff.d.ts +41 -0
  10. package/dist/code-diff.d.ts.map +1 -0
  11. package/dist/code-diff.js +161 -0
  12. package/dist/code-diff.js.map +1 -0
  13. package/dist/comment-label.d.ts +26 -0
  14. package/dist/comment-label.d.ts.map +1 -0
  15. package/dist/comment-label.js +81 -0
  16. package/dist/comment-label.js.map +1 -0
  17. package/dist/confirm-dialog.d.ts +12 -6
  18. package/dist/confirm-dialog.d.ts.map +1 -1
  19. package/dist/confirm-dialog.js +50 -88
  20. package/dist/confirm-dialog.js.map +1 -1
  21. package/dist/index.d.ts +8 -1
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +8 -1
  24. package/dist/index.js.map +1 -1
  25. package/dist/mcp-server.js +1 -1
  26. package/dist/mcp-server.js.map +1 -1
  27. package/dist/modal-dialog.d.ts +16 -13
  28. package/dist/modal-dialog.d.ts.map +1 -1
  29. package/dist/modal-dialog.js +69 -104
  30. package/dist/modal-dialog.js.map +1 -1
  31. package/dist/photo-gallery.js +1 -1
  32. package/dist/photo-gallery.js.map +1 -1
  33. package/dist/price-history-chart.js +1 -1
  34. package/dist/price-history-chart.js.map +1 -1
  35. package/dist/progress-bar.d.ts.map +1 -1
  36. package/dist/progress-bar.js +23 -17
  37. package/dist/progress-bar.js.map +1 -1
  38. package/dist/slide-panel.d.ts +3 -3
  39. package/dist/slide-panel.d.ts.map +1 -1
  40. package/dist/slide-panel.js +38 -22
  41. package/dist/slide-panel.js.map +1 -1
  42. package/dist/stat-strip.d.ts +30 -0
  43. package/dist/stat-strip.d.ts.map +1 -0
  44. package/dist/stat-strip.js +111 -0
  45. package/dist/stat-strip.js.map +1 -0
  46. package/dist/step-ladder.d.ts +46 -0
  47. package/dist/step-ladder.d.ts.map +1 -0
  48. package/dist/step-ladder.js +175 -0
  49. package/dist/step-ladder.js.map +1 -0
  50. package/dist/terminal-block.d.ts +45 -0
  51. package/dist/terminal-block.d.ts.map +1 -0
  52. package/dist/terminal-block.js +113 -0
  53. package/dist/terminal-block.js.map +1 -0
  54. package/dist/toast-notification.d.ts +7 -0
  55. package/dist/toast-notification.d.ts.map +1 -1
  56. package/dist/toast-notification.js +34 -0
  57. package/dist/toast-notification.js.map +1 -1
  58. package/dist/tokens.css +60 -1
  59. package/dist/tokens.d.ts +58 -0
  60. package/dist/tokens.d.ts.map +1 -1
  61. package/dist/tokens.js +135 -0
  62. package/dist/tokens.js.map +1 -1
  63. package/dist/ui-button.js +2 -2
  64. package/dist/ui-button.js.map +1 -1
  65. package/dist/window-chrome.d.ts +34 -0
  66. package/dist/window-chrome.d.ts.map +1 -0
  67. package/dist/window-chrome.js +141 -0
  68. package/dist/window-chrome.js.map +1 -0
  69. package/docs/app-shell.md +1 -1
  70. package/docs/blink-cursor.md +45 -0
  71. package/docs/code-diff.md +64 -0
  72. package/docs/comment-label.md +49 -0
  73. package/docs/confirm-dialog.md +4 -3
  74. package/docs/design-language.md +39 -20
  75. package/docs/layouts/marketing-landing.md +102 -0
  76. package/docs/modal-dialog.md +9 -9
  77. package/docs/photo-gallery.md +1 -1
  78. package/docs/price-history-chart.md +1 -0
  79. package/docs/slide-panel.md +2 -2
  80. package/docs/stat-strip.md +57 -0
  81. package/docs/step-ladder.md +63 -0
  82. package/docs/terminal-block.md +69 -0
  83. package/docs/ui-button.md +2 -0
  84. package/docs/window-chrome.md +64 -0
  85. package/llms.txt +225 -18
  86. package/package.json +1 -1
package/dist/tokens.css CHANGED
@@ -6,6 +6,8 @@
6
6
  --ui-button-background-hover: var(--ui-primary-hover, #4338ca);
7
7
  --ui-button-background-active: var(--ui-button-background, var(--ui-primary, #4f46e5));
8
8
  --ui-button-border: transparent;
9
+ --ui-button-text: var(--ui-on-accent, #ffffff);
10
+ --ui-button-danger-text: var(--ui-on-accent, #ffffff);
9
11
  --ui-button-secondary-background: none;
10
12
  --ui-button-secondary-background-hover: none;
11
13
  --ui-button-secondary-background-active: var(--ui-button-secondary-background, none);
@@ -44,8 +46,10 @@
44
46
  --ui-surface-muted: #f8fafc;
45
47
  --ui-highlight: #fde68a;
46
48
  --ui-tooltip: #0f172a;
49
+ --ui-tooltip-text: #ffffff;
47
50
  --ui-hover-overlay: rgb(255 255 255 / 0.32);
48
51
  --ui-overlay: rgb(15 23 42 / 0.45);
52
+ --ui-overlay-text: #ffffff;
49
53
  --ui-radius: 0.5rem;
50
54
  --ui-radius-sm: 0.25rem;
51
55
  --ui-border-width: 1px;
@@ -74,7 +78,7 @@
74
78
  }
75
79
 
76
80
  @media (prefers-color-scheme: dark) {
77
- :root:not([data-theme="light"]):not([data-theme="gradient"]):not([data-theme="metro"]):not([data-theme="blueprint"]) {
81
+ :root:not([data-theme="light"]):not([data-theme="gradient"]):not([data-theme="metro"]):not([data-theme="blueprint"]):not([data-theme="developer-light"]) {
78
82
  color-scheme: dark;
79
83
  --ui-primary: #6366f1;
80
84
  --ui-primary-hover: #818cf8;
@@ -123,6 +127,34 @@
123
127
  --ui-focus-ring: 0 0 0 3px rgb(99 102 241 / 0.45);
124
128
  }
125
129
 
130
+ :root[data-theme="developer-dark"] {
131
+ color-scheme: dark;
132
+ --ui-primary: #83c167;
133
+ --ui-primary-hover: #a3d488;
134
+ --ui-info: #e08a4a;
135
+ --ui-info-hover: #e8a06a;
136
+ --ui-danger: #e0705f;
137
+ --ui-danger-hover: #e88b7d;
138
+ --ui-success: #83c167;
139
+ --ui-warning: #d8a657;
140
+ --ui-warning-hover: #e0b877;
141
+ --ui-on-accent: #0e0d0b;
142
+ --ui-text: #d8d3c5;
143
+ --ui-text-muted: #8b8270;
144
+ --ui-border: #211f19;
145
+ --ui-surface: #0e0d0b;
146
+ --ui-surface-muted: #161410;
147
+ --ui-highlight: rgb(131 193 103 / 0.25);
148
+ --ui-tooltip: #050504;
149
+ --ui-hover-overlay: rgb(255 255 255 / 0.12);
150
+ --ui-overlay: rgb(5 4 4 / 0.6);
151
+ --ui-focus-ring: 0 0 0 3px rgb(131 193 103 / 0.45);
152
+ --ui-radius: 0.25rem;
153
+ --ui-radius-sm: 0.125rem;
154
+ --ui-numeric: tabular-nums;
155
+ --ui-font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
156
+ }
157
+
126
158
  :root[data-theme="light"] {
127
159
  color-scheme: light;
128
160
  }
@@ -204,3 +236,30 @@
204
236
  --ui-numeric: tabular-nums;
205
237
  --ui-font: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
206
238
  }
239
+
240
+ :root[data-theme="developer-light"] {
241
+ color-scheme: light;
242
+ --ui-text: #1a1813;
243
+ --ui-text-muted: #6b6255;
244
+ --ui-surface: #f3eee1;
245
+ --ui-surface-muted: #e8e1cf;
246
+ --ui-border: #d9d0ba;
247
+ --ui-tooltip: #1a1813;
248
+ --ui-overlay: rgb(26 24 19 / 0.45);
249
+ --ui-hover-overlay: rgb(255 255 255 / 0.32);
250
+ --ui-highlight: #f0dfa0;
251
+ --ui-primary: #457032;
252
+ --ui-primary-hover: #3a6329;
253
+ --ui-info: #8f5124;
254
+ --ui-info-hover: #7a4420;
255
+ --ui-danger: #a8402f;
256
+ --ui-danger-hover: #8c3625;
257
+ --ui-success: #457032;
258
+ --ui-warning: #7c5d24;
259
+ --ui-warning-hover: #5e4419;
260
+ --ui-focus-ring: 0 0 0 3px rgb(69 112 50 / 0.35);
261
+ --ui-radius: 0.25rem;
262
+ --ui-radius-sm: 0.125rem;
263
+ --ui-numeric: tabular-nums;
264
+ --ui-font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
265
+ }
package/dist/tokens.d.ts CHANGED
@@ -110,6 +110,64 @@ export declare const metroTokenValues: Record<string, string>;
110
110
  * otherwise lose its edge entirely.
111
111
  */
112
112
  export declare const blueprintTokenValues: Record<string, string>;
113
+ /**
114
+ * "Developer dark" theme overrides, applied via `data-theme="developer-dark"`
115
+ * on `<html>` (see `generate-tokens-css.mjs`) — a true dark palette, not one
116
+ * layered on the light palette, so it is handled like `"dark"` itself: its own
117
+ * explicit `:root[data-theme="developer-dark"]` block layered over
118
+ * `darkTokenValues` (not the light palette), needing no dark-media-query
119
+ * exclusion (see `scripts/tokens-css.mjs`'s `darkThemes` list, which merges
120
+ * this map over `darkTokenValues` before emitting the block). Only tokens
121
+ * that differ from `darkTokenValues` need to be listed here; anything not
122
+ * repeated falls through to the same dark default `"dark"` itself uses, which
123
+ * is why this list happens to repeat nearly all of `darkTokenValues`'s own
124
+ * keys — a dark theme rarely agrees with the *other* dark theme's colors.
125
+ * Shape/type tokens not present in `darkTokenValues` either (radius-pill,
126
+ * shadow, border-width, label-transform) fall through one level further, to
127
+ * the light palette's defaults, via the ordinary `:root` cascade.
128
+ *
129
+ * Modeled on a real reference (a monospace, editor/terminal-chrome developer
130
+ * tool marketing page): near-black warm ink-well background, a warm off-white
131
+ * foreground, and one accent green used for links, focus rings, and button
132
+ * fills — with dark ink (not white) as the fill's foreground, since the
133
+ * accent itself is light enough to carry dark text at high contrast (8.3:1),
134
+ * matching the reference's own "ink CTA that fills with the accent" button.
135
+ *
136
+ * Like `blueprintTokenValues`, this is a "wide" theme that also retunes shape
137
+ * and type: `--ui-font` retargets to a monospace stack (falls through to the
138
+ * system mono stack with zero webfont, same technique as blueprint's "Space
139
+ * Mono"), corners are small but not squared (2–4px, not 0 — this theme reads
140
+ * as a dark code editor, not blueprint's flattened spec sheet), and
141
+ * `--ui-numeric: tabular-nums` keeps the diff/stat figures from jittering.
142
+ * Unlike `blueprint`, chrome labels stay sentence-case (`--ui-label-transform`
143
+ * is left at its default) — the reference's own section labels are lowercase
144
+ * `snake_case`, not shouted.
145
+ */
146
+ export declare const developerDarkTokenValues: Record<string, string>;
147
+ /**
148
+ * "Developer light" theme overrides, applied via `data-theme="developer-light"`
149
+ * on `<html>` (see `generate-tokens-css.mjs`) — the light counterpart to
150
+ * `developerDarkTokenValues` above. The reference this pair is modeled on
151
+ * never shipped a light mode (its own light-mode toggle is a running joke
152
+ * that refuses to switch); this theme exists anyway, built from the two
153
+ * colors that joke's own tooltip already uses (a warm cream bubble with near-
154
+ * black ink) — the closest thing the reference gives to "what its light mode
155
+ * would have looked like."
156
+ *
157
+ * Layered on the light palette like `gradient`/`metro`/`blueprint` (needs the
158
+ * dark-media-query exclusion, hence `lightThemes` in `generate-tokens-css.mjs`
159
+ * rather than `darkThemes`), so only the differences from `tokenValues` are
160
+ * listed here — same convention as `blueprintTokenValues`.
161
+ *
162
+ * The accent green is darkened one step further than `developerDarkTokenValues`'s
163
+ * brighter green — that brighter green fails contrast against a light paper
164
+ * both as plain text (1.85:1) and as a white-on-fill button (2.15:1); this
165
+ * darker step clears both (5.0:1 text, 5.8:1 white-on-fill), so this theme
166
+ * keeps `--ui-on-accent` at its default white rather than reusing the dark
167
+ * theme's ink-on-accent trick, which does not have enough contrast at this
168
+ * darker shade (3.65:1 unbolded).
169
+ */
170
+ export declare const developerLightTokenValues: Record<string, string>;
113
171
  /**
114
172
  * Historically a shared `:host { --ui-x: var(--ui-x, fallback); } ` block,
115
173
  * re-declaring every token on each component's own host element as a
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8K9C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,C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;GAsBG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA2B5D,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,MAAM,yBAAQ,CAAC"}
package/dist/tokens.js CHANGED
@@ -25,6 +25,14 @@ export const tokenValues = {
25
25
  "--ui-button-background-hover": "var(--ui-primary-hover, #4338ca)",
26
26
  "--ui-button-background-active": "var(--ui-button-background, var(--ui-primary, #4f46e5))",
27
27
  "--ui-button-border": "transparent",
28
+ // The primary/danger fill's own text color, split out from --ui-on-accent
29
+ // (which every button used directly until now): --ui-on-accent means "text
30
+ // on any solid semantic fill" and a theme may need to darken it for a light
31
+ // accent color (see developerDarkTokenValues), but that darkening should
32
+ // only reach the button itself if the theme wants it to. Defaults to
33
+ // --ui-on-accent unchanged, so every existing theme renders identically.
34
+ "--ui-button-text": "var(--ui-on-accent, #ffffff)",
35
+ "--ui-button-danger-text": "var(--ui-on-accent, #ffffff)",
28
36
  // The bordered, transparent-background secondary variant's equivalents —
29
37
  // shared with confirm-dialog's Cancel button, which is the same visual
30
38
  // pattern. Defaults reproduce today's literal secondary styling exactly
@@ -107,8 +115,19 @@ export const tokenValues = {
107
115
  "--ui-surface-muted": "#f8fafc", // slate-50
108
116
  "--ui-highlight": "#fde68a", // amber-200 — transient "just changed" flash
109
117
  "--ui-tooltip": "#0f172a", // slate-900
118
+ // The tooltip's own foreground, kept separate from --ui-on-accent: that
119
+ // token means "text on a solid *semantic* fill" (a button, a toast), which
120
+ // a theme may need to darken if it makes those fills light (see
121
+ // developerDarkTokenValues). --ui-tooltip's own fill is a dedicated dark
122
+ // surface in every theme regardless, so its text stays white unconditionally.
123
+ "--ui-tooltip-text": "#ffffff",
110
124
  "--ui-hover-overlay": "rgb(255 255 255 / 0.32)",
111
125
  "--ui-overlay": "rgb(15 23 42 / 0.45)", // slate-900 / 45%
126
+ // Same reasoning as --ui-tooltip-text: a control drawn directly on the
127
+ // --ui-overlay scrim (photo-gallery's arrow buttons) needs text/icon
128
+ // contrast against that always-dark backdrop, not against whatever a theme
129
+ // repoints --ui-on-accent to for its semantic fills.
130
+ "--ui-overlay-text": "#ffffff",
112
131
  // Shape / depth
113
132
  "--ui-radius": "0.5rem", // rounded-lg
114
133
  "--ui-radius-sm": "0.25rem", // rounded
@@ -406,6 +425,122 @@ export const blueprintTokenValues = {
406
425
  "--ui-numeric": "tabular-nums",
407
426
  "--ui-font": '"Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace',
408
427
  };
428
+ /**
429
+ * "Developer dark" theme overrides, applied via `data-theme="developer-dark"`
430
+ * on `<html>` (see `generate-tokens-css.mjs`) — a true dark palette, not one
431
+ * layered on the light palette, so it is handled like `"dark"` itself: its own
432
+ * explicit `:root[data-theme="developer-dark"]` block layered over
433
+ * `darkTokenValues` (not the light palette), needing no dark-media-query
434
+ * exclusion (see `scripts/tokens-css.mjs`'s `darkThemes` list, which merges
435
+ * this map over `darkTokenValues` before emitting the block). Only tokens
436
+ * that differ from `darkTokenValues` need to be listed here; anything not
437
+ * repeated falls through to the same dark default `"dark"` itself uses, which
438
+ * is why this list happens to repeat nearly all of `darkTokenValues`'s own
439
+ * keys — a dark theme rarely agrees with the *other* dark theme's colors.
440
+ * Shape/type tokens not present in `darkTokenValues` either (radius-pill,
441
+ * shadow, border-width, label-transform) fall through one level further, to
442
+ * the light palette's defaults, via the ordinary `:root` cascade.
443
+ *
444
+ * Modeled on a real reference (a monospace, editor/terminal-chrome developer
445
+ * tool marketing page): near-black warm ink-well background, a warm off-white
446
+ * foreground, and one accent green used for links, focus rings, and button
447
+ * fills — with dark ink (not white) as the fill's foreground, since the
448
+ * accent itself is light enough to carry dark text at high contrast (8.3:1),
449
+ * matching the reference's own "ink CTA that fills with the accent" button.
450
+ *
451
+ * Like `blueprintTokenValues`, this is a "wide" theme that also retunes shape
452
+ * and type: `--ui-font` retargets to a monospace stack (falls through to the
453
+ * system mono stack with zero webfont, same technique as blueprint's "Space
454
+ * Mono"), corners are small but not squared (2–4px, not 0 — this theme reads
455
+ * as a dark code editor, not blueprint's flattened spec sheet), and
456
+ * `--ui-numeric: tabular-nums` keeps the diff/stat figures from jittering.
457
+ * Unlike `blueprint`, chrome labels stay sentence-case (`--ui-label-transform`
458
+ * is left at its default) — the reference's own section labels are lowercase
459
+ * `snake_case`, not shouted.
460
+ */
461
+ export const developerDarkTokenValues = {
462
+ "--ui-primary": "#83c167",
463
+ "--ui-primary-hover": "#a3d488",
464
+ "--ui-info": "#e08a4a",
465
+ "--ui-info-hover": "#e8a06a",
466
+ "--ui-danger": "#e0705f",
467
+ "--ui-danger-hover": "#e88b7d",
468
+ "--ui-success": "#83c167",
469
+ "--ui-warning": "#d8a657",
470
+ "--ui-warning-hover": "#e0b877",
471
+ // Dark ink, not white — the accent itself is light enough (8.3:1 against
472
+ // it) to carry dark text, and that ink-on-green fill is the reference's own
473
+ // CTA look.
474
+ "--ui-on-accent": "#0e0d0b",
475
+ "--ui-text": "#d8d3c5",
476
+ "--ui-text-muted": "#8b8270",
477
+ "--ui-border": "#211f19",
478
+ "--ui-surface": "#0e0d0b",
479
+ // Lighter than --ui-surface, same direction as darkTokenValues' own
480
+ // surface-muted (an elevated panel reads lighter, not darker, once the base
481
+ // is already near-black).
482
+ "--ui-surface-muted": "#161410",
483
+ // A translucent accent wash rather than a hand-picked solid, so the flash
484
+ // stays legible without depending on exactly which dark literal the surface
485
+ // ends up at.
486
+ "--ui-highlight": "rgb(131 193 103 / 0.25)",
487
+ "--ui-tooltip": "#050504",
488
+ "--ui-hover-overlay": "rgb(255 255 255 / 0.12)",
489
+ "--ui-overlay": "rgb(5 4 4 / 0.6)",
490
+ "--ui-focus-ring": "0 0 0 3px rgb(131 193 103 / 0.45)",
491
+ "--ui-radius": "0.25rem",
492
+ "--ui-radius-sm": "0.125rem",
493
+ "--ui-numeric": "tabular-nums",
494
+ "--ui-font": '"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace',
495
+ };
496
+ /**
497
+ * "Developer light" theme overrides, applied via `data-theme="developer-light"`
498
+ * on `<html>` (see `generate-tokens-css.mjs`) — the light counterpart to
499
+ * `developerDarkTokenValues` above. The reference this pair is modeled on
500
+ * never shipped a light mode (its own light-mode toggle is a running joke
501
+ * that refuses to switch); this theme exists anyway, built from the two
502
+ * colors that joke's own tooltip already uses (a warm cream bubble with near-
503
+ * black ink) — the closest thing the reference gives to "what its light mode
504
+ * would have looked like."
505
+ *
506
+ * Layered on the light palette like `gradient`/`metro`/`blueprint` (needs the
507
+ * dark-media-query exclusion, hence `lightThemes` in `generate-tokens-css.mjs`
508
+ * rather than `darkThemes`), so only the differences from `tokenValues` are
509
+ * listed here — same convention as `blueprintTokenValues`.
510
+ *
511
+ * The accent green is darkened one step further than `developerDarkTokenValues`'s
512
+ * brighter green — that brighter green fails contrast against a light paper
513
+ * both as plain text (1.85:1) and as a white-on-fill button (2.15:1); this
514
+ * darker step clears both (5.0:1 text, 5.8:1 white-on-fill), so this theme
515
+ * keeps `--ui-on-accent` at its default white rather than reusing the dark
516
+ * theme's ink-on-accent trick, which does not have enough contrast at this
517
+ * darker shade (3.65:1 unbolded).
518
+ */
519
+ export const developerLightTokenValues = {
520
+ "--ui-text": "#1a1813",
521
+ "--ui-text-muted": "#6b6255",
522
+ "--ui-surface": "#f3eee1",
523
+ "--ui-surface-muted": "#e8e1cf",
524
+ "--ui-border": "#d9d0ba",
525
+ "--ui-tooltip": "#1a1813",
526
+ "--ui-overlay": "rgb(26 24 19 / 0.45)",
527
+ "--ui-hover-overlay": "rgb(255 255 255 / 0.32)",
528
+ "--ui-highlight": "#f0dfa0",
529
+ "--ui-primary": "#457032",
530
+ "--ui-primary-hover": "#3a6329",
531
+ "--ui-info": "#8f5124",
532
+ "--ui-info-hover": "#7a4420",
533
+ "--ui-danger": "#a8402f",
534
+ "--ui-danger-hover": "#8c3625",
535
+ "--ui-success": "#457032",
536
+ "--ui-warning": "#7c5d24",
537
+ "--ui-warning-hover": "#5e4419",
538
+ "--ui-focus-ring": "0 0 0 3px rgb(69 112 50 / 0.35)",
539
+ "--ui-radius": "0.25rem",
540
+ "--ui-radius-sm": "0.125rem",
541
+ "--ui-numeric": "tabular-nums",
542
+ "--ui-font": '"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace',
543
+ };
409
544
  /**
410
545
  * Historically a shared `:host { --ui-x: var(--ui-x, fallback); } ` block,
411
546
  * re-declaring every token on each component's own host element as a
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAA2B;IACjD,SAAS;IACT,cAAc,EAAE,SAAS,EAAE,aAAa;IACxC,oBAAoB,EAAE,SAAS,EAAE,aAAa;IAC9C,4EAA4E;IAC5E,2EAA2E;IAC3E,0EAA0E;IAC1E,uEAAuE;IACvE,yEAAyE;IACzE,wEAAwE;IACxE,sEAAsE;IACtE,uEAAuE;IACvE,wEAAwE;IACxE,wEAAwE;IACxE,wBAAwB,EAAE,4BAA4B;IACtD,8BAA8B,EAAE,kCAAkC;IAClE,+BAA+B,EAAE,yDAAyD;IAC1F,oBAAoB,EAAE,aAAa;IACnC,yEAAyE;IACzE,uEAAuE;IACvE,wEAAwE;IACxE,oEAAoE;IACpE,oEAAoE;IACpE,kEAAkE;IAClE,kCAAkC,EAAE,MAAM;IAC1C,wCAAwC,EAAE,MAAM;IAChD,yCAAyC,EAAE,6CAA6C;IACxF,8BAA8B,EAAE,2BAA2B;IAC3D,oCAAoC,EAAE,+BAA+B;IACrE,8DAA8D;IAC9D,wEAAwE;IACxE,8DAA8D;IAC9D,qEAAqE;IACrE,wEAAwE;IACxE,iEAAiE;IACjE,qCAAqC,EAAE,kCAAkC;IACzE,2EAA2E;IAC3E,2E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,EAAE,SAAS;IACnC,8BAA8B,EAAE,SAAS;IACzC,+BAA+B,EAAE,SAAS;IAC1C,oBAAoB,EAAE,SAAS;IAC/B,2BAA2B,EAAE,SAAS;IACtC,0EAA0E;IAC1E,kEAAkE;IAClE,8BAA8B,EAAE,SAAS;IACzC,oCAAoC,EAAE,SAAS;IAC/C,wCAAwC,EAAE,SAAS;IACnD,qCAAqC,EAAE,SAAS;IAChD,wEAAwE;IACxE,yEAAyE;IACzE,oEAAoE;IACpE,oBAAoB,EAAE,SAAS;IAE/B,aAAa,EAAE,GAAG;IAClB,gBAAgB,EAAE,GAAG;IACrB,kBAAkB,EAAE,GAAG;IACvB,oBAAoB,EAAE,GAAG;IACzB,aAAa,EAAE,kCAAkC;IACjD,gBAAgB,EAAE,qBAAqB;IAEvC,mBAAmB,EAAE,OAAO;IAC5B,sBAAsB,EAAE,WAAW;IACnC,cAAc,EAAE,cAAc;IAC9B,WAAW,EACT,gFAAgF;CACnF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,EAAE,CAAC","sourcesContent":["import { css } from \"lit\";\n\n/**\n * Design token values, sourced from Tailwind v4's default theme palette.\n * Each entry maps a `--ui-*` custom property name to its default value.\n * These are the same values baked in as `var(--ui-*, <fallback>)` fallbacks\n * throughout component styles, so components render correctly with zero\n * external CSS. Consumers may override any of these by setting the custom\n * property on `:root` or an ancestor element (see `tokens.css`).\n */\nexport const tokenValues: Record<string, string> = {\n // Colors\n \"--ui-primary\": \"#4f46e5\", // indigo-600\n \"--ui-primary-hover\": \"#4338ca\", // indigo-700\n // Button-specific background/border hooks: default to the flat --ui-primary\n // / --ui-danger tokens above unchanged, so those stay the single source of\n // truth for every other component. Overriding just these lets a theme opt\n // ui-button into a gradient (or any other) background without touching\n // component markup; --ui-button-border/--ui-button-danger-border default\n // to transparent (today's look) and are meant to be paired with a shade\n // darker than the gradient's dark stop when one is set. The `-active`\n // variants default to whatever `-background` already resolved to (so a\n // solid override still applies while pressed) — a gradient theme should\n // set them to the same stops in reverse, for a pressed/\"indented\" look.\n \"--ui-button-background\": \"var(--ui-primary, #4f46e5)\",\n \"--ui-button-background-hover\": \"var(--ui-primary-hover, #4338ca)\",\n \"--ui-button-background-active\": \"var(--ui-button-background, var(--ui-primary, #4f46e5))\",\n \"--ui-button-border\": \"transparent\",\n // The bordered, transparent-background secondary variant's equivalents —\n // shared with confirm-dialog's Cancel button, which is the same visual\n // pattern. Defaults reproduce today's literal secondary styling exactly\n // (no background at any state, border colors matching --ui-border /\n // --ui-text-muted), so a theme only needs to override these to make\n // secondary/Cancel buttons match a primary/danger gradient theme.\n \"--ui-button-secondary-background\": \"none\",\n \"--ui-button-secondary-background-hover\": \"none\",\n \"--ui-button-secondary-background-active\": \"var(--ui-button-secondary-background, none)\",\n \"--ui-button-secondary-border\": \"var(--ui-border, #e2e8f0)\",\n \"--ui-button-secondary-border-hover\": \"var(--ui-text-muted, #64748b)\",\n // A muted-gray surface used wherever something already paints\n // --ui-surface-muted as a state indicator in flat mode — button-group's\n // unchecked-segment hover, pagination-nav's button hover, and\n // radio-cards/radio-pills' checked background — which is a genuinely\n // different default than secondary's borderless flat hover, so it can't\n // reuse --ui-button-secondary-background-hover's \"none\" default.\n \"--ui-button-secondary-surface-muted\": \"var(--ui-surface-muted, #f8fafc)\",\n // Shared by both primary/danger — a purely cosmetic gloss/legibility pair,\n // not color-specific, so one token covers both variants. `-highlight` is a\n // full box-shadow value (e.g. `inset 0 1px 0 rgb(255 255 255 / 0.35)`) for\n // a glossy top edge, defaulting to a fully transparent (so invisible)\n // shadow rather than the keyword `none` — some usages combine it with\n // another literal shadow in a comma-separated list, where a bare `none`\n // item is invalid CSS and would zero out the *whole* declaration.\n // `-text-shadow` is a full text-shadow value for label legibility against\n // a gradient's lighter stop, always used standalone, so it keeps `none`.\n \"--ui-button-highlight\": \"0 0 0 0 transparent\",\n \"--ui-button-text-shadow\": \"none\",\n // A solid stand-in for the same accent, for spots that can't render a\n // background gradient at all — a native <input>'s accent-color only\n // accepts a plain color, and a hard-stop background gradient (e.g.\n // range-slider's filled track) can't nest another gradient inside its own\n // color-stop list. Consumers that theme the buttons into a gradient should\n // set this to the gradient's dark stop, so these non-button accents (radio\n // selection indicators, the range-slider track/thumb) stay visually\n // coordinated with it even though they can't literally paint a gradient.\n \"--ui-button-accent\": \"var(--ui-primary, #4f46e5)\",\n \"--ui-info\": \"#0ea5e9\", // sky-500\n \"--ui-info-hover\": \"#0284c7\", // sky-600\n \"--ui-danger\": \"#dc2626\", // red-600\n \"--ui-danger-hover\": \"#b91c1c\", // red-700\n \"--ui-button-danger-background\": \"var(--ui-danger, #dc2626)\",\n \"--ui-button-danger-background-hover\": \"var(--ui-danger-hover, #b91c1c)\",\n \"--ui-button-danger-background-active\":\n \"var(--ui-button-danger-background, var(--ui-danger, #dc2626))\",\n \"--ui-button-danger-border\": \"transparent\",\n \"--ui-success\": \"#16a34a\", // green-600\n \"--ui-warning\": \"#d97706\", // amber-600\n \"--ui-warning-hover\": \"#b45309\", // amber-700\n // toast-notification's per-variant background hooks: default to the flat\n // --ui-success/--ui-danger/--ui-info/--ui-warning tokens unchanged, so\n // those stay the single source of truth for every other component —\n // the same pattern as --ui-button-background/--ui-button-danger-background\n // above. `-highlight`/`-text-shadow` are the same glossy-top-edge /\n // legibility-shadow pair as --ui-button-highlight/--ui-button-text-shadow,\n // kept as separate tokens so a theme can gloss toasts and buttons\n // independently.\n \"--ui-toast-success-background\": \"var(--ui-success, #16a34a)\",\n \"--ui-toast-error-background\": \"var(--ui-danger, #dc2626)\",\n \"--ui-toast-info-background\": \"var(--ui-info, #0ea5e9)\",\n \"--ui-toast-warning-background\": \"var(--ui-warning, #d97706)\",\n \"--ui-toast-highlight\": \"0 0 0 0 transparent\",\n \"--ui-toast-text-shadow\": \"none\",\n // AI accent sweep — the four stops of the animated multi-hue ring\n // ui-button's `ai` modifier draws around a button (and the only place a\n // rainbow reads as meaning \"this action is AI-powered\" rather than a\n // semantic state). Ordered around the color wheel and looping back to\n // stop 1, so the sweep is seamless; --ui-ai-2 is --ui-primary's own\n // indigo, anchoring the ring to the rest of the palette. Overriding these\n // four retunes every AI button at once.\n \"--ui-ai-1\": \"#38bdf8\", // sky-400\n \"--ui-ai-2\": \"#6366f1\", // indigo-500\n \"--ui-ai-3\": \"#d946ef\", // fuchsia-500\n \"--ui-ai-4\": \"#fbbf24\", // amber-400\n \"--ui-on-accent\": \"#ffffff\",\n \"--ui-text\": \"#0f172a\", // slate-900\n \"--ui-text-muted\": \"#64748b\", // slate-500\n \"--ui-border\": \"#e2e8f0\", // slate-200\n \"--ui-surface\": \"#ffffff\", // white\n \"--ui-surface-muted\": \"#f8fafc\", // slate-50\n \"--ui-highlight\": \"#fde68a\", // amber-200 — transient \"just changed\" flash\n \"--ui-tooltip\": \"#0f172a\", // slate-900\n \"--ui-hover-overlay\": \"rgb(255 255 255 / 0.32)\",\n \"--ui-overlay\": \"rgb(15 23 42 / 0.45)\", // slate-900 / 45%\n\n // Shape / depth\n \"--ui-radius\": \"0.5rem\", // rounded-lg\n \"--ui-radius-sm\": \"0.25rem\", // rounded\n // The width of a themeable surface/control border. Spacing is deliberately\n // untokenized, but a border is chrome rather than layout: the `blueprint`\n // theme's whole structure is carried by hairline rules instead of shadows,\n // and it needs those rules one step heavier than the default. Defaults to\n // the literal 1px every component used before, so nothing renders\n // differently until a theme overrides it. Only genuine surface/control\n // borders read this — forced-colors `CanvasText` borders and purely\n // decorative literals (a slider thumb's white ring, a tab's 2px underline)\n // keep their own widths, since those aren't the theme's structural rules.\n // Anything with a fixed height/width and a themeable border must also set\n // `box-sizing: border-box`, or a heavier border grows it past the shared\n // 2rem control target.\n \"--ui-border-width\": \"1px\",\n // Deliberate pill/circle shapes — a chip, an avatar, a slider thumb, a dot.\n // Tokenized rather than hardcoded so a theme that squares the design system\n // (metro) can reach them too; a literal 9999px/50% silently opts that shape\n // out of every theme. Use these only where the shape is the point, not as a\n // heavier --ui-radius.\n \"--ui-radius-pill\": \"9999px\",\n \"--ui-radius-circle\": \"50%\",\n \"--ui-shadow\":\n \"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)\", // shadow-md\n \"--ui-shadow-lg\":\n \"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)\", // shadow-xl\n \"--ui-focus-ring\": \"0 0 0 3px rgb(79 70 229 / 0.35)\",\n\n // Type\n \"--ui-font\":\n 'ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"',\n \"--ui-font-mono\":\n \"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace\",\n \"--ui-font-size-lg\": \"1rem\", // text-base\n \"--ui-font-size\": \"0.875rem\", // text-sm\n \"--ui-font-size-sm\": \"0.75rem\", // text-xs\n \"--ui-font-size-xs\": \"0.6875rem\",\n\n // Font weights — the only four weights the system uses.\n \"--ui-font-weight-regular\": \"400\",\n \"--ui-font-weight-medium\": \"500\",\n \"--ui-font-weight-semibold\": \"600\",\n \"--ui-font-weight-bold\": \"700\",\n\n // Line heights — glyph (icon/marker box), tight (headings), normal (body).\n \"--ui-line-height-glyph\": \"1\",\n \"--ui-line-height-tight\": \"1.25\",\n \"--ui-line-height-normal\": \"1.5\",\n\n // Letter spacing / tracking — default and the single widened step.\n \"--ui-tracking-normal\": \"0\",\n \"--ui-tracking-wide\": \"0.04em\",\n\n // Casing of chrome micro-labels — the small, wide-tracked labels that name a\n // region rather than carry content (a `frame-box` legend, an `app-sidebar`\n // section heading, a `stat-meter` caption). Defaults to `none`, today's\n // sentence case, so nothing changes until a theme sets it; the `blueprint`\n // theme sets `uppercase`, where signage-style labels are the point. Never\n // apply this to user-supplied content — shouting someone's data is not a\n // theme's decision, and `text-transform` is a presentational lie that\n // survives copy/paste as the original casing anyway.\n \"--ui-label-transform\": \"none\",\n\n // Numeral rendering for figures that change in place or stack into a column\n // — a score, a page number, a running clock. Defaults to `normal`\n // (proportional, as before); `tabular-nums` stops digits from jittering\n // horizontally as they tick, which the `blueprint` theme's spec-sheet\n // aesthetic wants everywhere.\n \"--ui-numeric\": \"normal\",\n};\n\n/**\n * Dark-mode overrides for the same `--ui-*` custom properties, applied by\n * `tokens.css` via `@media (prefers-color-scheme: dark)` and `[data-theme]`\n * (see generate-tokens-css.mjs). Same Tailwind slate scale as the light\n * palette, inverted, with primary/danger/success lightened one step (500\n * instead of 600) for sufficient contrast against dark surfaces. Shape/type\n * tokens are theme-independent and not repeated here.\n */\nexport const darkTokenValues: Record<string, string> = {\n \"--ui-primary\": \"#6366f1\", // indigo-500\n \"--ui-primary-hover\": \"#818cf8\", // indigo-400\n \"--ui-info\": \"#38bdf8\", // sky-400\n \"--ui-info-hover\": \"#7dd3fc\", // sky-300\n \"--ui-danger\": \"#ef4444\", // red-500\n \"--ui-danger-hover\": \"#f87171\", // red-400\n \"--ui-success\": \"#22c55e\", // green-500\n \"--ui-warning\": \"#f59e0b\", // amber-500\n \"--ui-warning-hover\": \"#fbbf24\", // amber-400\n \"--ui-on-accent\": \"#ffffff\",\n \"--ui-text\": \"#f1f5f9\", // slate-100\n \"--ui-text-muted\": \"#94a3b8\", // slate-400\n \"--ui-border\": \"#334155\", // slate-700\n \"--ui-surface\": \"#0f172a\", // slate-900\n \"--ui-surface-muted\": \"#1e293b\", // slate-800\n \"--ui-highlight\": \"#854d0e\", // amber-800 — transient \"just changed\" flash on dark\n \"--ui-tooltip\": \"#020617\", // slate-950\n \"--ui-hover-overlay\": \"rgb(255 255 255 / 0.12)\",\n \"--ui-overlay\": \"rgb(2 6 23 / 0.6)\", // slate-950 / 60%\n \"--ui-focus-ring\": \"0 0 0 3px rgb(99 102 241 / 0.45)\",\n};\n\n/**\n * \"Gradient\" theme overrides, applied via `data-theme=\"gradient\"` on `<html>`\n * (see `generate-tokens-css.mjs`) — forces `color-scheme: light` like the\n * `\"light\"` override and layers a glossy gradient look on top of the flat\n * light palette, using exactly the `--ui-button-*`/`--ui-button-danger-*`/\n * `--ui-button-secondary-*` hooks `ui-button.ts` already reads (see that\n * file's doc comment), plus the `--ui-toast-*` hooks `toast-notification.ts`\n * reads (see its doc comment). Every other token (`--ui-text`, `--ui-surface`,\n * …) is left at its light-mode default — this theme only glosses buttons and\n * toasts by design. Each variant's gradient runs light-to-dark top-to-bottom\n * (`180deg`) across one Tailwind shade step lighter/darker than the flat\n * token so it still reads as \"the same color, glossy\" rather than a\n * different hue; `-hover` shifts the whole pair one shade lighter, `-active`\n * reverses the two stops for a pressed/\"indented\" look, and `-border` is a\n * shade darker than the gradient's dark stop for a defining edge.\n */\nexport const gradientTokenValues: Record<string, string> = {\n \"--ui-button-background\": \"linear-gradient(180deg, #6366f1 0%, #4f46e5 100%)\", // indigo-500 -> 600\n \"--ui-button-background-hover\": \"linear-gradient(180deg, #818cf8 0%, #6366f1 100%)\", // indigo-400 -> 500\n \"--ui-button-background-active\": \"linear-gradient(180deg, #4f46e5 0%, #6366f1 100%)\", // reversed 600 -> 500\n \"--ui-button-border\": \"#4338ca\", // indigo-700\n \"--ui-button-danger-background\": \"linear-gradient(180deg, #ef4444 0%, #dc2626 100%)\", // red-500 -> 600\n \"--ui-button-danger-background-hover\": \"linear-gradient(180deg, #f87171 0%, #ef4444 100%)\", // red-400 -> 500\n \"--ui-button-danger-background-active\": \"linear-gradient(180deg, #dc2626 0%, #ef4444 100%)\", // reversed 600 -> 500\n \"--ui-button-danger-border\": \"#b91c1c\", // red-700\n // Secondary stays neutral gray rather than a saturated hue, matching its\n // flat \"not the primary action\" role, but one shade darker than the\n // original white -> slate-50 pairing: at a small button size, that pair\n // read as flat white with no visible gradient at all. slate-50 -> 100\n // keeps enough contrast to actually look like a gradient while still\n // being clearly lighter/quieter than primary/danger. Border stays\n // slate-300 (a step past the flat slate-200) so its edge still reads\n // against the fill.\n \"--ui-button-secondary-background\": \"linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%)\", // slate-50 -> 100\n \"--ui-button-secondary-background-hover\": \"linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%)\", // slate-100 -> 200\n \"--ui-button-secondary-background-active\": \"linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%)\", // reversed 100 -> 50\n \"--ui-button-secondary-border\": \"#cbd5e1\", // slate-300\n \"--ui-button-secondary-border-hover\": \"#94a3b8\", // slate-400\n // button-group's unchecked segments, pagination-nav's prev/next buttons, and\n // radio-cards/radio-pills' checked background read this rather than\n // --ui-button-secondary-background (see tokens above). Left flat they were\n // the one \"secondary\" surface that stayed matte while every actual secondary\n // button turned glossy, so it tracks the hover gradient rather than a\n // separate literal that could drift out of step with it.\n \"--ui-button-secondary-surface-muted\": \"var(--ui-button-secondary-background-hover)\",\n \"--ui-button-highlight\": \"inset 0 1px 0 rgb(255 255 255 / 0.35)\", // glossy top edge\n \"--ui-button-text-shadow\": \"0 1px 1px rgb(0 0 0 / 0.25)\", // legibility on primary/danger\n \"--ui-button-accent\": \"#4338ca\", // indigo-700, matches --ui-button-border\n // toast-notification: same light-to-dark, one-shade-step gradient\n // convention as the button variants above; the bottom stop always matches\n // the flat --ui-success/--ui-danger/--ui-info/--ui-warning value exactly.\n \"--ui-toast-success-background\": \"linear-gradient(180deg, #22c55e 0%, #16a34a 100%)\", // green-500 -> 600\n \"--ui-toast-error-background\": \"linear-gradient(180deg, #ef4444 0%, #dc2626 100%)\", // red-500 -> 600\n \"--ui-toast-info-background\": \"linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%)\", // sky-400 -> 500\n \"--ui-toast-warning-background\": \"linear-gradient(180deg, #f59e0b 0%, #d97706 100%)\", // amber-500 -> 600\n \"--ui-toast-highlight\": \"inset 0 1px 0 rgb(255 255 255 / 0.35)\", // glossy top edge, same as --ui-button-highlight\n \"--ui-toast-text-shadow\": \"0 1px 1px rgb(0 0 0 / 0.25)\", // legibility, same as --ui-button-text-shadow\n};\n\n/**\n * \"Metro\" theme overrides, applied via `data-theme=\"metro\"` on `<html>` (see\n * `generate-tokens-css.mjs`) — forces `color-scheme: light` like the `\"light\"`\n * and `\"gradient\"` overrides, and strips the roundness and depth off the flat\n * light palette to leave hard-edged surfaces over a blue accent, after the\n * dense square-cornered look of the early social bookmarking sites.\n *\n * This is the first theme to override shape rather than only color, so the\n * \"shape/type tokens are theme-independent\" rule `darkTokenValues` notes above\n * holds for every theme except this one (see `docs/design-language.md`).\n * Squaring the design system means squaring the deliberate pill and circle\n * shapes too — chips, avatars, dots, slider thumbs — which is why those read\n * `--ui-radius-pill`/`--ui-radius-circle` rather than hardcoding `9999px`/`50%`\n * (a literal would silently opt that shape out of the theme).\n *\n * One residual is genuinely out of reach: `price-history-chart` rounds its bars\n * with an SVG `rx` presentation attribute, which cannot take a `var()`, so\n * those stay slightly rounded under metro.\n *\n * The shadows flatten to a hairline ring rather than to `none`. Dropping them\n * outright would leave `slide-panel` — the only overlay with no border of its\n * own — as an invisible white-on-white edge; every other consumer of\n * `--ui-shadow*` either pairs it with `1px solid var(--ui-border)` or applies\n * it on hover/active over an already-bordered control. A hard 1px ring keeps\n * that separation while removing the blur and the faked depth.\n */\nexport const metroTokenValues: Record<string, string> = {\n \"--ui-primary\": \"#3274d0\", // the del.icio.us blue; no Tailwind equivalent\n \"--ui-primary-hover\": \"#2559a8\",\n \"--ui-focus-ring\": \"0 0 0 2px #3274d0\", // solid and crisp, not the default 3px translucent ring\n \"--ui-radius\": \"0\",\n \"--ui-radius-sm\": \"0\",\n \"--ui-radius-pill\": \"0\",\n \"--ui-radius-circle\": \"0\",\n // Hairline rings (slate-900 at low alpha) rather than blurred drop shadows:\n // separation without depth. -lg is a touch stronger, matching the default\n // pair's relative weighting.\n \"--ui-shadow\": \"0 0 0 1px rgb(15 23 42 / 0.12)\",\n \"--ui-shadow-lg\": \"0 0 0 1px rgb(15 23 42 / 0.18)\",\n};\n\n/**\n * \"Blueprint\" theme overrides, applied via `data-theme=\"blueprint\"` on `<html>`\n * (see `generate-tokens-css.mjs`) — forces `color-scheme: light` like every\n * other non-dark theme, and restyles the light palette as a technical catalog\n * / spec sheet: warm near-black ink on white paper, one pure-blue accent,\n * square corners, and structure carried entirely by hairline rules instead of\n * shadows.\n *\n * It is the widest theme in the system, and the reason three token axes exist\n * that no earlier theme needed:\n *\n * - `--ui-font` is retargeted to a monospace stack. `darkTokenValues` notes\n * that shape and type tokens are theme-independent; `metro` already broke\n * that for shape, and this breaks it for the type *family* only. Type\n * *metrics* (size, weight, line height) remain unthemed in every theme —\n * they encode hierarchy, which is not a stylistic choice. \"Space Mono\"\n * leads the stack purely so a consumer who loads that webfont gets the\n * reference face automatically; with no external CSS at all it falls\n * straight through to the same system mono stack `--ui-font-mono` uses, so\n * the theme still renders correctly on its own.\n * - `--ui-border-width` goes to `1.5px`. Every border in this theme is doing\n * the work a shadow does elsewhere, and at 1px those rules read as a faint\n * table rather than as drawn structure.\n * - `--ui-label-transform` goes to `uppercase`, which is what makes chrome\n * micro-labels read as signage/spec-sheet keys. Only labels that name a\n * region or column carry this — never user content.\n * - `--ui-numeric` goes to `tabular-nums`, so figures line up in a column and\n * do not jitter as they change.\n *\n * Buttons are deliberately NOT the accent color. `--ui-primary` stays pure\n * blue because it drives accents everywhere else (active tab underlines,\n * selected states, links, the certification-style tints), but the primary\n * button fill is overridden to ink through the `--ui-button-*` hooks and only\n * turns blue on hover — a black-on-white CTA that lights up is the\n * catalog-print look, and a large pure-blue fill next to blue accents would\n * flatten the two roles into one. That split is exactly what those hooks\n * exist for (see `gradientTokenValues` above for the same technique).\n *\n * Semantic `danger`/`success`/`warning` keep their default hues: they encode\n * meaning rather than style, and the reference's blue-only restraint is an\n * editorial choice a component library cannot make on a consumer's behalf.\n * `--ui-info` is the exception — it is \"neutral notice\", which in this theme\n * is precisely the accent, and the default sky blue would otherwise sit a few\n * degrees off the pure blue beside it and read as a mistake.\n *\n * Shadows flatten to a hard ink ring rather than to `none`, for the same\n * reason `metro` does it: `slide-panel` has no border of its own and would\n * otherwise lose its edge entirely.\n */\nexport const blueprintTokenValues: Record<string, string> = {\n // Ink over paper. --ui-text-muted is the same ink at ~65% over white rather\n // than a neutral gray, so the quiet text stays in the same warm family\n // instead of turning blue-gray beside the accent.\n \"--ui-text\": \"#17160f\",\n \"--ui-text-muted\": \"#686763\",\n \"--ui-surface\": \"#ffffff\",\n \"--ui-surface-muted\": \"#f0f0f0\",\n // ~55% ink over white. Darker than it looks like it needs to be, because a\n // border is often the only thing bounding a white-on-white control, and\n // WCAG 1.4.11 wants 3:1 against both adjacent surfaces for that: this is\n // 3.55:1 on white and 3.12:1 on the muted surface. The lighter ~40% ink\n // (#a2a29f) reads better but only reaches 2.56:1, and 1.5px of extra weight\n // does not buy an exemption. Still short of fully black, which at this width\n // would turn every bordered surface into a hard box.\n \"--ui-border\": \"#898883\",\n \"--ui-tooltip\": \"#17160f\",\n \"--ui-overlay\": \"rgb(23 22 15 / 0.45)\",\n // The \"just changed\" flash tints toward the accent instead of amber, which\n // is the one warm hue this palette has no room for.\n \"--ui-highlight\": \"#dcdcff\",\n\n \"--ui-primary\": \"#0000ff\",\n \"--ui-primary-hover\": \"#0000cc\",\n \"--ui-info\": \"#0000ff\",\n \"--ui-info-hover\": \"#0000cc\",\n \"--ui-on-accent\": \"#ffffff\",\n // Solid and crisp at the reference's own 2px, not the default translucent\n // 3px halo — a blurred ring is the one soft edge this theme has nowhere to\n // put.\n \"--ui-focus-ring\": \"0 0 0 2px #0000ff\",\n\n // Ink CTA that lights up blue on hover, and inverts its two stops while\n // pressed. The border is ink at every state so the button keeps a defining\n // edge even once the fill goes blue.\n \"--ui-button-background\": \"#17160f\",\n \"--ui-button-background-hover\": \"#0000ff\",\n \"--ui-button-background-active\": \"#0000cc\",\n \"--ui-button-border\": \"#17160f\",\n \"--ui-button-danger-border\": \"#b91c1c\",\n // Secondary is the reference's ghost button: no fill, ink border, a paper\n // wash on hover and an accent border to echo the primary's hover.\n \"--ui-button-secondary-border\": \"#17160f\",\n \"--ui-button-secondary-border-hover\": \"#0000ff\",\n \"--ui-button-secondary-background-hover\": \"#f0f0f0\",\n \"--ui-button-secondary-surface-muted\": \"#f0f0f0\",\n // Non-button accents that can only take a plain color (a native input's\n // accent-color, range-slider's track/thumb) follow --ui-primary, not the\n // ink button fill — those are selection marks, not calls to action.\n \"--ui-button-accent\": \"#0000ff\",\n\n \"--ui-radius\": \"0\",\n \"--ui-radius-sm\": \"0\",\n \"--ui-radius-pill\": \"0\",\n \"--ui-radius-circle\": \"0\",\n \"--ui-shadow\": \"0 0 0 1.5px rgb(23 22 15 / 0.24)\",\n \"--ui-shadow-lg\": \"0 0 0 1.5px #17160f\",\n\n \"--ui-border-width\": \"1.5px\",\n \"--ui-label-transform\": \"uppercase\",\n \"--ui-numeric\": \"tabular-nums\",\n \"--ui-font\":\n '\"Space Mono\", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace',\n};\n\n/**\n * Historically a shared `:host { --ui-x: var(--ui-x, fallback); } ` block,\n * re-declaring every token on each component's own host element as a\n * \"materialize the inherited value, or this fallback\" trick. That pattern\n * turned out to be a genuine bug, not a working default: browsers treat\n * `--ui-x: var(--ui-x, ...)` on `:host` as a self-referencing declaration\n * that computes to the guaranteed-invalid value REGARDLESS of what an\n * ancestor (e.g. `:root`) set — the host's own `:host` rule wins the cascade\n * over the ancestor's, so this dropped whatever the app actually set and\n * silently substituted the component's own fallback everywhere. It went\n * unnoticed because every component's fallback happened to equal the\n * intended light-mode value — dark mode (a real, different value at\n * `:root`) exposed it immediately (colors rendering as if no theme were\n * applied at all). Fix: don't redeclare tokens on `:host` — plain\n * inheritance already carries `:root`'s values into every shadow root\n * correctly, and every component already has its own `var(--ui-x, fallback)`\n * at each point of use, so nothing here is needed for the \"zero external\n * CSS\" default to keep working. Kept as an empty export so the existing\n * `static override styles = [tokens, css\\`...\\`]` import in every component\n * keeps compiling.\n */\nexport const tokens = css``;\n"]}
1
+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IAC3C,cAAc,EAAE,SAAS;IACzB,oBAAoB,EAAE,yBAAyB;IAC/C,cAAc,EAAE,kBAAkB;IAClC,iBAAiB,EAAE,mCAAmC;IAEtD,aAAa,EAAE,SAAS;IACxB,gBAAgB,EAAE,UAAU;IAC5B,cAAc,EAAE,cAAc;IAC9B,WAAW,EACT,oFAAoF;CACvF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAA2B;IAC/D,WAAW,EAAE,SAAS;IACtB,iBAAiB,EAAE,SAAS;IAC5B,cAAc,EAAE,SAAS;IACzB,oBAAoB,EAAE,SAAS;IAC/B,aAAa,EAAE,SAAS;IACxB,cAAc,EAAE,SAAS;IACzB,cAAc,EAAE,sBAAsB;IACtC,oBAAoB,EAAE,yBAAyB;IAC/C,gBAAgB,EAAE,SAAS;IAE3B,cAAc,EAAE,SAAS;IACzB,oBAAoB,EAAE,SAAS;IAC/B,WAAW,EAAE,SAAS;IACtB,iBAAiB,EAAE,SAAS;IAC5B,aAAa,EAAE,SAAS;IACxB,mBAAmB,EAAE,SAAS;IAC9B,cAAc,EAAE,SAAS;IACzB,cAAc,EAAE,SAAS;IACzB,oBAAoB,EAAE,SAAS;IAC/B,iBAAiB,EAAE,iCAAiC;IAEpD,aAAa,EAAE,SAAS;IACxB,gBAAgB,EAAE,UAAU;IAC5B,cAAc,EAAE,cAAc;IAC9B,WAAW,EACT,oFAAoF;CACvF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,EAAE,CAAC","sourcesContent":["import { css } from \"lit\";\n\n/**\n * Design token values, sourced from Tailwind v4's default theme palette.\n * Each entry maps a `--ui-*` custom property name to its default value.\n * These are the same values baked in as `var(--ui-*, <fallback>)` fallbacks\n * throughout component styles, so components render correctly with zero\n * external CSS. Consumers may override any of these by setting the custom\n * property on `:root` or an ancestor element (see `tokens.css`).\n */\nexport const tokenValues: Record<string, string> = {\n // Colors\n \"--ui-primary\": \"#4f46e5\", // indigo-600\n \"--ui-primary-hover\": \"#4338ca\", // indigo-700\n // Button-specific background/border hooks: default to the flat --ui-primary\n // / --ui-danger tokens above unchanged, so those stay the single source of\n // truth for every other component. Overriding just these lets a theme opt\n // ui-button into a gradient (or any other) background without touching\n // component markup; --ui-button-border/--ui-button-danger-border default\n // to transparent (today's look) and are meant to be paired with a shade\n // darker than the gradient's dark stop when one is set. The `-active`\n // variants default to whatever `-background` already resolved to (so a\n // solid override still applies while pressed) — a gradient theme should\n // set them to the same stops in reverse, for a pressed/\"indented\" look.\n \"--ui-button-background\": \"var(--ui-primary, #4f46e5)\",\n \"--ui-button-background-hover\": \"var(--ui-primary-hover, #4338ca)\",\n \"--ui-button-background-active\": \"var(--ui-button-background, var(--ui-primary, #4f46e5))\",\n \"--ui-button-border\": \"transparent\",\n // The primary/danger fill's own text color, split out from --ui-on-accent\n // (which every button used directly until now): --ui-on-accent means \"text\n // on any solid semantic fill\" and a theme may need to darken it for a light\n // accent color (see developerDarkTokenValues), but that darkening should\n // only reach the button itself if the theme wants it to. Defaults to\n // --ui-on-accent unchanged, so every existing theme renders identically.\n \"--ui-button-text\": \"var(--ui-on-accent, #ffffff)\",\n \"--ui-button-danger-text\": \"var(--ui-on-accent, #ffffff)\",\n // The bordered, transparent-background secondary variant's equivalents —\n // shared with confirm-dialog's Cancel button, which is the same visual\n // pattern. Defaults reproduce today's literal secondary styling exactly\n // (no background at any state, border colors matching --ui-border /\n // --ui-text-muted), so a theme only needs to override these to make\n // secondary/Cancel buttons match a primary/danger gradient theme.\n \"--ui-button-secondary-background\": \"none\",\n \"--ui-button-secondary-background-hover\": \"none\",\n \"--ui-button-secondary-background-active\": \"var(--ui-button-secondary-background, none)\",\n \"--ui-button-secondary-border\": \"var(--ui-border, #e2e8f0)\",\n \"--ui-button-secondary-border-hover\": \"var(--ui-text-muted, #64748b)\",\n // A muted-gray surface used wherever something already paints\n // --ui-surface-muted as a state indicator in flat mode — button-group's\n // unchecked-segment hover, pagination-nav's button hover, and\n // radio-cards/radio-pills' checked background — which is a genuinely\n // different default than secondary's borderless flat hover, so it can't\n // reuse --ui-button-secondary-background-hover's \"none\" default.\n \"--ui-button-secondary-surface-muted\": \"var(--ui-surface-muted, #f8fafc)\",\n // Shared by both primary/danger — a purely cosmetic gloss/legibility pair,\n // not color-specific, so one token covers both variants. `-highlight` is a\n // full box-shadow value (e.g. `inset 0 1px 0 rgb(255 255 255 / 0.35)`) for\n // a glossy top edge, defaulting to a fully transparent (so invisible)\n // shadow rather than the keyword `none` — some usages combine it with\n // another literal shadow in a comma-separated list, where a bare `none`\n // item is invalid CSS and would zero out the *whole* declaration.\n // `-text-shadow` is a full text-shadow value for label legibility against\n // a gradient's lighter stop, always used standalone, so it keeps `none`.\n \"--ui-button-highlight\": \"0 0 0 0 transparent\",\n \"--ui-button-text-shadow\": \"none\",\n // A solid stand-in for the same accent, for spots that can't render a\n // background gradient at all — a native <input>'s accent-color only\n // accepts a plain color, and a hard-stop background gradient (e.g.\n // range-slider's filled track) can't nest another gradient inside its own\n // color-stop list. Consumers that theme the buttons into a gradient should\n // set this to the gradient's dark stop, so these non-button accents (radio\n // selection indicators, the range-slider track/thumb) stay visually\n // coordinated with it even though they can't literally paint a gradient.\n \"--ui-button-accent\": \"var(--ui-primary, #4f46e5)\",\n \"--ui-info\": \"#0ea5e9\", // sky-500\n \"--ui-info-hover\": \"#0284c7\", // sky-600\n \"--ui-danger\": \"#dc2626\", // red-600\n \"--ui-danger-hover\": \"#b91c1c\", // red-700\n \"--ui-button-danger-background\": \"var(--ui-danger, #dc2626)\",\n \"--ui-button-danger-background-hover\": \"var(--ui-danger-hover, #b91c1c)\",\n \"--ui-button-danger-background-active\":\n \"var(--ui-button-danger-background, var(--ui-danger, #dc2626))\",\n \"--ui-button-danger-border\": \"transparent\",\n \"--ui-success\": \"#16a34a\", // green-600\n \"--ui-warning\": \"#d97706\", // amber-600\n \"--ui-warning-hover\": \"#b45309\", // amber-700\n // toast-notification's per-variant background hooks: default to the flat\n // --ui-success/--ui-danger/--ui-info/--ui-warning tokens unchanged, so\n // those stay the single source of truth for every other component —\n // the same pattern as --ui-button-background/--ui-button-danger-background\n // above. `-highlight`/`-text-shadow` are the same glossy-top-edge /\n // legibility-shadow pair as --ui-button-highlight/--ui-button-text-shadow,\n // kept as separate tokens so a theme can gloss toasts and buttons\n // independently.\n \"--ui-toast-success-background\": \"var(--ui-success, #16a34a)\",\n \"--ui-toast-error-background\": \"var(--ui-danger, #dc2626)\",\n \"--ui-toast-info-background\": \"var(--ui-info, #0ea5e9)\",\n \"--ui-toast-warning-background\": \"var(--ui-warning, #d97706)\",\n \"--ui-toast-highlight\": \"0 0 0 0 transparent\",\n \"--ui-toast-text-shadow\": \"none\",\n // AI accent sweep — the four stops of the animated multi-hue ring\n // ui-button's `ai` modifier draws around a button (and the only place a\n // rainbow reads as meaning \"this action is AI-powered\" rather than a\n // semantic state). Ordered around the color wheel and looping back to\n // stop 1, so the sweep is seamless; --ui-ai-2 is --ui-primary's own\n // indigo, anchoring the ring to the rest of the palette. Overriding these\n // four retunes every AI button at once.\n \"--ui-ai-1\": \"#38bdf8\", // sky-400\n \"--ui-ai-2\": \"#6366f1\", // indigo-500\n \"--ui-ai-3\": \"#d946ef\", // fuchsia-500\n \"--ui-ai-4\": \"#fbbf24\", // amber-400\n \"--ui-on-accent\": \"#ffffff\",\n \"--ui-text\": \"#0f172a\", // slate-900\n \"--ui-text-muted\": \"#64748b\", // slate-500\n \"--ui-border\": \"#e2e8f0\", // slate-200\n \"--ui-surface\": \"#ffffff\", // white\n \"--ui-surface-muted\": \"#f8fafc\", // slate-50\n \"--ui-highlight\": \"#fde68a\", // amber-200 — transient \"just changed\" flash\n \"--ui-tooltip\": \"#0f172a\", // slate-900\n // The tooltip's own foreground, kept separate from --ui-on-accent: that\n // token means \"text on a solid *semantic* fill\" (a button, a toast), which\n // a theme may need to darken if it makes those fills light (see\n // developerDarkTokenValues). --ui-tooltip's own fill is a dedicated dark\n // surface in every theme regardless, so its text stays white unconditionally.\n \"--ui-tooltip-text\": \"#ffffff\",\n \"--ui-hover-overlay\": \"rgb(255 255 255 / 0.32)\",\n \"--ui-overlay\": \"rgb(15 23 42 / 0.45)\", // slate-900 / 45%\n // Same reasoning as --ui-tooltip-text: a control drawn directly on the\n // --ui-overlay scrim (photo-gallery's arrow buttons) needs text/icon\n // contrast against that always-dark backdrop, not against whatever a theme\n // repoints --ui-on-accent to for its semantic fills.\n \"--ui-overlay-text\": \"#ffffff\",\n\n // Shape / depth\n \"--ui-radius\": \"0.5rem\", // rounded-lg\n \"--ui-radius-sm\": \"0.25rem\", // rounded\n // The width of a themeable surface/control border. Spacing is deliberately\n // untokenized, but a border is chrome rather than layout: the `blueprint`\n // theme's whole structure is carried by hairline rules instead of shadows,\n // and it needs those rules one step heavier than the default. Defaults to\n // the literal 1px every component used before, so nothing renders\n // differently until a theme overrides it. Only genuine surface/control\n // borders read this — forced-colors `CanvasText` borders and purely\n // decorative literals (a slider thumb's white ring, a tab's 2px underline)\n // keep their own widths, since those aren't the theme's structural rules.\n // Anything with a fixed height/width and a themeable border must also set\n // `box-sizing: border-box`, or a heavier border grows it past the shared\n // 2rem control target.\n \"--ui-border-width\": \"1px\",\n // Deliberate pill/circle shapes — a chip, an avatar, a slider thumb, a dot.\n // Tokenized rather than hardcoded so a theme that squares the design system\n // (metro) can reach them too; a literal 9999px/50% silently opts that shape\n // out of every theme. Use these only where the shape is the point, not as a\n // heavier --ui-radius.\n \"--ui-radius-pill\": \"9999px\",\n \"--ui-radius-circle\": \"50%\",\n \"--ui-shadow\":\n \"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)\", // shadow-md\n \"--ui-shadow-lg\":\n \"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)\", // shadow-xl\n \"--ui-focus-ring\": \"0 0 0 3px rgb(79 70 229 / 0.35)\",\n\n // Type\n \"--ui-font\":\n 'ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"',\n \"--ui-font-mono\":\n \"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace\",\n \"--ui-font-size-lg\": \"1rem\", // text-base\n \"--ui-font-size\": \"0.875rem\", // text-sm\n \"--ui-font-size-sm\": \"0.75rem\", // text-xs\n \"--ui-font-size-xs\": \"0.6875rem\",\n\n // Font weights — the only four weights the system uses.\n \"--ui-font-weight-regular\": \"400\",\n \"--ui-font-weight-medium\": \"500\",\n \"--ui-font-weight-semibold\": \"600\",\n \"--ui-font-weight-bold\": \"700\",\n\n // Line heights — glyph (icon/marker box), tight (headings), normal (body).\n \"--ui-line-height-glyph\": \"1\",\n \"--ui-line-height-tight\": \"1.25\",\n \"--ui-line-height-normal\": \"1.5\",\n\n // Letter spacing / tracking — default and the single widened step.\n \"--ui-tracking-normal\": \"0\",\n \"--ui-tracking-wide\": \"0.04em\",\n\n // Casing of chrome micro-labels — the small, wide-tracked labels that name a\n // region rather than carry content (a `frame-box` legend, an `app-sidebar`\n // section heading, a `stat-meter` caption). Defaults to `none`, today's\n // sentence case, so nothing changes until a theme sets it; the `blueprint`\n // theme sets `uppercase`, where signage-style labels are the point. Never\n // apply this to user-supplied content — shouting someone's data is not a\n // theme's decision, and `text-transform` is a presentational lie that\n // survives copy/paste as the original casing anyway.\n \"--ui-label-transform\": \"none\",\n\n // Numeral rendering for figures that change in place or stack into a column\n // — a score, a page number, a running clock. Defaults to `normal`\n // (proportional, as before); `tabular-nums` stops digits from jittering\n // horizontally as they tick, which the `blueprint` theme's spec-sheet\n // aesthetic wants everywhere.\n \"--ui-numeric\": \"normal\",\n};\n\n/**\n * Dark-mode overrides for the same `--ui-*` custom properties, applied by\n * `tokens.css` via `@media (prefers-color-scheme: dark)` and `[data-theme]`\n * (see generate-tokens-css.mjs). Same Tailwind slate scale as the light\n * palette, inverted, with primary/danger/success lightened one step (500\n * instead of 600) for sufficient contrast against dark surfaces. Shape/type\n * tokens are theme-independent and not repeated here.\n */\nexport const darkTokenValues: Record<string, string> = {\n \"--ui-primary\": \"#6366f1\", // indigo-500\n \"--ui-primary-hover\": \"#818cf8\", // indigo-400\n \"--ui-info\": \"#38bdf8\", // sky-400\n \"--ui-info-hover\": \"#7dd3fc\", // sky-300\n \"--ui-danger\": \"#ef4444\", // red-500\n \"--ui-danger-hover\": \"#f87171\", // red-400\n \"--ui-success\": \"#22c55e\", // green-500\n \"--ui-warning\": \"#f59e0b\", // amber-500\n \"--ui-warning-hover\": \"#fbbf24\", // amber-400\n \"--ui-on-accent\": \"#ffffff\",\n \"--ui-text\": \"#f1f5f9\", // slate-100\n \"--ui-text-muted\": \"#94a3b8\", // slate-400\n \"--ui-border\": \"#334155\", // slate-700\n \"--ui-surface\": \"#0f172a\", // slate-900\n \"--ui-surface-muted\": \"#1e293b\", // slate-800\n \"--ui-highlight\": \"#854d0e\", // amber-800 — transient \"just changed\" flash on dark\n \"--ui-tooltip\": \"#020617\", // slate-950\n \"--ui-hover-overlay\": \"rgb(255 255 255 / 0.12)\",\n \"--ui-overlay\": \"rgb(2 6 23 / 0.6)\", // slate-950 / 60%\n \"--ui-focus-ring\": \"0 0 0 3px rgb(99 102 241 / 0.45)\",\n};\n\n/**\n * \"Gradient\" theme overrides, applied via `data-theme=\"gradient\"` on `<html>`\n * (see `generate-tokens-css.mjs`) — forces `color-scheme: light` like the\n * `\"light\"` override and layers a glossy gradient look on top of the flat\n * light palette, using exactly the `--ui-button-*`/`--ui-button-danger-*`/\n * `--ui-button-secondary-*` hooks `ui-button.ts` already reads (see that\n * file's doc comment), plus the `--ui-toast-*` hooks `toast-notification.ts`\n * reads (see its doc comment). Every other token (`--ui-text`, `--ui-surface`,\n * …) is left at its light-mode default — this theme only glosses buttons and\n * toasts by design. Each variant's gradient runs light-to-dark top-to-bottom\n * (`180deg`) across one Tailwind shade step lighter/darker than the flat\n * token so it still reads as \"the same color, glossy\" rather than a\n * different hue; `-hover` shifts the whole pair one shade lighter, `-active`\n * reverses the two stops for a pressed/\"indented\" look, and `-border` is a\n * shade darker than the gradient's dark stop for a defining edge.\n */\nexport const gradientTokenValues: Record<string, string> = {\n \"--ui-button-background\": \"linear-gradient(180deg, #6366f1 0%, #4f46e5 100%)\", // indigo-500 -> 600\n \"--ui-button-background-hover\": \"linear-gradient(180deg, #818cf8 0%, #6366f1 100%)\", // indigo-400 -> 500\n \"--ui-button-background-active\": \"linear-gradient(180deg, #4f46e5 0%, #6366f1 100%)\", // reversed 600 -> 500\n \"--ui-button-border\": \"#4338ca\", // indigo-700\n \"--ui-button-danger-background\": \"linear-gradient(180deg, #ef4444 0%, #dc2626 100%)\", // red-500 -> 600\n \"--ui-button-danger-background-hover\": \"linear-gradient(180deg, #f87171 0%, #ef4444 100%)\", // red-400 -> 500\n \"--ui-button-danger-background-active\": \"linear-gradient(180deg, #dc2626 0%, #ef4444 100%)\", // reversed 600 -> 500\n \"--ui-button-danger-border\": \"#b91c1c\", // red-700\n // Secondary stays neutral gray rather than a saturated hue, matching its\n // flat \"not the primary action\" role, but one shade darker than the\n // original white -> slate-50 pairing: at a small button size, that pair\n // read as flat white with no visible gradient at all. slate-50 -> 100\n // keeps enough contrast to actually look like a gradient while still\n // being clearly lighter/quieter than primary/danger. Border stays\n // slate-300 (a step past the flat slate-200) so its edge still reads\n // against the fill.\n \"--ui-button-secondary-background\": \"linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%)\", // slate-50 -> 100\n \"--ui-button-secondary-background-hover\": \"linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%)\", // slate-100 -> 200\n \"--ui-button-secondary-background-active\": \"linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%)\", // reversed 100 -> 50\n \"--ui-button-secondary-border\": \"#cbd5e1\", // slate-300\n \"--ui-button-secondary-border-hover\": \"#94a3b8\", // slate-400\n // button-group's unchecked segments, pagination-nav's prev/next buttons, and\n // radio-cards/radio-pills' checked background read this rather than\n // --ui-button-secondary-background (see tokens above). Left flat they were\n // the one \"secondary\" surface that stayed matte while every actual secondary\n // button turned glossy, so it tracks the hover gradient rather than a\n // separate literal that could drift out of step with it.\n \"--ui-button-secondary-surface-muted\": \"var(--ui-button-secondary-background-hover)\",\n \"--ui-button-highlight\": \"inset 0 1px 0 rgb(255 255 255 / 0.35)\", // glossy top edge\n \"--ui-button-text-shadow\": \"0 1px 1px rgb(0 0 0 / 0.25)\", // legibility on primary/danger\n \"--ui-button-accent\": \"#4338ca\", // indigo-700, matches --ui-button-border\n // toast-notification: same light-to-dark, one-shade-step gradient\n // convention as the button variants above; the bottom stop always matches\n // the flat --ui-success/--ui-danger/--ui-info/--ui-warning value exactly.\n \"--ui-toast-success-background\": \"linear-gradient(180deg, #22c55e 0%, #16a34a 100%)\", // green-500 -> 600\n \"--ui-toast-error-background\": \"linear-gradient(180deg, #ef4444 0%, #dc2626 100%)\", // red-500 -> 600\n \"--ui-toast-info-background\": \"linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%)\", // sky-400 -> 500\n \"--ui-toast-warning-background\": \"linear-gradient(180deg, #f59e0b 0%, #d97706 100%)\", // amber-500 -> 600\n \"--ui-toast-highlight\": \"inset 0 1px 0 rgb(255 255 255 / 0.35)\", // glossy top edge, same as --ui-button-highlight\n \"--ui-toast-text-shadow\": \"0 1px 1px rgb(0 0 0 / 0.25)\", // legibility, same as --ui-button-text-shadow\n};\n\n/**\n * \"Metro\" theme overrides, applied via `data-theme=\"metro\"` on `<html>` (see\n * `generate-tokens-css.mjs`) — forces `color-scheme: light` like the `\"light\"`\n * and `\"gradient\"` overrides, and strips the roundness and depth off the flat\n * light palette to leave hard-edged surfaces over a blue accent, after the\n * dense square-cornered look of the early social bookmarking sites.\n *\n * This is the first theme to override shape rather than only color, so the\n * \"shape/type tokens are theme-independent\" rule `darkTokenValues` notes above\n * holds for every theme except this one (see `docs/design-language.md`).\n * Squaring the design system means squaring the deliberate pill and circle\n * shapes too — chips, avatars, dots, slider thumbs — which is why those read\n * `--ui-radius-pill`/`--ui-radius-circle` rather than hardcoding `9999px`/`50%`\n * (a literal would silently opt that shape out of the theme).\n *\n * One residual is genuinely out of reach: `price-history-chart` rounds its bars\n * with an SVG `rx` presentation attribute, which cannot take a `var()`, so\n * those stay slightly rounded under metro.\n *\n * The shadows flatten to a hairline ring rather than to `none`. Dropping them\n * outright would leave `slide-panel` — the only overlay with no border of its\n * own — as an invisible white-on-white edge; every other consumer of\n * `--ui-shadow*` either pairs it with `1px solid var(--ui-border)` or applies\n * it on hover/active over an already-bordered control. A hard 1px ring keeps\n * that separation while removing the blur and the faked depth.\n */\nexport const metroTokenValues: Record<string, string> = {\n \"--ui-primary\": \"#3274d0\", // the del.icio.us blue; no Tailwind equivalent\n \"--ui-primary-hover\": \"#2559a8\",\n \"--ui-focus-ring\": \"0 0 0 2px #3274d0\", // solid and crisp, not the default 3px translucent ring\n \"--ui-radius\": \"0\",\n \"--ui-radius-sm\": \"0\",\n \"--ui-radius-pill\": \"0\",\n \"--ui-radius-circle\": \"0\",\n // Hairline rings (slate-900 at low alpha) rather than blurred drop shadows:\n // separation without depth. -lg is a touch stronger, matching the default\n // pair's relative weighting.\n \"--ui-shadow\": \"0 0 0 1px rgb(15 23 42 / 0.12)\",\n \"--ui-shadow-lg\": \"0 0 0 1px rgb(15 23 42 / 0.18)\",\n};\n\n/**\n * \"Blueprint\" theme overrides, applied via `data-theme=\"blueprint\"` on `<html>`\n * (see `generate-tokens-css.mjs`) — forces `color-scheme: light` like every\n * other non-dark theme, and restyles the light palette as a technical catalog\n * / spec sheet: warm near-black ink on white paper, one pure-blue accent,\n * square corners, and structure carried entirely by hairline rules instead of\n * shadows.\n *\n * It is the widest theme in the system, and the reason three token axes exist\n * that no earlier theme needed:\n *\n * - `--ui-font` is retargeted to a monospace stack. `darkTokenValues` notes\n * that shape and type tokens are theme-independent; `metro` already broke\n * that for shape, and this breaks it for the type *family* only. Type\n * *metrics* (size, weight, line height) remain unthemed in every theme —\n * they encode hierarchy, which is not a stylistic choice. \"Space Mono\"\n * leads the stack purely so a consumer who loads that webfont gets the\n * reference face automatically; with no external CSS at all it falls\n * straight through to the same system mono stack `--ui-font-mono` uses, so\n * the theme still renders correctly on its own.\n * - `--ui-border-width` goes to `1.5px`. Every border in this theme is doing\n * the work a shadow does elsewhere, and at 1px those rules read as a faint\n * table rather than as drawn structure.\n * - `--ui-label-transform` goes to `uppercase`, which is what makes chrome\n * micro-labels read as signage/spec-sheet keys. Only labels that name a\n * region or column carry this — never user content.\n * - `--ui-numeric` goes to `tabular-nums`, so figures line up in a column and\n * do not jitter as they change.\n *\n * Buttons are deliberately NOT the accent color. `--ui-primary` stays pure\n * blue because it drives accents everywhere else (active tab underlines,\n * selected states, links, the certification-style tints), but the primary\n * button fill is overridden to ink through the `--ui-button-*` hooks and only\n * turns blue on hover — a black-on-white CTA that lights up is the\n * catalog-print look, and a large pure-blue fill next to blue accents would\n * flatten the two roles into one. That split is exactly what those hooks\n * exist for (see `gradientTokenValues` above for the same technique).\n *\n * Semantic `danger`/`success`/`warning` keep their default hues: they encode\n * meaning rather than style, and the reference's blue-only restraint is an\n * editorial choice a component library cannot make on a consumer's behalf.\n * `--ui-info` is the exception — it is \"neutral notice\", which in this theme\n * is precisely the accent, and the default sky blue would otherwise sit a few\n * degrees off the pure blue beside it and read as a mistake.\n *\n * Shadows flatten to a hard ink ring rather than to `none`, for the same\n * reason `metro` does it: `slide-panel` has no border of its own and would\n * otherwise lose its edge entirely.\n */\nexport const blueprintTokenValues: Record<string, string> = {\n // Ink over paper. --ui-text-muted is the same ink at ~65% over white rather\n // than a neutral gray, so the quiet text stays in the same warm family\n // instead of turning blue-gray beside the accent.\n \"--ui-text\": \"#17160f\",\n \"--ui-text-muted\": \"#686763\",\n \"--ui-surface\": \"#ffffff\",\n \"--ui-surface-muted\": \"#f0f0f0\",\n // ~55% ink over white. Darker than it looks like it needs to be, because a\n // border is often the only thing bounding a white-on-white control, and\n // WCAG 1.4.11 wants 3:1 against both adjacent surfaces for that: this is\n // 3.55:1 on white and 3.12:1 on the muted surface. The lighter ~40% ink\n // (#a2a29f) reads better but only reaches 2.56:1, and 1.5px of extra weight\n // does not buy an exemption. Still short of fully black, which at this width\n // would turn every bordered surface into a hard box.\n \"--ui-border\": \"#898883\",\n \"--ui-tooltip\": \"#17160f\",\n \"--ui-overlay\": \"rgb(23 22 15 / 0.45)\",\n // The \"just changed\" flash tints toward the accent instead of amber, which\n // is the one warm hue this palette has no room for.\n \"--ui-highlight\": \"#dcdcff\",\n\n \"--ui-primary\": \"#0000ff\",\n \"--ui-primary-hover\": \"#0000cc\",\n \"--ui-info\": \"#0000ff\",\n \"--ui-info-hover\": \"#0000cc\",\n \"--ui-on-accent\": \"#ffffff\",\n // Solid and crisp at the reference's own 2px, not the default translucent\n // 3px halo — a blurred ring is the one soft edge this theme has nowhere to\n // put.\n \"--ui-focus-ring\": \"0 0 0 2px #0000ff\",\n\n // Ink CTA that lights up blue on hover, and inverts its two stops while\n // pressed. The border is ink at every state so the button keeps a defining\n // edge even once the fill goes blue.\n \"--ui-button-background\": \"#17160f\",\n \"--ui-button-background-hover\": \"#0000ff\",\n \"--ui-button-background-active\": \"#0000cc\",\n \"--ui-button-border\": \"#17160f\",\n \"--ui-button-danger-border\": \"#b91c1c\",\n // Secondary is the reference's ghost button: no fill, ink border, a paper\n // wash on hover and an accent border to echo the primary's hover.\n \"--ui-button-secondary-border\": \"#17160f\",\n \"--ui-button-secondary-border-hover\": \"#0000ff\",\n \"--ui-button-secondary-background-hover\": \"#f0f0f0\",\n \"--ui-button-secondary-surface-muted\": \"#f0f0f0\",\n // Non-button accents that can only take a plain color (a native input's\n // accent-color, range-slider's track/thumb) follow --ui-primary, not the\n // ink button fill — those are selection marks, not calls to action.\n \"--ui-button-accent\": \"#0000ff\",\n\n \"--ui-radius\": \"0\",\n \"--ui-radius-sm\": \"0\",\n \"--ui-radius-pill\": \"0\",\n \"--ui-radius-circle\": \"0\",\n \"--ui-shadow\": \"0 0 0 1.5px rgb(23 22 15 / 0.24)\",\n \"--ui-shadow-lg\": \"0 0 0 1.5px #17160f\",\n\n \"--ui-border-width\": \"1.5px\",\n \"--ui-label-transform\": \"uppercase\",\n \"--ui-numeric\": \"tabular-nums\",\n \"--ui-font\":\n '\"Space Mono\", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace',\n};\n\n/**\n * \"Developer dark\" theme overrides, applied via `data-theme=\"developer-dark\"`\n * on `<html>` (see `generate-tokens-css.mjs`) — a true dark palette, not one\n * layered on the light palette, so it is handled like `\"dark\"` itself: its own\n * explicit `:root[data-theme=\"developer-dark\"]` block layered over\n * `darkTokenValues` (not the light palette), needing no dark-media-query\n * exclusion (see `scripts/tokens-css.mjs`'s `darkThemes` list, which merges\n * this map over `darkTokenValues` before emitting the block). Only tokens\n * that differ from `darkTokenValues` need to be listed here; anything not\n * repeated falls through to the same dark default `\"dark\"` itself uses, which\n * is why this list happens to repeat nearly all of `darkTokenValues`'s own\n * keys — a dark theme rarely agrees with the *other* dark theme's colors.\n * Shape/type tokens not present in `darkTokenValues` either (radius-pill,\n * shadow, border-width, label-transform) fall through one level further, to\n * the light palette's defaults, via the ordinary `:root` cascade.\n *\n * Modeled on a real reference (a monospace, editor/terminal-chrome developer\n * tool marketing page): near-black warm ink-well background, a warm off-white\n * foreground, and one accent green used for links, focus rings, and button\n * fills — with dark ink (not white) as the fill's foreground, since the\n * accent itself is light enough to carry dark text at high contrast (8.3:1),\n * matching the reference's own \"ink CTA that fills with the accent\" button.\n *\n * Like `blueprintTokenValues`, this is a \"wide\" theme that also retunes shape\n * and type: `--ui-font` retargets to a monospace stack (falls through to the\n * system mono stack with zero webfont, same technique as blueprint's \"Space\n * Mono\"), corners are small but not squared (2–4px, not 0 — this theme reads\n * as a dark code editor, not blueprint's flattened spec sheet), and\n * `--ui-numeric: tabular-nums` keeps the diff/stat figures from jittering.\n * Unlike `blueprint`, chrome labels stay sentence-case (`--ui-label-transform`\n * is left at its default) — the reference's own section labels are lowercase\n * `snake_case`, not shouted.\n */\nexport const developerDarkTokenValues: Record<string, string> = {\n \"--ui-primary\": \"#83c167\",\n \"--ui-primary-hover\": \"#a3d488\",\n \"--ui-info\": \"#e08a4a\",\n \"--ui-info-hover\": \"#e8a06a\",\n \"--ui-danger\": \"#e0705f\",\n \"--ui-danger-hover\": \"#e88b7d\",\n \"--ui-success\": \"#83c167\",\n \"--ui-warning\": \"#d8a657\",\n \"--ui-warning-hover\": \"#e0b877\",\n // Dark ink, not white — the accent itself is light enough (8.3:1 against\n // it) to carry dark text, and that ink-on-green fill is the reference's own\n // CTA look.\n \"--ui-on-accent\": \"#0e0d0b\",\n \"--ui-text\": \"#d8d3c5\",\n \"--ui-text-muted\": \"#8b8270\",\n \"--ui-border\": \"#211f19\",\n \"--ui-surface\": \"#0e0d0b\",\n // Lighter than --ui-surface, same direction as darkTokenValues' own\n // surface-muted (an elevated panel reads lighter, not darker, once the base\n // is already near-black).\n \"--ui-surface-muted\": \"#161410\",\n // A translucent accent wash rather than a hand-picked solid, so the flash\n // stays legible without depending on exactly which dark literal the surface\n // ends up at.\n \"--ui-highlight\": \"rgb(131 193 103 / 0.25)\",\n \"--ui-tooltip\": \"#050504\",\n \"--ui-hover-overlay\": \"rgb(255 255 255 / 0.12)\",\n \"--ui-overlay\": \"rgb(5 4 4 / 0.6)\",\n \"--ui-focus-ring\": \"0 0 0 3px rgb(131 193 103 / 0.45)\",\n\n \"--ui-radius\": \"0.25rem\",\n \"--ui-radius-sm\": \"0.125rem\",\n \"--ui-numeric\": \"tabular-nums\",\n \"--ui-font\":\n '\"JetBrains Mono\", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace',\n};\n\n/**\n * \"Developer light\" theme overrides, applied via `data-theme=\"developer-light\"`\n * on `<html>` (see `generate-tokens-css.mjs`) — the light counterpart to\n * `developerDarkTokenValues` above. The reference this pair is modeled on\n * never shipped a light mode (its own light-mode toggle is a running joke\n * that refuses to switch); this theme exists anyway, built from the two\n * colors that joke's own tooltip already uses (a warm cream bubble with near-\n * black ink) — the closest thing the reference gives to \"what its light mode\n * would have looked like.\"\n *\n * Layered on the light palette like `gradient`/`metro`/`blueprint` (needs the\n * dark-media-query exclusion, hence `lightThemes` in `generate-tokens-css.mjs`\n * rather than `darkThemes`), so only the differences from `tokenValues` are\n * listed here — same convention as `blueprintTokenValues`.\n *\n * The accent green is darkened one step further than `developerDarkTokenValues`'s\n * brighter green — that brighter green fails contrast against a light paper\n * both as plain text (1.85:1) and as a white-on-fill button (2.15:1); this\n * darker step clears both (5.0:1 text, 5.8:1 white-on-fill), so this theme\n * keeps `--ui-on-accent` at its default white rather than reusing the dark\n * theme's ink-on-accent trick, which does not have enough contrast at this\n * darker shade (3.65:1 unbolded).\n */\nexport const developerLightTokenValues: Record<string, string> = {\n \"--ui-text\": \"#1a1813\",\n \"--ui-text-muted\": \"#6b6255\",\n \"--ui-surface\": \"#f3eee1\",\n \"--ui-surface-muted\": \"#e8e1cf\",\n \"--ui-border\": \"#d9d0ba\",\n \"--ui-tooltip\": \"#1a1813\",\n \"--ui-overlay\": \"rgb(26 24 19 / 0.45)\",\n \"--ui-hover-overlay\": \"rgb(255 255 255 / 0.32)\",\n \"--ui-highlight\": \"#f0dfa0\",\n\n \"--ui-primary\": \"#457032\",\n \"--ui-primary-hover\": \"#3a6329\",\n \"--ui-info\": \"#8f5124\",\n \"--ui-info-hover\": \"#7a4420\",\n \"--ui-danger\": \"#a8402f\",\n \"--ui-danger-hover\": \"#8c3625\",\n \"--ui-success\": \"#457032\",\n \"--ui-warning\": \"#7c5d24\",\n \"--ui-warning-hover\": \"#5e4419\",\n \"--ui-focus-ring\": \"0 0 0 3px rgb(69 112 50 / 0.35)\",\n\n \"--ui-radius\": \"0.25rem\",\n \"--ui-radius-sm\": \"0.125rem\",\n \"--ui-numeric\": \"tabular-nums\",\n \"--ui-font\":\n '\"JetBrains Mono\", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace',\n};\n\n/**\n * Historically a shared `:host { --ui-x: var(--ui-x, fallback); } ` block,\n * re-declaring every token on each component's own host element as a\n * \"materialize the inherited value, or this fallback\" trick. That pattern\n * turned out to be a genuine bug, not a working default: browsers treat\n * `--ui-x: var(--ui-x, ...)` on `:host` as a self-referencing declaration\n * that computes to the guaranteed-invalid value REGARDLESS of what an\n * ancestor (e.g. `:root`) set — the host's own `:host` rule wins the cascade\n * over the ancestor's, so this dropped whatever the app actually set and\n * silently substituted the component's own fallback everywhere. It went\n * unnoticed because every component's fallback happened to equal the\n * intended light-mode value — dark mode (a real, different value at\n * `:root`) exposed it immediately (colors rendering as if no theme were\n * applied at all). Fix: don't redeclare tokens on `:host` — plain\n * inheritance already carries `:root`'s values into every shadow root\n * correctly, and every component already has its own `var(--ui-x, fallback)`\n * at each point of use, so nothing here is needed for the \"zero external\n * CSS\" default to keep working. Kept as an empty export so the existing\n * `static override styles = [tokens, css\\`...\\`]` import in every component\n * keeps compiling.\n */\nexport const tokens = css``;\n"]}
package/dist/ui-button.js CHANGED
@@ -125,7 +125,7 @@ let UiButton = class UiButton extends LitElement {
125
125
  .btn.primary {
126
126
  background: var(--ui-button-background, var(--ui-primary, #4f46e5));
127
127
  border-color: var(--ui-button-border, transparent);
128
- color: var(--ui-on-accent, #ffffff);
128
+ color: var(--ui-button-text, var(--ui-on-accent, #ffffff));
129
129
  box-shadow: var(--ui-button-highlight, 0 0 0 0 transparent);
130
130
  text-shadow: var(--ui-button-text-shadow, none);
131
131
  }
@@ -165,7 +165,7 @@ let UiButton = class UiButton extends LitElement {
165
165
  .btn.danger {
166
166
  background: var(--ui-button-danger-background, var(--ui-danger, #dc2626));
167
167
  border-color: var(--ui-button-danger-border, transparent);
168
- color: var(--ui-on-accent, #ffffff);
168
+ color: var(--ui-button-danger-text, var(--ui-on-accent, #ffffff));
169
169
  box-shadow: var(--ui-button-highlight, 0 0 0 0 transparent);
170
170
  text-shadow: var(--ui-button-text-shadow, none);
171
171
  }