@handijitcom/ui 1.1.1 → 2.0.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 (94) hide show
  1. package/README.md +77 -24
  2. package/build/calendar.css +1 -1
  3. package/build/charts.css +1 -1
  4. package/build/chat.css +1 -1
  5. package/build/components/Avatar/index.cjs.map +1 -1
  6. package/build/components/Avatar/index.d.cts +3 -2
  7. package/build/components/Avatar/index.d.ts +3 -2
  8. package/build/components/Avatar/index.js.map +1 -1
  9. package/build/components/Avatar/style.css +1 -1
  10. package/build/components/Badge/index.cjs +1 -1
  11. package/build/components/Badge/index.cjs.map +1 -1
  12. package/build/components/Badge/index.d.cts +2 -4
  13. package/build/components/Badge/index.d.ts +2 -4
  14. package/build/components/Badge/index.js +1 -1
  15. package/build/components/Badge/index.js.map +1 -1
  16. package/build/components/Badge/style.css +1 -1
  17. package/build/components/Band/index.cjs +2 -0
  18. package/build/components/Band/index.cjs.map +1 -0
  19. package/build/components/Band/index.d.cts +45 -0
  20. package/build/components/Band/index.d.ts +45 -0
  21. package/build/components/Band/index.js +126 -0
  22. package/build/components/Band/index.js.map +1 -0
  23. package/build/components/Band/style.css +1 -0
  24. package/build/components/BottomSheet/style.css +1 -1
  25. package/build/components/Breadcrumb/style.css +1 -1
  26. package/build/components/Button/style.css +1 -1
  27. package/build/components/Carousel/style.css +1 -1
  28. package/build/components/Checkbox/style.css +1 -1
  29. package/build/components/Chip/style.css +1 -1
  30. package/build/components/Combobox/style.css +1 -1
  31. package/build/components/CommandPalette/style.css +1 -1
  32. package/build/components/CopyField/style.css +1 -1
  33. package/build/components/DataTable/style.css +1 -1
  34. package/build/components/DateField/style.css +1 -1
  35. package/build/components/Directory/style.css +1 -1
  36. package/build/components/Disclosure/style.css +1 -1
  37. package/build/components/Drawer/style.css +1 -1
  38. package/build/components/Eyebrow/index.cjs +2 -0
  39. package/build/components/Eyebrow/index.cjs.map +1 -0
  40. package/build/components/Eyebrow/index.d.cts +19 -0
  41. package/build/components/Eyebrow/index.d.ts +19 -0
  42. package/build/components/Eyebrow/index.js +9 -0
  43. package/build/components/Eyebrow/index.js.map +1 -0
  44. package/build/components/Eyebrow/style.css +1 -0
  45. package/build/components/FileUpload/style.css +1 -1
  46. package/build/components/IconButton/style.css +1 -1
  47. package/build/components/Input/style.css +1 -1
  48. package/build/components/Menu/style.css +1 -1
  49. package/build/components/Modal/style.css +1 -1
  50. package/build/components/Pagination/style.css +1 -1
  51. package/build/components/QuantityStepper/style.css +1 -1
  52. package/build/components/Radio/style.css +1 -1
  53. package/build/components/RadioCard/style.css +1 -1
  54. package/build/components/RatingInput/style.css +1 -1
  55. package/build/components/ScrollArea/style.css +1 -1
  56. package/build/components/SegmentedControl/style.css +1 -1
  57. package/build/components/Select/style.css +1 -1
  58. package/build/components/StatStrip/index.cjs +2 -0
  59. package/build/components/StatStrip/index.cjs.map +1 -0
  60. package/build/components/StatStrip/index.d.cts +25 -0
  61. package/build/components/StatStrip/index.d.ts +25 -0
  62. package/build/components/StatStrip/index.js +37 -0
  63. package/build/components/StatStrip/index.js.map +1 -0
  64. package/build/components/StatStrip/style.css +1 -0
  65. package/build/components/Steps/style.css +1 -1
  66. package/build/components/SummaryCard/style.css +1 -1
  67. package/build/components/Switch/style.css +1 -1
  68. package/build/components/TableCheckbox/style.css +1 -1
  69. package/build/components/Tabs/style.css +1 -1
  70. package/build/components/TagInput/style.css +1 -1
  71. package/build/components/TextLink/style.css +1 -1
  72. package/build/components/Textarea/style.css +1 -1
  73. package/build/components/Tile/style.css +1 -1
  74. package/build/components/Toast/style.css +1 -1
  75. package/build/design/index.cjs +154 -28
  76. package/build/design/index.cjs.map +1 -1
  77. package/build/design/index.d.cts +96 -7
  78. package/build/design/index.d.mts +96 -7
  79. package/build/design/index.mjs +154 -29
  80. package/build/design/index.mjs.map +1 -1
  81. package/build/design/index.umd.cjs +1 -1
  82. package/build/design/index.umd.cjs.map +1 -1
  83. package/build/design/tokens.css +57 -28
  84. package/build/design/tokens.json +136 -28
  85. package/build/design/tokens.scss +32 -30
  86. package/build/index.cjs +1 -1
  87. package/build/index.d.cts +3 -0
  88. package/build/index.d.ts +3 -0
  89. package/build/index.js +58 -51
  90. package/build/index.js.map +1 -1
  91. package/build/scss/_mixins.scss +1 -6
  92. package/build/scss/_variables.scss +18 -7
  93. package/build/styles.css +45 -39
  94. package/package.json +31 -1
@@ -1 +1 @@
1
- @layer ui{.ui-hub-JoqOf{position:fixed;inset-inline-start:var(--ui-toast-inset-start, 0);inset-inline-end:var(--ui-toast-inset-end, 0);z-index:var(--hd-z-toast);display:flex;flex-direction:column;align-items:flex-end;gap:var(--hd-space-2);padding:var(--hd-space-4);pointer-events:none}.ui-hub--bottom-hLN0t{bottom:var(--ui-toast-inset-bottom, 0);padding-bottom:max(var(--hd-space-4),env(safe-area-inset-bottom,0px) - max(env(safe-area-inset-bottom,0px),var(--ui-sheet-inset-bottom, 0px)))}.ui-hub--top-yGUMK{top:var(--ui-toast-inset-top, 0);padding-top:max(var(--hd-space-4),env(safe-area-inset-top,0px))}.ui-hub--start-oYv4N{align-items:flex-start}.ui-hub--center-EVh9M{align-items:center}.ui-toast-U27Of{display:flex;align-items:flex-start;gap:var(--hd-space-3);pointer-events:auto;width:100%;max-width:420px;padding:var(--hd-space-3);border-radius:var(--hd-radius-sm);background-color:var(--hd-bg-overlay);border:1px solid var(--hd-border);box-shadow:var(--hd-shadow-2);animation:var(--ui-anim-fade-in-up) var(--hd-duration-base) var(--hd-ease-standard)}.ui-hub--top-yGUMK .ui-toast-U27Of{animation-name:var(--ui-anim-fade-in-down)}@media (prefers-reduced-motion: reduce){.ui-toast-U27Of,.ui-hub--top-yGUMK .ui-toast-U27Of{animation:none}}.ui-toast--info-S1QJr{border-inline-start:3px solid var(--hd-primary)}.ui-toast--success-NUso7{border-inline-start:3px solid var(--hd-success-solid)}.ui-toast--warning-7mi-S{border-inline-start:3px solid var(--hd-warning-solid)}.ui-toast--danger-IhFSz{border-inline-start:3px solid var(--hd-danger-solid)}@media (forced-colors: active){.ui-toast-U27Of{border-color:CanvasText}}.ui-toast__icon-p-rgI{display:inline-flex;flex-shrink:0;font-size:18px;margin-top:1px}.ui-toast--info-S1QJr .ui-toast__icon-p-rgI{color:var(--hd-text)}.ui-toast--success-NUso7 .ui-toast__icon-p-rgI{color:var(--hd-success-solid)}.ui-toast--warning-7mi-S .ui-toast__icon-p-rgI{color:var(--hd-warning-solid)}.ui-toast--danger-IhFSz .ui-toast__icon-p-rgI{color:var(--hd-danger-solid)}.ui-toast__text-rG4ji{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.ui-toast__message-s6S2-{font-size:var(--hd-type-small-size);font-weight:var(--hd-font-weight-semibold);color:var(--hd-text)}.ui-toast__description-0cYTx{font-size:var(--hd-type-caption-size);color:var(--hd-text-2);line-height:var(--hd-type-body-line-height)}.ui-toast__action-fOXU5{position:relative}.ui-toast__action-fOXU5:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}.ui-toast__action-fOXU5{flex-shrink:0;padding:var(--hd-space-1) var(--hd-space-2);border:none;border-radius:var(--hd-radius-xs);background:none;cursor:pointer;font-family:var(--hd-font-body);font-size:var(--hd-type-caption-size);font-weight:var(--hd-font-weight-semibold);color:var(--hd-text);text-decoration:underline;text-underline-offset:3px}.ui-toast__action-fOXU5:hover{background-color:color-mix(in srgb,var(--hd-text) 8%,transparent)}.ui-toast__action-fOXU5:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--hd-focus);outline-offset:var(--ui-ring-offset, 1px)}.ui-toast__close-QxSNP{flex-shrink:0}}
1
+ @layer ui{.ui-hub-JoqOf{position:fixed;inset-inline-start:var(--ui-toast-inset-start, 0);inset-inline-end:var(--ui-toast-inset-end, 0);z-index:var(--hd-z-toast);display:flex;flex-direction:column;align-items:flex-end;gap:var(--hd-space-2);padding:var(--hd-space-4);pointer-events:none}.ui-hub--bottom-hLN0t{bottom:var(--ui-toast-inset-bottom, 0);padding-bottom:max(var(--hd-space-4),env(safe-area-inset-bottom,0px) - max(env(safe-area-inset-bottom,0px),var(--ui-sheet-inset-bottom, 0px)))}.ui-hub--top-yGUMK{top:var(--ui-toast-inset-top, 0);padding-top:max(var(--hd-space-4),env(safe-area-inset-top,0px))}.ui-hub--start-oYv4N{align-items:flex-start}.ui-hub--center-EVh9M{align-items:center}.ui-toast-U27Of{display:flex;align-items:flex-start;gap:var(--hd-space-3);pointer-events:auto;width:100%;max-width:420px;padding:var(--hd-space-3);border-radius:var(--hd-radius-sm);background-color:var(--hd-bg-overlay);border:1px solid var(--hd-border);box-shadow:var(--hd-shadow-2);animation:var(--ui-anim-fade-in-up) var(--hd-duration-base) var(--hd-ease-standard)}.ui-hub--top-yGUMK .ui-toast-U27Of{animation-name:var(--ui-anim-fade-in-down)}@media (prefers-reduced-motion: reduce){.ui-toast-U27Of,.ui-hub--top-yGUMK .ui-toast-U27Of{animation:none}}.ui-toast--info-S1QJr{border-inline-start:3px solid var(--hd-primary)}.ui-toast--success-NUso7{border-inline-start:3px solid var(--hd-success-solid)}.ui-toast--warning-7mi-S{border-inline-start:3px solid var(--hd-warning-solid)}.ui-toast--danger-IhFSz{border-inline-start:3px solid var(--hd-danger-solid)}@media (forced-colors: active){.ui-toast-U27Of{border-color:CanvasText}}.ui-toast__icon-p-rgI{display:inline-flex;flex-shrink:0;font-size:18px;margin-top:1px}.ui-toast--info-S1QJr .ui-toast__icon-p-rgI{color:var(--hd-text)}.ui-toast--success-NUso7 .ui-toast__icon-p-rgI{color:var(--hd-success-solid)}.ui-toast--warning-7mi-S .ui-toast__icon-p-rgI{color:var(--hd-warning-solid)}.ui-toast--danger-IhFSz .ui-toast__icon-p-rgI{color:var(--hd-danger-solid)}.ui-toast__text-rG4ji{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.ui-toast__message-s6S2-{font-size:var(--hd-type-small-size);font-weight:var(--hd-font-weight-semibold);color:var(--hd-text)}.ui-toast__description-0cYTx{font-size:var(--hd-type-caption-size);color:var(--hd-text-2);line-height:var(--hd-type-body-line-height)}.ui-toast__action-fOXU5{position:relative}.ui-toast__action-fOXU5:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:max(100%,44px);height:max(100%,44px)}.ui-toast__action-fOXU5{flex-shrink:0;padding:var(--hd-space-1) var(--hd-space-2);border:none;border-radius:var(--hd-radius-xs);background:none;cursor:pointer;font-family:var(--hd-font-body);font-size:var(--hd-type-caption-size);font-weight:var(--hd-font-weight-semibold);color:var(--hd-text);text-decoration:underline;text-underline-offset:3px}.ui-toast__action-fOXU5:hover{background-color:color-mix(in srgb,var(--hd-text) 8%,transparent)}.ui-toast__action-fOXU5:focus-visible{outline:var(--ui-ring-width, 2px) solid var(--ui-ring-color, var(--hd-focus));outline-offset:var(--ui-ring-offset, 1px)}.ui-toast__close-QxSNP{flex-shrink:0}}
@@ -149,6 +149,23 @@ const oklchToHex = (color) => {
149
149
  }));
150
150
  };
151
151
 
152
+ /**
153
+ * The brand band's recipe: the numbers its imagery is drawn with, the same in every theme.
154
+ * The colours are the theme's roles (`band-*`, `primary`, `accent`); `effectValues` and
155
+ * `effects` pair the two. A component that draws the band reads its geometry here, because
156
+ * an SVG attribute (a pattern's cell, a gradient stop's offset) cannot read a custom property.
157
+ */
158
+ const band = {
159
+ gradientHold: 0.55,
160
+ // A glow at its centre over `band-bg` keeps `band-text-2` at 5.85:1 (gated).
161
+ glowAlpha: 0.5,
162
+ dotCell: 22,
163
+ dotRadius: 1.6,
164
+ dotAlpha: 0.7,
165
+ blueprintHold: 0.6,
166
+ accentGlow: { x: 0, y: 8, blur: 24, spread: -10, alpha: 0.45 },
167
+ };
168
+
152
169
  /** Viewport breakpoints in CSS pixels; each is the lower bound of its range. */
153
170
  const breakpoints = {
154
171
  sm: 640,
@@ -209,6 +226,55 @@ var effectValues = {
209
226
  "scrim": {
210
227
  "color": "#091122",
211
228
  "alpha": 0.48
229
+ },
230
+ "band": {
231
+ "gradient": [
232
+ {
233
+ "offset": 0,
234
+ "color": "#091b64"
235
+ },
236
+ {
237
+ "offset": 0.55,
238
+ "color": "#091b64"
239
+ },
240
+ {
241
+ "offset": 1,
242
+ "color": "#060f3e"
243
+ }
244
+ ],
245
+ "glow": {
246
+ "color": "#2661fa",
247
+ "alpha": 0.5
248
+ },
249
+ "dots": {
250
+ "color": "#5b7cce",
251
+ "alpha": 0.7,
252
+ "cell": 22,
253
+ "radius": 1.6
254
+ },
255
+ "blueprint": {
256
+ "fill": [
257
+ {
258
+ "offset": 0,
259
+ "color": "#213b86"
260
+ },
261
+ {
262
+ "offset": 0.6,
263
+ "color": "#091b64"
264
+ }
265
+ ],
266
+ "stroke": "#5b7cce"
267
+ },
268
+ "accentGlow": {
269
+ "color": "#fb6041",
270
+ "layer": {
271
+ "x": 0,
272
+ "y": 8,
273
+ "blur": 24,
274
+ "spread": -10,
275
+ "alpha": 0.45
276
+ }
277
+ }
212
278
  }
213
279
  },
214
280
  "dark": {
@@ -262,6 +328,55 @@ var effectValues = {
262
328
  "scrim": {
263
329
  "color": "#040813",
264
330
  "alpha": 0.64
331
+ },
332
+ "band": {
333
+ "gradient": [
334
+ {
335
+ "offset": 0,
336
+ "color": "#091b64"
337
+ },
338
+ {
339
+ "offset": 0.55,
340
+ "color": "#091b64"
341
+ },
342
+ {
343
+ "offset": 1,
344
+ "color": "#060f3e"
345
+ }
346
+ ],
347
+ "glow": {
348
+ "color": "#2661fa",
349
+ "alpha": 0.5
350
+ },
351
+ "dots": {
352
+ "color": "#5b7cce",
353
+ "alpha": 0.7,
354
+ "cell": 22,
355
+ "radius": 1.6
356
+ },
357
+ "blueprint": {
358
+ "fill": [
359
+ {
360
+ "offset": 0,
361
+ "color": "#213b86"
362
+ },
363
+ {
364
+ "offset": 0.6,
365
+ "color": "#091b64"
366
+ }
367
+ ],
368
+ "stroke": "#5b7cce"
369
+ },
370
+ "accentGlow": {
371
+ "color": "#fb6041",
372
+ "layer": {
373
+ "x": 0,
374
+ "y": 8,
375
+ "blur": 24,
376
+ "spread": -10,
377
+ "alpha": 0.45
378
+ }
379
+ }
265
380
  }
266
381
  }
267
382
  };
@@ -273,7 +388,21 @@ var effects = {
273
388
  "shadow-1": "0 1px 2px rgb(15 23 60 / 0.1)",
274
389
  "shadow-2": "0 1px 2px rgb(15 23 60 / 0.1), 0 12px 32px -12px rgb(15 23 60 / 0.2)",
275
390
  "shadow-3": "0 2px 4px rgb(15 23 60 / 0.1), 0 24px 56px -16px rgb(15 23 60 / 0.3)",
276
- "scrim": "rgb(9 17 34 / 0.48)"
391
+ "scrim": "rgb(9 17 34 / 0.48)",
392
+ "band-gradient-from": "#091b64",
393
+ "band-gradient-to": "#060f3e",
394
+ "band-gradient-hold": "55%",
395
+ "band-glow": "#2661fa",
396
+ "band-glow-alpha": "0.5",
397
+ "band-dot": "#5b7cce",
398
+ "band-dot-alpha": "0.7",
399
+ "band-dot-cell": "22px",
400
+ "band-dot-radius": "1.6px",
401
+ "band-blueprint-from": "#213b86",
402
+ "band-blueprint-to": "#091b64",
403
+ "band-blueprint-hold": "60%",
404
+ "band-blueprint-stroke": "#5b7cce",
405
+ "band-accent-glow": "0 8px 24px -10px rgb(251 96 65 / 0.45)"
277
406
  },
278
407
  "dark": {
279
408
  "shadow-color": "0 0 0",
@@ -281,7 +410,21 @@ var effects = {
281
410
  "shadow-1": "0 1px 2px rgb(0 0 0 / 0.45)",
282
411
  "shadow-2": "0 1px 2px rgb(0 0 0 / 0.45), 0 12px 32px -12px rgb(0 0 0 / 0.9)",
283
412
  "shadow-3": "0 2px 4px rgb(0 0 0 / 0.45), 0 24px 56px -16px rgb(0 0 0 / 0.9)",
284
- "scrim": "rgb(4 8 19 / 0.64)"
413
+ "scrim": "rgb(4 8 19 / 0.64)",
414
+ "band-gradient-from": "#091b64",
415
+ "band-gradient-to": "#060f3e",
416
+ "band-gradient-hold": "55%",
417
+ "band-glow": "#2661fa",
418
+ "band-glow-alpha": "0.5",
419
+ "band-dot": "#5b7cce",
420
+ "band-dot-alpha": "0.7",
421
+ "band-dot-cell": "22px",
422
+ "band-dot-radius": "1.6px",
423
+ "band-blueprint-from": "#213b86",
424
+ "band-blueprint-to": "#091b64",
425
+ "band-blueprint-hold": "60%",
426
+ "band-blueprint-stroke": "#5b7cce",
427
+ "band-accent-glow": "0 8px 24px -10px rgb(251 96 65 / 0.45)"
285
428
  }
286
429
  };
287
430
 
@@ -307,7 +450,6 @@ const fonts = {
307
450
  const hues = {
308
451
  cobalt: 264,
309
452
  coral: 33,
310
- turquoise: 192,
311
453
  success: 156,
312
454
  warning: 78,
313
455
  danger: 14,
@@ -400,19 +542,6 @@ var scales = {
400
542
  "900": "#5d190c",
401
543
  "950": "#380e06"
402
544
  },
403
- "turquoise": {
404
- "50": "#edfaf9",
405
- "100": "#d5f4f2",
406
- "200": "#aeedea",
407
- "300": "#7ddfdb",
408
- "400": "#3acac6",
409
- "500": "#20aca8",
410
- "600": "#158e8a",
411
- "700": "#157371",
412
- "800": "#135553",
413
- "900": "#0f3b3a",
414
- "950": "#082322"
415
- },
416
545
  "success": {
417
546
  "50": "#effaf3",
418
547
  "100": "#dbf4e3",
@@ -554,10 +683,6 @@ var themes = {
554
683
  "on-accent": "#091122",
555
684
  "accent-soft": "#fdf5f2",
556
685
  "accent-text": "#b72e11",
557
- "highlight": "#20aca8",
558
- "on-highlight": "#091122",
559
- "highlight-soft": "#edfaf9",
560
- "highlight-text": "#157371",
561
686
  "focus": "#5487fa",
562
687
  "selection-bg": "#cfddf9",
563
688
  "success-bg": "#effaf3",
@@ -582,7 +707,7 @@ var themes = {
582
707
  "info-on-solid": "#ffffff",
583
708
  "chart-1": "#2661fa",
584
709
  "chart-2": "#e03611",
585
- "chart-3": "#158e8a",
710
+ "chart-3": "#159358",
586
711
  "chart-4": "#ad7a13",
587
712
  "chart-5": "#c71589",
588
713
  "chart-6": "#a217e4",
@@ -591,7 +716,9 @@ var themes = {
591
716
  "band-line": "#213b86",
592
717
  "band-line-strong": "#5b7cce",
593
718
  "band-text": "#ffffff",
594
- "band-text-2": "#bfd2f3"
719
+ "band-text-2": "#bfd2f3",
720
+ "band-focus": "#ffffff",
721
+ "band-edge": "#091b64"
595
722
  },
596
723
  "dark": {
597
724
  "bg-page": "#080e1b",
@@ -621,10 +748,6 @@ var themes = {
621
748
  "on-accent": "#091122",
622
749
  "accent-soft": "#3f1a12",
623
750
  "accent-text": "#f9bdb0",
624
- "highlight": "#3acac6",
625
- "on-highlight": "#091122",
626
- "highlight-soft": "#022d2c",
627
- "highlight-text": "#7ddfdb",
628
751
  "focus": "#82a8f7",
629
752
  "selection-bg": "#24418d",
630
753
  "success-bg": "#0b2b1a",
@@ -649,7 +772,7 @@ var themes = {
649
772
  "info-on-solid": "#ffffff",
650
773
  "chart-1": "#82a8f7",
651
774
  "chart-2": "#f99884",
652
- "chart-3": "#3acac6",
775
+ "chart-3": "#3ad184",
653
776
  "chart-4": "#f0af36",
654
777
  "chart-5": "#f874bd",
655
778
  "chart-6": "#c988f7",
@@ -658,7 +781,9 @@ var themes = {
658
781
  "band-line": "#213b86",
659
782
  "band-line-strong": "#5b7cce",
660
783
  "band-text": "#ffffff",
661
- "band-text-2": "#bfd2f3"
784
+ "band-text-2": "#bfd2f3",
785
+ "band-focus": "#ffffff",
786
+ "band-edge": "#213b86"
662
787
  }
663
788
  };
664
789
 
@@ -754,6 +879,7 @@ exports.THEME_ATTRIBUTE = THEME_ATTRIBUTE;
754
879
  exports.THEME_BOOT_SCRIPT = themeBootScript;
755
880
  exports.THEME_BOOT_SCRIPT_HASH = themeBootScriptHash;
756
881
  exports.THEME_STORAGE_KEY = THEME_STORAGE_KEY;
882
+ exports.band = band;
757
883
  exports.breakpoints = breakpoints;
758
884
  exports.contrast = contrast;
759
885
  exports.cssVar = cssVar;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../src/design/helpers/srgb.helper.ts","../../src/design/modules/contrast.ts","../../src/design/tokens/css-variable-prefix.ts","../../src/design/modules/css-var-name.ts","../../src/design/modules/css-var.ts","../../src/design/helpers/oklch.helper.ts","../../src/design/modules/delta-e.ts","../../src/design/modules/hex-to-oklch.ts","../../src/design/modules/max-chroma.ts","../../src/design/modules/oklch-to-hex.ts","../../src/design/tokens/breakpoints.ts","../../src/design/tokens/font-weights.ts","../../src/design/tokens/fonts.ts","../../src/design/tokens/hues.ts","../../src/design/tokens/layers.ts","../../src/design/tokens/logos.ts","../../src/design/tokens/motion.ts","../../src/design/tokens/radii.ts","../../src/design/tokens/spacing.ts","../../src/design/tokens/theme-attribute.ts","../../src/design/tokens/theme-storage-key.ts","../../src/design/tokens/typography.ts"],"sourcesContent":["/** sRGB channels in the 0–1 range (gamma-encoded unless a function says linear). */\ntype Rgb = { r: number; g: number; b: number };\n\nconst HEX_PATTERN = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;\n\n/** sRGB gamma → linear light. */\nconst toLinear = (channel: number): number =>\n channel <= 0.04045 ? channel / 12.92 : ((channel + 0.055) / 1.055) ** 2.4;\n\n/** Linear light → sRGB gamma. */\nconst toGamma = (channel: number): number =>\n channel <= 0.0031308 ? channel * 12.92 : 1.055 * channel ** (1 / 2.4) - 0.055;\n\nconst describe = (value: unknown): string =>\n typeof value === 'string' ? `\"${value}\"` : typeof value;\n\n/** `#rgb` / `#rrggbb` → gamma-encoded channels; anything else is a caller error. */\nconst parseHex = (value: unknown, caller: string): Rgb => {\n if (typeof value !== 'string' || !HEX_PATTERN.test(value)) {\n throw new TypeError(\n `${caller}: expected a hex colour like \"#2661fa\", received ${describe(value)}`,\n );\n }\n\n const digits = value.slice(1);\n const full = digits.length === 3 ? digits.replace(/./g, digit => digit + digit) : digits;\n const channel = (start: number): number => parseInt(full.slice(start, start + 2), 16) / 255;\n\n return { r: channel(0), g: channel(2), b: channel(4) };\n};\n\nconst toByte = (channel: number): string =>\n Math.round(Math.min(1, Math.max(0, channel)) * 255)\n .toString(16)\n .padStart(2, '0');\n\n/** Gamma-encoded channels → lowercase `#rrggbb`; out-of-range channels clip. */\nconst formatHex = ({ r, g, b }: Rgb): string => `#${toByte(r)}${toByte(g)}${toByte(b)}`;\n\n/** WCAG 2 relative luminance of gamma-encoded channels. */\nconst relativeLuminance = ({ r, g, b }: Rgb): number =>\n 0.2126 * toLinear(r) + 0.7152 * toLinear(g) + 0.0722 * toLinear(b);\n\nexport type { Rgb };\nexport { formatHex, parseHex, relativeLuminance, toGamma, toLinear };\n","import { parseHex, relativeLuminance } from '../helpers/srgb.helper';\n\n/** WCAG 2 contrast ratio of two opaque hex colours, from 1 to 21. Order does not matter. */\nconst contrast = (first: string, second: string): number => {\n const one = relativeLuminance(parseHex(first, 'contrast'));\n const other = relativeLuminance(parseHex(second, 'contrast'));\n return (Math.max(one, other) + 0.05) / (Math.min(one, other) + 0.05);\n};\n\nexport default contrast;\n","/** Every custom property and Sass variable of the package starts with this. */\nconst CSS_VARIABLE_PREFIX = 'hd' as const;\n\nexport default CSS_VARIABLE_PREFIX;\n","import CSS_VARIABLE_PREFIX from '../tokens/css-variable-prefix';\nimport type { TokenName } from '../types';\n\n/** The custom property name of a token: `cssVarName(\"bg-page\")` → `--hd-bg-page`. */\nconst cssVarName = <Name extends TokenName>(\n name: Name,\n): `--${typeof CSS_VARIABLE_PREFIX}-${Name}` => `--${CSS_VARIABLE_PREFIX}-${name}`;\n\nexport default cssVarName;\n","import type { TokenName } from '../types';\nimport cssVarName from './css-var-name';\n\n/**\n * A `var()` reference to a token: `cssVar(\"bg-page\")` → `var(--hd-bg-page)`.\n * The optional fallback is emitted verbatim: `var(--hd-bg-page, #fff)`.\n */\nconst cssVar = (name: TokenName, fallback?: string): string =>\n fallback === undefined ? `var(${cssVarName(name)})` : `var(${cssVarName(name)}, ${fallback})`;\n\nexport default cssVar;\n","import type { Oklch } from '../types';\nimport type { Rgb } from './srgb.helper';\nimport { toGamma, toLinear } from './srgb.helper';\n\ntype Oklab = { l: number; a: number; b: number };\n\n// Rounding noise at the gamut edge must not count as \"out of gamut\".\nconst GAMUT_EPSILON = 0.0001;\n\n// 24 halvings of the widest chroma interval land far below one 8-bit step.\nconst BISECTION_STEPS = 24;\n\n/** OKLCH → gamma-encoded sRGB, without any gamut handling. */\nconst oklchToSrgb = ({ l, c, h }: Oklch): Rgb => {\n const radians = (h * Math.PI) / 180;\n const greenRed = c * Math.cos(radians);\n const blueYellow = c * Math.sin(radians);\n\n const long = (l + 0.3963377774 * greenRed + 0.2158037573 * blueYellow) ** 3;\n const medium = (l - 0.1055613458 * greenRed - 0.0638541728 * blueYellow) ** 3;\n const short = (l - 0.0894841775 * greenRed - 1.291485548 * blueYellow) ** 3;\n\n return {\n r: toGamma(4.0767416621 * long - 3.3077115913 * medium + 0.2309699292 * short),\n g: toGamma(-1.2684380046 * long + 2.6097574011 * medium - 0.3413193965 * short),\n b: toGamma(-0.0041960863 * long - 0.7034186147 * medium + 1.707614701 * short),\n };\n};\n\nconst isChannelInGamut = (channel: number): boolean =>\n channel >= -GAMUT_EPSILON && channel <= 1 + GAMUT_EPSILON;\n\nconst isInGamut = ({ r, g, b }: Rgb): boolean =>\n isChannelInGamut(r) && isChannelInGamut(g) && isChannelInGamut(b);\n\n/** The highest chroma up to `ceiling` that still fits sRGB at this lightness and hue. */\nconst fitChroma = (l: number, h: number, ceiling: number): number => {\n let low = 0;\n let high = ceiling;\n\n for (let step = 0; step < BISECTION_STEPS; step += 1) {\n const middle = (low + high) / 2;\n if (isInGamut(oklchToSrgb({ l, c: middle, h }))) low = middle;\n else high = middle;\n }\n\n return low;\n};\n\n/** Gamma-encoded sRGB → OKLab. */\nconst srgbToOklab = (rgb: Rgb): Oklab => {\n const r = toLinear(rgb.r);\n const g = toLinear(rgb.g);\n const b = toLinear(rgb.b);\n\n const long = Math.cbrt(0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b);\n const medium = Math.cbrt(0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b);\n const short = Math.cbrt(0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b);\n\n return {\n l: 0.2104542553 * long + 0.793617785 * medium - 0.0040720468 * short,\n a: 1.9779984951 * long - 2.428592205 * medium + 0.4505937099 * short,\n b: 0.0259040371 * long + 0.7827717662 * medium - 0.808675766 * short,\n };\n};\n\n/** Rejects `NaN`, `±Infinity` and non-numbers: no colour can be computed from them. */\nconst assertFinite = (value: unknown, name: string, caller: string): void => {\n if (typeof value !== 'number' || !Number.isFinite(value)) {\n throw new TypeError(`${caller}: ${name} must be a finite number, received ${String(value)}`);\n }\n};\n\nexport type { Oklab };\nexport { assertFinite, fitChroma, isInGamut, oklchToSrgb, srgbToOklab };\n","import { srgbToOklab } from '../helpers/oklch.helper';\nimport { parseHex } from '../helpers/srgb.helper';\n\n/**\n * Perceptual distance between two hex colours: Euclidean OKLab distance × 100.\n * Around 2 is a just-noticeable difference; the palette keeps chart colours 10 apart.\n */\nconst deltaE = (first: string, second: string): number => {\n const from = srgbToOklab(parseHex(first, 'deltaE'));\n const to = srgbToOklab(parseHex(second, 'deltaE'));\n return Math.hypot(from.l - to.l, from.a - to.a, from.b - to.b) * 100;\n};\n\nexport default deltaE;\n","import { srgbToOklab } from '../helpers/oklch.helper';\nimport { parseHex } from '../helpers/srgb.helper';\nimport type { Oklch } from '../types';\n\n// Below this chroma the hue angle is rounding noise, not information.\nconst ACHROMATIC_CHROMA = 0.0001;\n\n/** Converts `#rgb` / `#rrggbb` to OKLCH. Greys report chroma 0 and hue 0. */\nconst hexToOklch = (hex: string): Oklch => {\n const { l, a, b } = srgbToOklab(parseHex(hex, 'hexToOklch'));\n const c = Math.hypot(a, b);\n if (c < ACHROMATIC_CHROMA) return { l, c: 0, h: 0 };\n\n return { l, c, h: ((Math.atan2(b, a) * 180) / Math.PI + 360) % 360 };\n};\n\nexport default hexToOklch;\n","import { assertFinite, fitChroma } from '../helpers/oklch.helper';\n\n// No sRGB colour reaches this chroma, so the search always starts outside the gamut.\nconst CHROMA_CEILING = 0.4;\n\n/** The highest chroma sRGB can show at the given OKLCH lightness and hue. */\nconst maxChroma = (l: number, h: number): number => {\n assertFinite(l, 'l', 'maxChroma');\n assertFinite(h, 'h', 'maxChroma');\n return fitChroma(l, h, CHROMA_CEILING);\n};\n\nexport default maxChroma;\n","import { assertFinite, fitChroma, isInGamut, oklchToSrgb } from '../helpers/oklch.helper';\nimport { formatHex } from '../helpers/srgb.helper';\nimport type { Oklch } from '../types';\n\n/**\n * Converts an OKLCH colour to `#rrggbb`. A colour outside sRGB keeps its lightness and hue\n * and gives up chroma until it fits; channels are never clipped individually.\n */\nconst oklchToHex = (color: Oklch): string => {\n // Destructuring a missing argument would throw an unhelpful engine error instead.\n const { l, c, h } = (color ?? {}) as Partial<Oklch>;\n assertFinite(l, 'l', 'oklchToHex');\n assertFinite(c, 'c', 'oklchToHex');\n assertFinite(h, 'h', 'oklchToHex');\n\n // Negative chroma is the same colour mirrored through grey; read it as \"no chroma\".\n const chroma = Math.max(0, c as number);\n const requested = { l: l as number, c: chroma, h: h as number };\n const direct = oklchToSrgb(requested);\n if (isInGamut(direct)) return formatHex(direct);\n\n return formatHex(\n oklchToSrgb({\n ...requested,\n c: fitChroma(requested.l, requested.h, chroma),\n }),\n );\n};\n\nexport default oklchToHex;\n","import type { Breakpoints } from '../types';\n\n/** Viewport breakpoints in CSS pixels; each is the lower bound of its range. */\nconst breakpoints: Breakpoints = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n};\n\nexport default breakpoints;\n","import type { FontWeights } from '../types';\n\n/** Named font weights. IBM Plex Mono ships only `regular` and `medium`. */\nconst fontWeights: FontWeights = {\n regular: 400,\n medium: 500,\n semibold: 600,\n bold: 700,\n};\n\nexport default fontWeights;\n","import type { Fonts } from '../types';\n\n/**\n * Font family stacks. The first family of each stack ships in `fonts.css`; the rest are\n * system fonts that hold the layout while the web font loads or when it is missing.\n */\nconst fonts: Fonts = {\n display: 'Archivo, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, sans-serif',\n body: 'Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif',\n mono: '\"IBM Plex Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n};\n\nexport default fonts;\n","import type { HueName } from '../types';\n\n/** OKLCH hue angle of every chromatic family. Neutrals lean to the cobalt hue. */\nconst hues: Readonly<Record<HueName, number>> = {\n cobalt: 264,\n coral: 33,\n turquoise: 192,\n success: 156,\n warning: 78,\n danger: 14,\n violet: 310,\n magenta: 348,\n};\n\nexport default hues;\n","import type { Layers } from '../types';\n\n/** `z-index` layers, lowest to highest. The gaps leave room for local stacking. */\nconst layers: Layers = {\n base: 0,\n raised: 1,\n sticky: 100,\n dropdown: 1000,\n overlay: 1100,\n modal: 1200,\n popover: 1300,\n toast: 1400,\n tooltip: 1500,\n};\n\nexport default layers;\n","import type { Logos } from '../types';\n\n/**\n * The Han Dijit logos as path data, so React and Electron code can draw them inline.\n * `body` takes `currentColor`; `dot` is the square dot of the mark and takes the accent.\n */\n// prettier-ignore\nconst logos: Logos = {\n mark: {\n viewBox: \"0 0 618.034 1000\",\n width: 618.034,\n height: 1000,\n body: \"M40.325 1000 L130.495 1000 L170.82 959.675 L170.82 554.175 L447.214 554.175 L447.214 959.675 L487.539 1000 L577.709 1000 L618.034 959.675 L618.034 439.083 L577.709 398.758 L170.82 398.758 L170.82 40.325 L130.495 0 L40.325 0 L0 40.325 L0 959.675 Z\",\n dot: \"M487.539 0 L577.709 0 L618.034 40.325 L618.034 130.495 L577.709 170.82 L487.539 170.82 L447.214 130.495 L447.214 40.325 Z\",\n },\n horizontal: {\n viewBox: \"0 0 6004.732 1109.971\",\n width: 6004.732,\n height: 1109.971,\n body: \"M44.76 1109.971 L144.846 1109.971 L189.605 1065.212 L189.605 615.118 L496.395 615.118 L496.395 1065.212 L541.154 1109.971 L641.24 1109.971 L686 1065.212 L686 487.37 L641.24 442.61 L189.605 442.61 L189.605 44.76 L144.846 0 L44.76 0 L0 44.76 L0 1065.212 Z M949.732 1109.971 1216.732 423.971H1380.732L1648.732 1109.971H1507.732L1452.732 963.971H1138.732L1083.732 1109.971ZM1179.732 853.971H1410.732L1341.732 667.971Q1337.732 657.971 1332.232 642.471Q1326.732 626.971 1320.732 608.471Q1314.732 589.971 1308.732 570.971Q1302.732 551.971 1297.732 536.971H1292.732Q1286.732 556.971 1278.232 582.971Q1269.732 608.971 1261.732 631.971Q1253.732 654.971 1248.732 667.971Z M1859.732 1109.971V423.971H1983.732L2276.732 828.971Q2281.732 834.971 2288.732 845.471Q2295.732 855.971 2301.732 865.971Q2307.732 875.971 2309.732 881.971H2314.732Q2314.732 867.971 2314.732 854.971Q2314.732 841.971 2314.732 828.971V423.971H2439.732V1109.971H2316.732L2022.732 701.971Q2014.732 689.971 2004.232 672.471Q1993.732 654.971 1989.732 647.971H1984.732Q1984.732 660.971 1984.732 674.471Q1984.732 687.971 1984.732 701.971V1109.971Z M3125.732 1109.971V423.971H3390.732Q3496.732 423.971 3571.732 460.471Q3646.732 496.971 3687.232 572.471Q3727.732 647.971 3727.732 766.971Q3727.732 884.971 3687.232 960.971Q3646.732 1036.971 3571.732 1073.471Q3496.732 1109.971 3390.732 1109.971ZM3237.732 1013.971H3389.732Q3442.732 1013.971 3484.232 999.971Q3525.732 985.971 3554.232 956.971Q3582.732 927.971 3597.232 883.471Q3611.732 838.971 3611.732 777.971V756.971Q3611.732 694.971 3597.232 650.471Q3582.732 605.971 3554.232 576.971Q3525.732 547.971 3484.232 533.971Q3442.732 519.971 3389.732 519.971H3237.732Z M3986.732 1109.971V423.971H4098.732V1109.971Z M4013.172 231.971 H4072.292 L4098.732 258.411 V317.532 L4072.292 343.971 H4013.172 L3986.732 317.532 V258.411 Z M4573.732 1121.971Q4500.732 1121.971 4449.732 1098.971Q4398.732 1075.971 4371.732 1031.971Q4344.732 987.971 4344.732 921.971V888.971H4455.732V924.971Q4455.732 973.971 4485.732 1000.471Q4515.732 1026.971 4573.732 1026.971Q4630.732 1026.971 4660.732 988.971Q4690.732 950.971 4690.732 879.971V423.971H4802.732V877.971Q4802.732 958.971 4775.732 1013.471Q4748.732 1067.971 4697.732 1094.971Q4646.732 1121.971 4573.732 1121.971Z M5091.732 1109.971V423.971H5203.732V1109.971Z M5118.172 231.971 H5177.292 L5203.732 258.411 V317.532 L5177.292 343.971 H5118.172 L5091.732 317.532 V258.411 Z M5663.732 1109.971V519.971H5436.732V423.971H6004.732V519.971H5775.732V1109.971Z\",\n dot: \"M541.154 0 L641.24 0 L686 44.76 L686 144.846 L641.24 189.605 L541.154 189.605 L496.395 144.846 L496.395 44.76 Z\",\n },\n};\n\nexport default logos;\n","import type { Motion } from '../types';\n\n/**\n * Durations (ms) and easings. `tokens.css` collapses the durations under\n * `prefers-reduced-motion: reduce`; code that animates from JavaScript has to check the\n * media query itself.\n */\nconst motion: Motion = {\n duration: { fast: 120, base: 200, slow: 320 },\n easing: {\n standard: 'cubic-bezier(0.2, 0, 0, 1)',\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(0.3, 0, 1, 1)',\n },\n};\n\nexport default motion;\n","import type { Radii } from '../types';\n\n/** Corner radii in CSS pixels. `pill` is large enough to round any control fully. */\nconst radii: Radii = {\n xs: 6,\n sm: 10,\n md: 14,\n lg: 20,\n pill: 999,\n};\n\nexport default radii;\n","import type { Spacing } from '../types';\n\n/** The spacing scale in CSS pixels: every step is its name × 4px. */\nconst spacing: Spacing = {\n 0: 0,\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 8: 32,\n 10: 40,\n 12: 48,\n 16: 64,\n 20: 80,\n 24: 96,\n};\n\nexport default spacing;\n","/** The attribute that selects a theme: `<html data-theme=\"dark\">`. */\nconst THEME_ATTRIBUTE = 'data-theme' as const;\n\nexport default THEME_ATTRIBUTE;\n","/**\n * The `localStorage` key holding the user's choice: `\"light\"`, `\"dark\"`, or anything else\n * (including no entry) for \"follow the system\".\n */\nconst THEME_STORAGE_KEY = 'hd-theme' as const;\n\nexport default THEME_STORAGE_KEY;\n","import type { Typography } from '../types';\n\n/**\n * The type scale. Sizes are CSS pixels at a 16px root (body is 15px); headings are set in\n * the display family, slightly wide (`stretch` above 100) and tight.\n */\nconst typography: Typography = {\n display: {\n font: 'display',\n size: 56,\n lineHeight: 1.05,\n weight: 700,\n letterSpacing: -0.03,\n stretch: 112,\n },\n h1: {\n font: 'display',\n size: 40,\n lineHeight: 1.1,\n weight: 700,\n letterSpacing: -0.025,\n stretch: 110,\n },\n h2: {\n font: 'display',\n size: 30,\n lineHeight: 1.15,\n weight: 700,\n letterSpacing: -0.02,\n stretch: 110,\n },\n h3: {\n font: 'display',\n size: 22,\n lineHeight: 1.2,\n weight: 650,\n letterSpacing: -0.015,\n stretch: 108,\n },\n h4: {\n font: 'display',\n size: 18,\n lineHeight: 1.3,\n weight: 650,\n letterSpacing: -0.01,\n stretch: 108,\n },\n lead: {\n font: 'body',\n size: 17,\n lineHeight: 1.55,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n body: {\n font: 'body',\n size: 15,\n lineHeight: 1.55,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n small: {\n font: 'body',\n size: 13,\n lineHeight: 1.5,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n caption: {\n font: 'body',\n size: 12,\n lineHeight: 1.4,\n weight: 500,\n letterSpacing: 0.01,\n stretch: 100,\n },\n code: {\n font: 'mono',\n size: 13,\n lineHeight: 1.5,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n};\n\nexport default typography;\n"],"names":[],"mappings":";;AAGA,MAAM,WAAW,GAAG,iCAAiC;AAErD;AACA,MAAM,QAAQ,GAAG,CAAC,OAAe,KAC/B,OAAO,IAAI,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,CAAC,CAAC,OAAO,GAAG,KAAK,IAAI,KAAK,KAAK,GAAG;AAE3E;AACA,MAAM,OAAO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QAAA,aAAa,EAAE,IAAI;AACnB,QAAA,OAAO,EAAE,GAAG;AACb,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,MAAM,EAAE,GAAG;AACX,QAAA,aAAa,EAAE,CAAC;AAChB,QAAA,OAAO,EAAE,GAAG;AACb,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../../src/design/helpers/srgb.helper.ts","../../src/design/modules/contrast.ts","../../src/design/tokens/css-variable-prefix.ts","../../src/design/modules/css-var-name.ts","../../src/design/modules/css-var.ts","../../src/design/helpers/oklch.helper.ts","../../src/design/modules/delta-e.ts","../../src/design/modules/hex-to-oklch.ts","../../src/design/modules/max-chroma.ts","../../src/design/modules/oklch-to-hex.ts","../../src/design/tokens/band.ts","../../src/design/tokens/breakpoints.ts","../../src/design/tokens/font-weights.ts","../../src/design/tokens/fonts.ts","../../src/design/tokens/hues.ts","../../src/design/tokens/layers.ts","../../src/design/tokens/logos.ts","../../src/design/tokens/motion.ts","../../src/design/tokens/radii.ts","../../src/design/tokens/spacing.ts","../../src/design/tokens/theme-attribute.ts","../../src/design/tokens/theme-storage-key.ts","../../src/design/tokens/typography.ts"],"sourcesContent":["/** sRGB channels in the 0–1 range (gamma-encoded unless a function says linear). */\ntype Rgb = { r: number; g: number; b: number };\n\nconst HEX_PATTERN = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;\n\n/** sRGB gamma → linear light. */\nconst toLinear = (channel: number): number =>\n channel <= 0.04045 ? channel / 12.92 : ((channel + 0.055) / 1.055) ** 2.4;\n\n/** Linear light → sRGB gamma. */\nconst toGamma = (channel: number): number =>\n channel <= 0.0031308 ? channel * 12.92 : 1.055 * channel ** (1 / 2.4) - 0.055;\n\nconst describe = (value: unknown): string =>\n typeof value === 'string' ? `\"${value}\"` : typeof value;\n\n/** `#rgb` / `#rrggbb` → gamma-encoded channels; anything else is a caller error. */\nconst parseHex = (value: unknown, caller: string): Rgb => {\n if (typeof value !== 'string' || !HEX_PATTERN.test(value)) {\n throw new TypeError(\n `${caller}: expected a hex colour like \"#2661fa\", received ${describe(value)}`,\n );\n }\n\n const digits = value.slice(1);\n const full = digits.length === 3 ? digits.replace(/./g, digit => digit + digit) : digits;\n const channel = (start: number): number => parseInt(full.slice(start, start + 2), 16) / 255;\n\n return { r: channel(0), g: channel(2), b: channel(4) };\n};\n\nconst toByte = (channel: number): string =>\n Math.round(Math.min(1, Math.max(0, channel)) * 255)\n .toString(16)\n .padStart(2, '0');\n\n/** Gamma-encoded channels → lowercase `#rrggbb`; out-of-range channels clip. */\nconst formatHex = ({ r, g, b }: Rgb): string => `#${toByte(r)}${toByte(g)}${toByte(b)}`;\n\n/** WCAG 2 relative luminance of gamma-encoded channels. */\nconst relativeLuminance = ({ r, g, b }: Rgb): number =>\n 0.2126 * toLinear(r) + 0.7152 * toLinear(g) + 0.0722 * toLinear(b);\n\nexport type { Rgb };\nexport { formatHex, parseHex, relativeLuminance, toGamma, toLinear };\n","import { parseHex, relativeLuminance } from '../helpers/srgb.helper';\n\n/** WCAG 2 contrast ratio of two opaque hex colours, from 1 to 21. Order does not matter. */\nconst contrast = (first: string, second: string): number => {\n const one = relativeLuminance(parseHex(first, 'contrast'));\n const other = relativeLuminance(parseHex(second, 'contrast'));\n return (Math.max(one, other) + 0.05) / (Math.min(one, other) + 0.05);\n};\n\nexport default contrast;\n","/** Every custom property and Sass variable of the package starts with this. */\nconst CSS_VARIABLE_PREFIX = 'hd' as const;\n\nexport default CSS_VARIABLE_PREFIX;\n","import CSS_VARIABLE_PREFIX from '../tokens/css-variable-prefix';\nimport type { TokenName } from '../types';\n\n/** The custom property name of a token: `cssVarName(\"bg-page\")` → `--hd-bg-page`. */\nconst cssVarName = <Name extends TokenName>(\n name: Name,\n): `--${typeof CSS_VARIABLE_PREFIX}-${Name}` => `--${CSS_VARIABLE_PREFIX}-${name}`;\n\nexport default cssVarName;\n","import type { TokenName } from '../types';\nimport cssVarName from './css-var-name';\n\n/**\n * A `var()` reference to a token: `cssVar(\"bg-page\")` → `var(--hd-bg-page)`.\n * The optional fallback is emitted verbatim: `var(--hd-bg-page, #fff)`.\n */\nconst cssVar = (name: TokenName, fallback?: string): string =>\n fallback === undefined ? `var(${cssVarName(name)})` : `var(${cssVarName(name)}, ${fallback})`;\n\nexport default cssVar;\n","import type { Oklch } from '../types';\nimport type { Rgb } from './srgb.helper';\nimport { toGamma, toLinear } from './srgb.helper';\n\ntype Oklab = { l: number; a: number; b: number };\n\n// Rounding noise at the gamut edge must not count as \"out of gamut\".\nconst GAMUT_EPSILON = 0.0001;\n\n// 24 halvings of the widest chroma interval land far below one 8-bit step.\nconst BISECTION_STEPS = 24;\n\n/** OKLCH → gamma-encoded sRGB, without any gamut handling. */\nconst oklchToSrgb = ({ l, c, h }: Oklch): Rgb => {\n const radians = (h * Math.PI) / 180;\n const greenRed = c * Math.cos(radians);\n const blueYellow = c * Math.sin(radians);\n\n const long = (l + 0.3963377774 * greenRed + 0.2158037573 * blueYellow) ** 3;\n const medium = (l - 0.1055613458 * greenRed - 0.0638541728 * blueYellow) ** 3;\n const short = (l - 0.0894841775 * greenRed - 1.291485548 * blueYellow) ** 3;\n\n return {\n r: toGamma(4.0767416621 * long - 3.3077115913 * medium + 0.2309699292 * short),\n g: toGamma(-1.2684380046 * long + 2.6097574011 * medium - 0.3413193965 * short),\n b: toGamma(-0.0041960863 * long - 0.7034186147 * medium + 1.707614701 * short),\n };\n};\n\nconst isChannelInGamut = (channel: number): boolean =>\n channel >= -GAMUT_EPSILON && channel <= 1 + GAMUT_EPSILON;\n\nconst isInGamut = ({ r, g, b }: Rgb): boolean =>\n isChannelInGamut(r) && isChannelInGamut(g) && isChannelInGamut(b);\n\n/** The highest chroma up to `ceiling` that still fits sRGB at this lightness and hue. */\nconst fitChroma = (l: number, h: number, ceiling: number): number => {\n let low = 0;\n let high = ceiling;\n\n for (let step = 0; step < BISECTION_STEPS; step += 1) {\n const middle = (low + high) / 2;\n if (isInGamut(oklchToSrgb({ l, c: middle, h }))) low = middle;\n else high = middle;\n }\n\n return low;\n};\n\n/** Gamma-encoded sRGB → OKLab. */\nconst srgbToOklab = (rgb: Rgb): Oklab => {\n const r = toLinear(rgb.r);\n const g = toLinear(rgb.g);\n const b = toLinear(rgb.b);\n\n const long = Math.cbrt(0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b);\n const medium = Math.cbrt(0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b);\n const short = Math.cbrt(0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b);\n\n return {\n l: 0.2104542553 * long + 0.793617785 * medium - 0.0040720468 * short,\n a: 1.9779984951 * long - 2.428592205 * medium + 0.4505937099 * short,\n b: 0.0259040371 * long + 0.7827717662 * medium - 0.808675766 * short,\n };\n};\n\n/** Rejects `NaN`, `±Infinity` and non-numbers: no colour can be computed from them. */\nconst assertFinite = (value: unknown, name: string, caller: string): void => {\n if (typeof value !== 'number' || !Number.isFinite(value)) {\n throw new TypeError(`${caller}: ${name} must be a finite number, received ${String(value)}`);\n }\n};\n\nexport type { Oklab };\nexport { assertFinite, fitChroma, isInGamut, oklchToSrgb, srgbToOklab };\n","import { srgbToOklab } from '../helpers/oklch.helper';\nimport { parseHex } from '../helpers/srgb.helper';\n\n/**\n * Perceptual distance between two hex colours: Euclidean OKLab distance × 100.\n * Around 2 is a just-noticeable difference; the palette keeps chart colours 10 apart.\n */\nconst deltaE = (first: string, second: string): number => {\n const from = srgbToOklab(parseHex(first, 'deltaE'));\n const to = srgbToOklab(parseHex(second, 'deltaE'));\n return Math.hypot(from.l - to.l, from.a - to.a, from.b - to.b) * 100;\n};\n\nexport default deltaE;\n","import { srgbToOklab } from '../helpers/oklch.helper';\nimport { parseHex } from '../helpers/srgb.helper';\nimport type { Oklch } from '../types';\n\n// Below this chroma the hue angle is rounding noise, not information.\nconst ACHROMATIC_CHROMA = 0.0001;\n\n/** Converts `#rgb` / `#rrggbb` to OKLCH. Greys report chroma 0 and hue 0. */\nconst hexToOklch = (hex: string): Oklch => {\n const { l, a, b } = srgbToOklab(parseHex(hex, 'hexToOklch'));\n const c = Math.hypot(a, b);\n if (c < ACHROMATIC_CHROMA) return { l, c: 0, h: 0 };\n\n return { l, c, h: ((Math.atan2(b, a) * 180) / Math.PI + 360) % 360 };\n};\n\nexport default hexToOklch;\n","import { assertFinite, fitChroma } from '../helpers/oklch.helper';\n\n// No sRGB colour reaches this chroma, so the search always starts outside the gamut.\nconst CHROMA_CEILING = 0.4;\n\n/** The highest chroma sRGB can show at the given OKLCH lightness and hue. */\nconst maxChroma = (l: number, h: number): number => {\n assertFinite(l, 'l', 'maxChroma');\n assertFinite(h, 'h', 'maxChroma');\n return fitChroma(l, h, CHROMA_CEILING);\n};\n\nexport default maxChroma;\n","import { assertFinite, fitChroma, isInGamut, oklchToSrgb } from '../helpers/oklch.helper';\nimport { formatHex } from '../helpers/srgb.helper';\nimport type { Oklch } from '../types';\n\n/**\n * Converts an OKLCH colour to `#rrggbb`. A colour outside sRGB keeps its lightness and hue\n * and gives up chroma until it fits; channels are never clipped individually.\n */\nconst oklchToHex = (color: Oklch): string => {\n // Destructuring a missing argument would throw an unhelpful engine error instead.\n const { l, c, h } = (color ?? {}) as Partial<Oklch>;\n assertFinite(l, 'l', 'oklchToHex');\n assertFinite(c, 'c', 'oklchToHex');\n assertFinite(h, 'h', 'oklchToHex');\n\n // Negative chroma is the same colour mirrored through grey; read it as \"no chroma\".\n const chroma = Math.max(0, c as number);\n const requested = { l: l as number, c: chroma, h: h as number };\n const direct = oklchToSrgb(requested);\n if (isInGamut(direct)) return formatHex(direct);\n\n return formatHex(\n oklchToSrgb({\n ...requested,\n c: fitChroma(requested.l, requested.h, chroma),\n }),\n );\n};\n\nexport default oklchToHex;\n","import type { BandRecipe } from '../types';\n\n/**\n * The brand band's recipe: the numbers its imagery is drawn with, the same in every theme.\n * The colours are the theme's roles (`band-*`, `primary`, `accent`); `effectValues` and\n * `effects` pair the two. A component that draws the band reads its geometry here, because\n * an SVG attribute (a pattern's cell, a gradient stop's offset) cannot read a custom property.\n */\nconst band: BandRecipe = {\n gradientHold: 0.55,\n // A glow at its centre over `band-bg` keeps `band-text-2` at 5.85:1 (gated).\n glowAlpha: 0.5,\n dotCell: 22,\n dotRadius: 1.6,\n dotAlpha: 0.7,\n blueprintHold: 0.6,\n accentGlow: { x: 0, y: 8, blur: 24, spread: -10, alpha: 0.45 },\n};\n\nexport default band;\n","import type { Breakpoints } from '../types';\n\n/** Viewport breakpoints in CSS pixels; each is the lower bound of its range. */\nconst breakpoints: Breakpoints = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n};\n\nexport default breakpoints;\n","import type { FontWeights } from '../types';\n\n/** Named font weights. IBM Plex Mono ships only `regular` and `medium`. */\nconst fontWeights: FontWeights = {\n regular: 400,\n medium: 500,\n semibold: 600,\n bold: 700,\n};\n\nexport default fontWeights;\n","import type { Fonts } from '../types';\n\n/**\n * Font family stacks. The first family of each stack ships in `fonts.css`; the rest are\n * system fonts that hold the layout while the web font loads or when it is missing.\n */\nconst fonts: Fonts = {\n display: 'Archivo, system-ui, -apple-system, \"Segoe UI\", \"Helvetica Neue\", Arial, sans-serif',\n body: 'Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif',\n mono: '\"IBM Plex Mono\", ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, Consolas, \"Liberation Mono\", monospace',\n};\n\nexport default fonts;\n","import type { HueName } from '../types';\n\n/** OKLCH hue angle of every chromatic family. Neutrals lean to the cobalt hue. */\nconst hues: Readonly<Record<HueName, number>> = {\n cobalt: 264,\n coral: 33,\n success: 156,\n warning: 78,\n danger: 14,\n violet: 310,\n magenta: 348,\n};\n\nexport default hues;\n","import type { Layers } from '../types';\n\n/** `z-index` layers, lowest to highest. The gaps leave room for local stacking. */\nconst layers: Layers = {\n base: 0,\n raised: 1,\n sticky: 100,\n dropdown: 1000,\n overlay: 1100,\n modal: 1200,\n popover: 1300,\n toast: 1400,\n tooltip: 1500,\n};\n\nexport default layers;\n","import type { Logos } from '../types';\n\n/**\n * The Han Dijit logos as path data, so React and Electron code can draw them inline.\n * `body` takes `currentColor`; `dot` is the square dot of the mark and takes the accent.\n */\n// prettier-ignore\nconst logos: Logos = {\n mark: {\n viewBox: \"0 0 618.034 1000\",\n width: 618.034,\n height: 1000,\n body: \"M40.325 1000 L130.495 1000 L170.82 959.675 L170.82 554.175 L447.214 554.175 L447.214 959.675 L487.539 1000 L577.709 1000 L618.034 959.675 L618.034 439.083 L577.709 398.758 L170.82 398.758 L170.82 40.325 L130.495 0 L40.325 0 L0 40.325 L0 959.675 Z\",\n dot: \"M487.539 0 L577.709 0 L618.034 40.325 L618.034 130.495 L577.709 170.82 L487.539 170.82 L447.214 130.495 L447.214 40.325 Z\",\n },\n horizontal: {\n viewBox: \"0 0 6004.732 1109.971\",\n width: 6004.732,\n height: 1109.971,\n body: \"M44.76 1109.971 L144.846 1109.971 L189.605 1065.212 L189.605 615.118 L496.395 615.118 L496.395 1065.212 L541.154 1109.971 L641.24 1109.971 L686 1065.212 L686 487.37 L641.24 442.61 L189.605 442.61 L189.605 44.76 L144.846 0 L44.76 0 L0 44.76 L0 1065.212 Z M949.732 1109.971 1216.732 423.971H1380.732L1648.732 1109.971H1507.732L1452.732 963.971H1138.732L1083.732 1109.971ZM1179.732 853.971H1410.732L1341.732 667.971Q1337.732 657.971 1332.232 642.471Q1326.732 626.971 1320.732 608.471Q1314.732 589.971 1308.732 570.971Q1302.732 551.971 1297.732 536.971H1292.732Q1286.732 556.971 1278.232 582.971Q1269.732 608.971 1261.732 631.971Q1253.732 654.971 1248.732 667.971Z M1859.732 1109.971V423.971H1983.732L2276.732 828.971Q2281.732 834.971 2288.732 845.471Q2295.732 855.971 2301.732 865.971Q2307.732 875.971 2309.732 881.971H2314.732Q2314.732 867.971 2314.732 854.971Q2314.732 841.971 2314.732 828.971V423.971H2439.732V1109.971H2316.732L2022.732 701.971Q2014.732 689.971 2004.232 672.471Q1993.732 654.971 1989.732 647.971H1984.732Q1984.732 660.971 1984.732 674.471Q1984.732 687.971 1984.732 701.971V1109.971Z M3125.732 1109.971V423.971H3390.732Q3496.732 423.971 3571.732 460.471Q3646.732 496.971 3687.232 572.471Q3727.732 647.971 3727.732 766.971Q3727.732 884.971 3687.232 960.971Q3646.732 1036.971 3571.732 1073.471Q3496.732 1109.971 3390.732 1109.971ZM3237.732 1013.971H3389.732Q3442.732 1013.971 3484.232 999.971Q3525.732 985.971 3554.232 956.971Q3582.732 927.971 3597.232 883.471Q3611.732 838.971 3611.732 777.971V756.971Q3611.732 694.971 3597.232 650.471Q3582.732 605.971 3554.232 576.971Q3525.732 547.971 3484.232 533.971Q3442.732 519.971 3389.732 519.971H3237.732Z M3986.732 1109.971V423.971H4098.732V1109.971Z M4013.172 231.971 H4072.292 L4098.732 258.411 V317.532 L4072.292 343.971 H4013.172 L3986.732 317.532 V258.411 Z M4573.732 1121.971Q4500.732 1121.971 4449.732 1098.971Q4398.732 1075.971 4371.732 1031.971Q4344.732 987.971 4344.732 921.971V888.971H4455.732V924.971Q4455.732 973.971 4485.732 1000.471Q4515.732 1026.971 4573.732 1026.971Q4630.732 1026.971 4660.732 988.971Q4690.732 950.971 4690.732 879.971V423.971H4802.732V877.971Q4802.732 958.971 4775.732 1013.471Q4748.732 1067.971 4697.732 1094.971Q4646.732 1121.971 4573.732 1121.971Z M5091.732 1109.971V423.971H5203.732V1109.971Z M5118.172 231.971 H5177.292 L5203.732 258.411 V317.532 L5177.292 343.971 H5118.172 L5091.732 317.532 V258.411 Z M5663.732 1109.971V519.971H5436.732V423.971H6004.732V519.971H5775.732V1109.971Z\",\n dot: \"M541.154 0 L641.24 0 L686 44.76 L686 144.846 L641.24 189.605 L541.154 189.605 L496.395 144.846 L496.395 44.76 Z\",\n },\n};\n\nexport default logos;\n","import type { Motion } from '../types';\n\n/**\n * Durations (ms) and easings. `tokens.css` collapses the durations under\n * `prefers-reduced-motion: reduce`; code that animates from JavaScript has to check the\n * media query itself.\n */\nconst motion: Motion = {\n duration: { fast: 120, base: 200, slow: 320 },\n easing: {\n standard: 'cubic-bezier(0.2, 0, 0, 1)',\n enter: 'cubic-bezier(0, 0, 0, 1)',\n exit: 'cubic-bezier(0.3, 0, 1, 1)',\n },\n};\n\nexport default motion;\n","import type { Radii } from '../types';\n\n/** Corner radii in CSS pixels. `pill` is large enough to round any control fully. */\nconst radii: Radii = {\n xs: 6,\n sm: 10,\n md: 14,\n lg: 20,\n pill: 999,\n};\n\nexport default radii;\n","import type { Spacing } from '../types';\n\n/** The spacing scale in CSS pixels: every step is its name × 4px. */\nconst spacing: Spacing = {\n 0: 0,\n 1: 4,\n 2: 8,\n 3: 12,\n 4: 16,\n 5: 20,\n 6: 24,\n 8: 32,\n 10: 40,\n 12: 48,\n 16: 64,\n 20: 80,\n 24: 96,\n};\n\nexport default spacing;\n","/** The attribute that selects a theme: `<html data-theme=\"dark\">`. */\nconst THEME_ATTRIBUTE = 'data-theme' as const;\n\nexport default THEME_ATTRIBUTE;\n","/**\n * The `localStorage` key holding the user's choice: `\"light\"`, `\"dark\"`, or anything else\n * (including no entry) for \"follow the system\".\n */\nconst THEME_STORAGE_KEY = 'hd-theme' as const;\n\nexport default THEME_STORAGE_KEY;\n","import type { Typography } from '../types';\n\n/**\n * The type scale. Sizes are CSS pixels at a 16px root (body is 15px); headings are set in\n * the display family, slightly wide (`stretch` above 100) and tight.\n */\nconst typography: Typography = {\n display: {\n font: 'display',\n size: 56,\n lineHeight: 1.05,\n weight: 700,\n letterSpacing: -0.03,\n stretch: 112,\n },\n h1: {\n font: 'display',\n size: 40,\n lineHeight: 1.1,\n weight: 700,\n letterSpacing: -0.025,\n stretch: 110,\n },\n h2: {\n font: 'display',\n size: 30,\n lineHeight: 1.15,\n weight: 700,\n letterSpacing: -0.02,\n stretch: 110,\n },\n h3: {\n font: 'display',\n size: 22,\n lineHeight: 1.2,\n weight: 650,\n letterSpacing: -0.015,\n stretch: 108,\n },\n h4: {\n font: 'display',\n size: 18,\n lineHeight: 1.3,\n weight: 650,\n letterSpacing: -0.01,\n stretch: 108,\n },\n lead: {\n font: 'body',\n size: 17,\n lineHeight: 1.55,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n body: {\n font: 'body',\n size: 15,\n lineHeight: 1.55,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n small: {\n font: 'body',\n size: 13,\n lineHeight: 1.5,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n caption: {\n font: 'body',\n size: 12,\n lineHeight: 1.4,\n weight: 500,\n letterSpacing: 0.01,\n stretch: 100,\n },\n code: {\n font: 'mono',\n size: 13,\n lineHeight: 1.5,\n weight: 400,\n letterSpacing: 0,\n stretch: 100,\n },\n};\n\nexport default typography;\n"],"names":[],"mappings":";;AAGA,MAAM,WAAW,GAAG,iCAAiC;AAErD;AACA,MAAM,QAAQ,GAAG,CAAC,OAAe,KAC/B,OAAO,IAAI,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,CAAC,CAAC,OAAO,GAAG,KAAK,IAAI,KAAK,KAAK,GAAG;AAE3E;AACA,MAAM,OAAO,GAAG,CAAC,OAAe,KAC9B,OAAO,IAAI,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,KAAK,CAAC,GAAG,GAAG,CAAC,GAAG,KAAK;AAE/E,MAAM,QAAQ,GAAG,CAAC,KAAc,KAC9B,OAAO,KAAK,KAAK,QAAQ,GAAG,IAAI,KAAK,CAAA,CAAA,CAAG,GAAG,OAAO,KAAK;AAEzD;AACA,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAE,MAAc,KAAS;AACvD,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC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EAAE;AACR,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,MAAM,EAAE,GAAG;AACX,QAAA,aAAa,EAAE,IAAI;AACnB,QAAA,OAAO,EAAE,GAAG;AACb,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,MAAM,EAAE,GAAG;AACX,QAAA,aAAa,EAAE,CAAC;AAChB,QAAA,OAAO,EAAE,GAAG;AACb,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -13,7 +13,7 @@ type Oklch = {
13
13
  type ThemeName = 'light' | 'dark';
14
14
  /** What the user picked; `system` follows the operating system. */
15
15
  type ThemePreference = ThemeName | 'system';
16
- type ChromaticScaleName = 'cobalt' | 'coral' | 'turquoise' | 'success' | 'warning' | 'danger' | 'violet' | 'magenta';
16
+ type ChromaticScaleName = 'cobalt' | 'coral' | 'success' | 'warning' | 'danger' | 'violet' | 'magenta';
17
17
  type ScaleName = ChromaticScaleName | 'slate';
18
18
  type ChromaticStep = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
19
19
  type NeutralStep = 0 | 25 | ChromaticStep;
@@ -26,7 +26,7 @@ type HueName = ChromaticScaleName;
26
26
  type StatusName = 'success' | 'warning' | 'danger' | 'info';
27
27
  type ChartIndex = 1 | 2 | 3 | 4 | 5 | 6;
28
28
  /** Every theme-dependent colour. Values are always opaque `#rrggbb`. */
29
- type ColorToken = 'bg-page' | 'bg-surface' | 'bg-raised' | 'bg-inset' | 'bg-overlay' | 'bg-disabled' | 'border' | 'border-strong' | 'border-control' | 'text' | 'text-2' | 'text-3' | 'text-disabled' | 'primary' | 'primary-hover' | 'primary-active' | 'on-primary' | 'primary-soft' | 'primary-soft-hover' | 'primary-line' | 'primary-text' | 'accent' | 'accent-hover' | 'accent-active' | 'on-accent' | 'accent-soft' | 'accent-text' | 'highlight' | 'on-highlight' | 'highlight-soft' | 'highlight-text' | 'focus' | 'selection-bg' | `${StatusName}-${'bg' | 'fg' | 'line' | 'solid' | 'on-solid'}` | `chart-${ChartIndex}` | 'band-bg' | 'band-deep' | 'band-line' | 'band-line-strong' | 'band-text' | 'band-text-2';
29
+ type ColorToken = 'bg-page' | 'bg-surface' | 'bg-raised' | 'bg-inset' | 'bg-overlay' | 'bg-disabled' | 'border' | 'border-strong' | 'border-control' | 'text' | 'text-2' | 'text-3' | 'text-disabled' | 'primary' | 'primary-hover' | 'primary-active' | 'on-primary' | 'primary-soft' | 'primary-soft-hover' | 'primary-line' | 'primary-text' | 'accent' | 'accent-hover' | 'accent-active' | 'on-accent' | 'accent-soft' | 'accent-text' | 'focus' | 'selection-bg' | `${StatusName}-${'bg' | 'fg' | 'line' | 'solid' | 'on-solid'}` | `chart-${ChartIndex}` | 'band-bg' | 'band-deep' | 'band-line' | 'band-line-strong' | 'band-text' | 'band-text-2' | 'band-focus' | 'band-edge';
30
30
  type Theme = Readonly<Record<ColorToken, string>>;
31
31
  type Themes = Readonly<Record<ThemeName, Theme>>;
32
32
  type FontRole = 'display' | 'body' | 'mono';
@@ -67,6 +67,34 @@ type ThemeEffects = {
67
67
  readonly 'shadow-3': string;
68
68
  /** Translucent backdrop behind dialogs. */
69
69
  readonly scrim: string;
70
+ /** First stop of the band's vertical gradient (`band-bg`). */
71
+ readonly 'band-gradient-from': string;
72
+ /** Last stop of the band's vertical gradient (`band-deep`). */
73
+ readonly 'band-gradient-to': string;
74
+ /** How far down the band holds its first colour before it deepens, as a percentage. */
75
+ readonly 'band-gradient-hold': string;
76
+ /** Centre colour of the soft glows on the band (`primary`). */
77
+ readonly 'band-glow': string;
78
+ /** Opacity of a glow at its centre; it fades to 0 at its edge. */
79
+ readonly 'band-glow-alpha': string;
80
+ /** Colour of the dots of the band's dot grid (`band-line-strong`). */
81
+ readonly 'band-dot': string;
82
+ /** Opacity of the dot grid at the band's edge; it fades to 0 towards the content. */
83
+ readonly 'band-dot-alpha': string;
84
+ /** Side of one cell of the dot grid. */
85
+ readonly 'band-dot-cell': string;
86
+ /** Radius of one dot. */
87
+ readonly 'band-dot-radius': string;
88
+ /** Top stop of a blueprint supergraphic's fill (`band-line`). */
89
+ readonly 'band-blueprint-from': string;
90
+ /** Bottom stop of a blueprint supergraphic's fill (`band-bg`). */
91
+ readonly 'band-blueprint-to': string;
92
+ /** Where the blueprint fill reaches its bottom colour, as a percentage. */
93
+ readonly 'band-blueprint-hold': string;
94
+ /** Outline of a blueprint supergraphic (`band-line-strong`). */
95
+ readonly 'band-blueprint-stroke': string;
96
+ /** The soft coral glow of the conversion button on the band, as a `box-shadow`. */
97
+ readonly 'band-accent-glow': string;
70
98
  };
71
99
  type EffectToken = keyof ThemeEffects;
72
100
  type Effects = Readonly<Record<ThemeName, ThemeEffects>>;
@@ -77,6 +105,13 @@ type EffectTone = {
77
105
  /** Opacity, 0 (transparent) to 1 (solid). */
78
106
  readonly alpha: number;
79
107
  };
108
+ /** One colour stop of a gradient. */
109
+ type GradientStop = {
110
+ /** Position along the gradient, 0 (start) to 1 (end). */
111
+ readonly offset: number;
112
+ /** The colour as an opaque `#rrggbb`. */
113
+ readonly color: string;
114
+ };
80
115
  /** One layer of an elevation shadow; lengths are CSS pixels. */
81
116
  type ShadowLayer = {
82
117
  /** Horizontal offset. */
@@ -98,6 +133,50 @@ type ThemeEffectValues = {
98
133
  readonly shadows: Readonly<Record<ShadowLevel, readonly ShadowLayer[]>>;
99
134
  /** Translucent backdrop behind dialogs. */
100
135
  readonly scrim: EffectTone;
136
+ /** The decorative layers of the brand band; the same in both themes. */
137
+ readonly band: BandEffectValues;
138
+ };
139
+ /** The brand band's imagery as hex and numbers: gradient, glow, dot grid, blueprint, CTA glow. */
140
+ type BandEffectValues = {
141
+ /** The band's vertical background, top to bottom. */
142
+ readonly gradient: readonly GradientStop[];
143
+ /** The soft glow: its centre colour and opacity; it fades to transparent at its edge. */
144
+ readonly glow: EffectTone;
145
+ /** The dot grid: dot colour, opacity at the band's edge, cell side and dot radius in pixels. */
146
+ readonly dots: EffectTone & {
147
+ readonly cell: number;
148
+ readonly radius: number;
149
+ };
150
+ /** A blueprint supergraphic: its fill top to bottom and its outline colour. */
151
+ readonly blueprint: {
152
+ readonly fill: readonly GradientStop[];
153
+ readonly stroke: string;
154
+ };
155
+ /** The glow of the conversion button on the band, painted in `color`. */
156
+ readonly accentGlow: {
157
+ readonly color: string;
158
+ readonly layer: ShadowLayer;
159
+ };
160
+ };
161
+ /**
162
+ * The brand band's recipe as plain numbers: what every theme's band imagery is built from.
163
+ * The colours are not here; they are the theme's `band-*`, `primary` and `accent` roles.
164
+ */
165
+ type BandRecipe = {
166
+ /** Offset (0–1) down to which the band holds `band-bg` before it deepens into `band-deep`. */
167
+ readonly gradientHold: number;
168
+ /** Opacity of a glow at its centre. */
169
+ readonly glowAlpha: number;
170
+ /** Side of one dot-grid cell, in CSS pixels. */
171
+ readonly dotCell: number;
172
+ /** Radius of one dot, in CSS pixels. */
173
+ readonly dotRadius: number;
174
+ /** Opacity of the dot grid at the band's edge. */
175
+ readonly dotAlpha: number;
176
+ /** Offset (0–1) at which a blueprint fill reaches `band-bg`. */
177
+ readonly blueprintHold: number;
178
+ /** The conversion button's glow on the band; its opacity applies to the accent colour. */
179
+ readonly accentGlow: ShadowLayer;
101
180
  };
102
181
  type EffectValues = Readonly<Record<ThemeName, ThemeEffectValues>>;
103
182
  type DurationName = 'fast' | 'base' | 'slow';
@@ -165,11 +244,19 @@ declare const maxChroma: (l: number, h: number) => number;
165
244
  */
166
245
  declare const oklchToHex: (color: Oklch) => string;
167
246
 
247
+ /**
248
+ * The brand band's recipe: the numbers its imagery is drawn with, the same in every theme.
249
+ * The colours are the theme's roles (`band-*`, `primary`, `accent`); `effectValues` and
250
+ * `effects` pair the two. A component that draws the band reads its geometry here, because
251
+ * an SVG attribute (a pattern's cell, a gradient stop's offset) cannot read a custom property.
252
+ */
253
+ declare const band: BandRecipe;
254
+
168
255
  /** Viewport breakpoints in CSS pixels; each is the lower bound of its range. */
169
256
  declare const breakpoints: Breakpoints;
170
257
 
171
258
  /**
172
- * The shadows and the scrim as hex and numbers, for anything that cannot read a custom
259
+ * The shadows, the scrim and the band's imagery as hex and numbers, for anything that cannot read a custom
173
260
  * property: an Electron main process, an Open Graph image, a PDF. This is the single source;
174
261
  * the CSS strings in `effects` are rendered from it.
175
262
  */
@@ -177,8 +264,10 @@ declare const effectValues: EffectValues;
177
264
 
178
265
  /**
179
266
  * Theme-dependent values that are not plain colours: the three elevation shadows, the raw
180
- * shadow colour and opacity for custom shadows, and the dialog scrim. These are the CSS
181
- * strings of `effectValues`, which holds the same data as hex and numbers.
267
+ * shadow colour and opacity for custom shadows, the dialog scrim, and the brand band's
268
+ * imagery (gradient stops, glow, dot grid, blueprint, the conversion button's glow; the same
269
+ * in both themes, like the band). These are the CSS strings of `effectValues`, which holds
270
+ * the same data as hex and numbers.
182
271
  */
183
272
  declare const effects: Effects;
184
273
 
@@ -259,5 +348,5 @@ declare const themes: Themes;
259
348
  */
260
349
  declare const typography: Typography;
261
350
 
262
- export { CSS_VARIABLE_PREFIX, THEME_ATTRIBUTE, THEME_BOOT_SCRIPT, THEME_BOOT_SCRIPT_HASH, THEME_STORAGE_KEY, breakpoints, contrast, cssVar, cssVarName, deltaE, effectValues, effects, fontWeights, fonts, hexToOklch, hues, layers, logos, maxChroma, motion, oklchToHex, radii, scales, spacing, themes, typography };
263
- export type { BreakpointName, Breakpoints, ChartIndex, ChromaticScale, ChromaticScaleName, ChromaticStep, ColorToken, DurationName, EasingName, EffectToken, EffectTone, EffectValues, Effects, FontRole, FontWeightName, FontWeights, Fonts, HueName, LayerName, Layers, Logo, LogoName, Logos, Motion, NeutralScale, NeutralStep, Oklch, Radii, RadiusName, ScaleName, ScaleToken, Scales, ShadowLayer, ShadowLevel, SpaceStep, Spacing, StaticToken, StatusName, Theme, ThemeEffectValues, ThemeEffects, ThemeName, ThemePreference, ThemedToken, Themes, TokenName, TypeProperty, TypeRole, TypeStyle, Typography };
351
+ export { CSS_VARIABLE_PREFIX, THEME_ATTRIBUTE, THEME_BOOT_SCRIPT, THEME_BOOT_SCRIPT_HASH, THEME_STORAGE_KEY, band, breakpoints, contrast, cssVar, cssVarName, deltaE, effectValues, effects, fontWeights, fonts, hexToOklch, hues, layers, logos, maxChroma, motion, oklchToHex, radii, scales, spacing, themes, typography };
352
+ export type { BandEffectValues, BandRecipe, BreakpointName, Breakpoints, ChartIndex, ChromaticScale, ChromaticScaleName, ChromaticStep, ColorToken, DurationName, EasingName, EffectToken, EffectTone, EffectValues, Effects, FontRole, FontWeightName, FontWeights, Fonts, GradientStop, HueName, LayerName, Layers, Logo, LogoName, Logos, Motion, NeutralScale, NeutralStep, Oklch, Radii, RadiusName, ScaleName, ScaleToken, Scales, ShadowLayer, ShadowLevel, SpaceStep, Spacing, StaticToken, StatusName, Theme, ThemeEffectValues, ThemeEffects, ThemeName, ThemePreference, ThemedToken, Themes, TokenName, TypeProperty, TypeRole, TypeStyle, Typography };