@handijitcom/ui 3.6.1 → 3.8.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 (200) hide show
  1. package/README.md +275 -36
  2. package/build/chat.cjs +3 -3
  3. package/build/chat.cjs.map +1 -1
  4. package/build/chat.css +1 -1
  5. package/build/chat.js +168 -160
  6. package/build/chat.js.map +1 -1
  7. package/build/components/AddToCart/index.cjs +2 -0
  8. package/build/components/AddToCart/index.cjs.map +1 -0
  9. package/build/components/AddToCart/index.d.cts +31 -0
  10. package/build/components/AddToCart/index.d.ts +31 -0
  11. package/build/components/AddToCart/index.js +62 -0
  12. package/build/components/AddToCart/index.js.map +1 -0
  13. package/build/components/AddToCart/style.css +1 -0
  14. package/build/components/Alert/index.cjs +1 -1
  15. package/build/components/Alert/index.cjs.map +1 -1
  16. package/build/components/Alert/index.d.cts +7 -0
  17. package/build/components/Alert/index.d.ts +7 -0
  18. package/build/components/Alert/index.js +32 -19
  19. package/build/components/Alert/index.js.map +1 -1
  20. package/build/components/Alert/style.css +1 -1
  21. package/build/components/AppShell/style.css +1 -1
  22. package/build/components/AppliedFilters/style.css +1 -1
  23. package/build/components/CodeText/index.cjs.map +1 -1
  24. package/build/components/CodeText/index.js +11 -11
  25. package/build/components/CodeText/index.js.map +1 -1
  26. package/build/components/CommandPalette/style.css +1 -1
  27. package/build/components/Directory/style.css +1 -1
  28. package/build/components/EmptyState/style.css +1 -1
  29. package/build/components/FacetSection/index.cjs +1 -1
  30. package/build/components/FacetSection/index.cjs.map +1 -1
  31. package/build/components/FacetSection/index.js +145 -138
  32. package/build/components/FacetSection/index.js.map +1 -1
  33. package/build/components/FacetSection/style.css +1 -1
  34. package/build/components/FacetSidebar/index.cjs +1 -1
  35. package/build/components/FacetSidebar/index.cjs.map +1 -1
  36. package/build/components/FacetSidebar/index.js +22 -29
  37. package/build/components/FacetSidebar/index.js.map +1 -1
  38. package/build/components/Heading/index.cjs +2 -0
  39. package/build/components/Heading/index.cjs.map +1 -0
  40. package/build/components/Heading/index.d.cts +34 -0
  41. package/build/components/Heading/index.d.ts +34 -0
  42. package/build/components/Heading/index.js +44 -0
  43. package/build/components/Heading/index.js.map +1 -0
  44. package/build/components/Heading/style.css +1 -0
  45. package/build/components/MegaMenu/index.cjs +1 -1
  46. package/build/components/MegaMenu/index.cjs.map +1 -1
  47. package/build/components/MegaMenu/index.d.cts +5 -1
  48. package/build/components/MegaMenu/index.d.ts +5 -1
  49. package/build/components/MegaMenu/index.js +131 -111
  50. package/build/components/MegaMenu/index.js.map +1 -1
  51. package/build/components/MegaMenu/style.css +1 -1
  52. package/build/components/Modal/style.css +1 -1
  53. package/build/components/NotificationCenter/style.css +1 -1
  54. package/build/components/PageHeader/style.css +1 -1
  55. package/build/components/PartNumberList/index.cjs +2 -0
  56. package/build/components/PartNumberList/index.cjs.map +1 -0
  57. package/build/components/PartNumberList/index.d.cts +30 -0
  58. package/build/components/PartNumberList/index.d.ts +30 -0
  59. package/build/components/PartNumberList/index.js +36 -0
  60. package/build/components/PartNumberList/index.js.map +1 -0
  61. package/build/components/PartNumberList/style.css +1 -0
  62. package/build/components/Price/index.cjs +1 -1
  63. package/build/components/Price/index.cjs.map +1 -1
  64. package/build/components/Price/index.d.cts +5 -1
  65. package/build/components/Price/index.d.ts +5 -1
  66. package/build/components/Price/index.js +31 -32
  67. package/build/components/Price/index.js.map +1 -1
  68. package/build/components/Price/style.css +1 -1
  69. package/build/components/ProductCard/index.cjs +2 -0
  70. package/build/components/ProductCard/index.cjs.map +1 -0
  71. package/build/components/ProductCard/index.d.cts +55 -0
  72. package/build/components/ProductCard/index.d.ts +55 -0
  73. package/build/components/ProductCard/index.js +58 -0
  74. package/build/components/ProductCard/index.js.map +1 -0
  75. package/build/components/ProductCard/style.css +1 -0
  76. package/build/components/ProductRow/columns.cjs +2 -0
  77. package/build/components/ProductRow/columns.cjs.map +1 -0
  78. package/build/components/ProductRow/columns.d.cts +27 -0
  79. package/build/components/ProductRow/columns.d.ts +27 -0
  80. package/build/components/ProductRow/columns.js +83 -0
  81. package/build/components/ProductRow/columns.js.map +1 -0
  82. package/build/components/ProductRow/index.cjs +2 -0
  83. package/build/components/ProductRow/index.cjs.map +1 -0
  84. package/build/components/ProductRow/index.d.cts +25 -0
  85. package/build/components/ProductRow/index.d.ts +25 -0
  86. package/build/components/ProductRow/index.js +43 -0
  87. package/build/components/ProductRow/index.js.map +1 -0
  88. package/build/components/ProductRow/parts.cjs +2 -0
  89. package/build/components/ProductRow/parts.cjs.map +1 -0
  90. package/build/components/ProductRow/parts.d.cts +32 -0
  91. package/build/components/ProductRow/parts.d.ts +32 -0
  92. package/build/components/ProductRow/parts.js +31 -0
  93. package/build/components/ProductRow/parts.js.map +1 -0
  94. package/build/components/ProductRow/style.css +1 -0
  95. package/build/components/QuantityStepper/index.cjs +1 -1
  96. package/build/components/QuantityStepper/index.cjs.map +1 -1
  97. package/build/components/QuantityStepper/index.js +28 -28
  98. package/build/components/QuantityStepper/index.js.map +1 -1
  99. package/build/components/Radio/style.css +1 -1
  100. package/build/components/SectionHeader/style.css +1 -1
  101. package/build/components/SpecTable/index.cjs +2 -0
  102. package/build/components/SpecTable/index.cjs.map +1 -0
  103. package/build/components/SpecTable/index.d.cts +25 -0
  104. package/build/components/SpecTable/index.d.ts +25 -0
  105. package/build/components/SpecTable/index.js +25 -0
  106. package/build/components/SpecTable/index.js.map +1 -0
  107. package/build/components/SpecTable/style.css +1 -0
  108. package/build/components/Stat/index.cjs +1 -1
  109. package/build/components/Stat/index.cjs.map +1 -1
  110. package/build/components/Stat/index.d.cts +7 -3
  111. package/build/components/Stat/index.d.ts +7 -3
  112. package/build/components/Stat/index.js +61 -66
  113. package/build/components/Stat/index.js.map +1 -1
  114. package/build/components/StatCard/StatDelta.cjs +2 -0
  115. package/build/components/StatCard/StatDelta.cjs.map +1 -0
  116. package/build/components/StatCard/StatDelta.d.cts +17 -0
  117. package/build/components/StatCard/StatDelta.d.ts +17 -0
  118. package/build/components/StatCard/StatDelta.js +45 -0
  119. package/build/components/StatCard/StatDelta.js.map +1 -0
  120. package/build/components/StatCard/index.cjs +2 -0
  121. package/build/components/StatCard/index.cjs.map +1 -0
  122. package/build/components/StatCard/index.d.cts +36 -0
  123. package/build/components/StatCard/index.d.ts +36 -0
  124. package/build/components/StatCard/index.js +60 -0
  125. package/build/components/StatCard/index.js.map +1 -0
  126. package/build/components/StatCard/style.css +1 -0
  127. package/build/components/StatusCell/index.cjs +2 -0
  128. package/build/components/StatusCell/index.cjs.map +1 -0
  129. package/build/components/StatusCell/index.d.cts +28 -0
  130. package/build/components/StatusCell/index.d.ts +28 -0
  131. package/build/components/StatusCell/index.js +24 -0
  132. package/build/components/StatusCell/index.js.map +1 -0
  133. package/build/components/StatusCell/style.css +1 -0
  134. package/build/components/StockStatus/index.cjs +2 -0
  135. package/build/components/StockStatus/index.cjs.map +1 -0
  136. package/build/components/StockStatus/index.d.cts +28 -0
  137. package/build/components/StockStatus/index.d.ts +28 -0
  138. package/build/components/StockStatus/index.js +36 -0
  139. package/build/components/StockStatus/index.js.map +1 -0
  140. package/build/components/StockStatus/style.css +1 -0
  141. package/build/components/Table/style.css +1 -1
  142. package/build/components/Tabs/index.cjs +1 -1
  143. package/build/components/Tabs/index.cjs.map +1 -1
  144. package/build/components/Tabs/index.d.cts +26 -1
  145. package/build/components/Tabs/index.d.ts +26 -1
  146. package/build/components/Tabs/index.js +140 -112
  147. package/build/components/Tabs/index.js.map +1 -1
  148. package/build/components/Tabs/style.css +1 -1
  149. package/build/components/Text/index.cjs +2 -0
  150. package/build/components/Text/index.cjs.map +1 -0
  151. package/build/components/Text/index.d.cts +49 -0
  152. package/build/components/Text/index.d.ts +49 -0
  153. package/build/components/Text/index.js +47 -0
  154. package/build/components/Text/index.js.map +1 -0
  155. package/build/components/Text/style.css +1 -0
  156. package/build/components/Tooltip/index.cjs +1 -1
  157. package/build/components/Tooltip/index.cjs.map +1 -1
  158. package/build/components/Tooltip/index.js +27 -27
  159. package/build/components/Tooltip/index.js.map +1 -1
  160. package/build/components/VehicleTypeList/index.cjs +2 -0
  161. package/build/components/VehicleTypeList/index.cjs.map +1 -0
  162. package/build/components/VehicleTypeList/index.d.cts +17 -0
  163. package/build/components/VehicleTypeList/index.d.ts +17 -0
  164. package/build/components/VehicleTypeList/index.js +47 -0
  165. package/build/components/VehicleTypeList/index.js.map +1 -0
  166. package/build/components/VehicleTypeList/style.css +1 -0
  167. package/build/design/index.cjs +12 -2
  168. package/build/design/index.cjs.map +1 -1
  169. package/build/design/index.d.cts +1 -5
  170. package/build/design/index.d.mts +1 -5
  171. package/build/design/index.mjs +12 -2
  172. package/build/design/index.mjs.map +1 -1
  173. package/build/design/index.umd.cjs +1 -1
  174. package/build/design/index.umd.cjs.map +1 -1
  175. package/build/design/tokens.css +29 -4
  176. package/build/design/tokens.json +42 -2
  177. package/build/design/tokens.scss +55 -0
  178. package/build/helpers/text.helper.cjs +1 -1
  179. package/build/helpers/text.helper.cjs.map +1 -1
  180. package/build/helpers/text.helper.d.cts +5 -0
  181. package/build/helpers/text.helper.d.ts +5 -0
  182. package/build/helpers/text.helper.js +3 -2
  183. package/build/helpers/text.helper.js.map +1 -1
  184. package/build/index.cjs +1 -1
  185. package/build/index.d.cts +13 -2
  186. package/build/index.d.ts +13 -2
  187. package/build/index.js +203 -179
  188. package/build/index.js.map +1 -1
  189. package/build/scss/_mixins.scss +101 -13
  190. package/build/scss/_variables.scss +5 -1
  191. package/build/styles.css +43 -17
  192. package/build/types/chat/DescriptionList/index.d.cts +6 -0
  193. package/build/types/chat/DescriptionList/index.d.ts +6 -0
  194. package/build/types/stat.type.d.cts +2 -0
  195. package/build/types/stat.type.d.ts +2 -0
  196. package/build/types/theme.type.d.cts +25 -0
  197. package/build/types/theme.type.d.ts +25 -0
  198. package/build/types/types/theme.type.d.cts +25 -0
  199. package/build/types/types/theme.type.d.ts +25 -0
  200. package/package.json +111 -1
@@ -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/brand-surface.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 { BrandSurfaceRecipe } from '../types';\n\n/**\n * The brand surface's recipe: the numbers its imagery is drawn with, the same in every theme.\n * The colours are the theme's roles (`primary`, `brand-surface-deep`, `on-primary`, `accent`);\n * `effectValues` and `effects` pair the two. A component that draws the surface reads its\n * geometry here, because an SVG attribute (a pattern's cell, a gradient stop's offset) cannot\n * read a custom property.\n */\nconst brandSurface: BrandSurfaceRecipe = {\n gradientHold: 0.55,\n lineAlpha: 0.24,\n // White text on `primary` is 5.03:1; over a glow's centre at 6% it is still 4.58:1 (gated).\n // At 8% it would fall to 4.40:1, which is why the glow is a sheen and not a light.\n glowAlpha: 0.06,\n dotCell: 22,\n dotRadius: 1.6,\n dotAlpha: 0.22,\n blueprintHold: 0.7,\n blueprintFillAlpha: 0.16,\n blueprintStrokeAlpha: 0.4,\n accentGlow: { x: 0, y: 8, blur: 24, spread: -10, alpha: 0.45 },\n};\n\nexport default brandSurface;\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/**\n * OKLCH hue angle of every chromatic family: the brand's cobalt and coral, and red for danger,\n * the one status colour. The neutrals (`ink`) lean to the cobalt angle, which is ink's own.\n */\nconst hues: Readonly<Record<HueName, number>> = {\n cobalt: 264,\n coral: 33,\n danger: 14,\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,KAAK,CAAC,EAAE;AACzD,QAAA,MAAM,IAAI,SAAS,CACjB,CAAA,EAAG,MAAM,CAAA,iDAAA,EAAoD,QAAQ,CAAC,KAAK,CAAC,CAAA,CAAE,CAC/E;IACH;IAEA,MAA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,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/brand-surface.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 { BrandSurfaceRecipe } from '../types';\n\n/**\n * The brand surface's recipe: the numbers its imagery is drawn with, the same in every theme.\n * The colours are the theme's roles (`primary`, `brand-surface-deep`, `on-primary`, `accent`);\n * `effectValues` and `effects` pair the two. A component that draws the surface reads its\n * geometry here, because an SVG attribute (a pattern's cell, a gradient stop's offset) cannot\n * read a custom property.\n */\nconst brandSurface: BrandSurfaceRecipe = {\n gradientHold: 0.55,\n lineAlpha: 0.24,\n // White text on `primary` is 5.03:1; over a glow's centre at 6% it is still 4.58:1 (gated).\n // At 8% it would fall to 4.40:1, which is why the glow is a sheen and not a light.\n glowAlpha: 0.06,\n dotCell: 22,\n dotRadius: 1.6,\n dotAlpha: 0.22,\n blueprintHold: 0.7,\n blueprintFillAlpha: 0.16,\n blueprintStrokeAlpha: 0.4,\n accentGlow: { x: 0, y: 8, blur: 24, spread: -10, alpha: 0.45 },\n};\n\nexport default brandSurface;\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/**\n * OKLCH hue angle of every chromatic family: the brand's cobalt and coral, and red for danger,\n * the one status colour. The neutrals (`ink`) lean to the cobalt angle, which is ink's own.\n */\nconst hues: Readonly<Record<HueName, number>> = {\n cobalt: 264,\n coral: 33,\n danger: 14,\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 *\n * `title-1` … `title-5` (3.7) are the headings of an interface — a portal, a panel, a product\n * page: the display family at its normal width and one weight, 600, from 32 down to 15px. The\n * wide 650–700 roles above read as a poster next to 13–15px data and stay for marketing pages.\n */\nconst title = (size: number, lineHeight: number, letterSpacing: number) =>\n ({ font: 'display', size, lineHeight, weight: 600, letterSpacing, stretch: 100 }) as const;\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 'title-1': title(32, 1.2, -0.015),\n 'title-2': title(28, 1.25, -0.012),\n 'title-3': title(22, 1.3, -0.008),\n 'title-4': title(18, 1.35, -0.004),\n 'title-5': title(15, 1.4, 0),\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,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AC,CAAC;AAC5B,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,UAAU,EAAE,IAAI;AAChB,QAAA,MAAM,EAAE,GAAG;AACX,QAAA,aAAa,EAAE,CAAC;AAChB,QAAA,OAAO,EAAE,GAAG;AACb,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,UAAU,EAAE,IAAI;AAChB,QAAA,MAAM,EAAE,GAAG;AACX,QAAA,aAAa,EAAE,CAAC;AAChB,QAAA,OAAO,EAAE,GAAG;AACb,KAAA;AACD,IAAA,KAAK,EAAE;AACL,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;AACD,IAAA,OAAO,EAAE;AACP,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,IAAI,EAAE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -34,7 +34,7 @@ type FontRole = 'display' | 'body' | 'mono';
34
34
  type Fonts = Readonly<Record<FontRole, string>>;
35
35
  type FontWeightName = 'regular' | 'medium' | 'semibold' | 'bold';
36
36
  type FontWeights = Readonly<Record<FontWeightName, number>>;
37
- type TypeRole = 'display' | 'h1' | 'h2' | 'h3' | 'h4' | 'lead' | 'body' | 'small' | 'caption' | 'code';
37
+ type TypeRole = 'display' | 'h1' | 'h2' | 'h3' | 'h4' | 'title-1' | 'title-2' | 'title-3' | 'title-4' | 'title-5' | 'lead' | 'body' | 'small' | 'caption' | 'code';
38
38
  type TypeStyle = {
39
39
  /** Which family stack the role is set in. */
40
40
  readonly font: FontRole;
@@ -351,10 +351,6 @@ declare const THEME_STORAGE_KEY: "hd-theme";
351
351
  */
352
352
  declare const themes: Themes;
353
353
 
354
- /**
355
- * The type scale. Sizes are CSS pixels at a 16px root (body is 15px); headings are set in
356
- * the display family, slightly wide (`stretch` above 100) and tight.
357
- */
358
354
  declare const typography: Typography;
359
355
 
360
356
  export { CSS_VARIABLE_PREFIX, THEME_ATTRIBUTE, THEME_BOOT_SCRIPT, THEME_BOOT_SCRIPT_HASH, THEME_STORAGE_KEY, brandSurface, breakpoints, contrast, cssVar, cssVarName, deltaE, effectValues, effects, fontWeights, fonts, hexToOklch, hues, layers, logos, maxChroma, motion, oklchToHex, radii, scales, spacing, themes, typography };
@@ -34,7 +34,7 @@ type FontRole = 'display' | 'body' | 'mono';
34
34
  type Fonts = Readonly<Record<FontRole, string>>;
35
35
  type FontWeightName = 'regular' | 'medium' | 'semibold' | 'bold';
36
36
  type FontWeights = Readonly<Record<FontWeightName, number>>;
37
- type TypeRole = 'display' | 'h1' | 'h2' | 'h3' | 'h4' | 'lead' | 'body' | 'small' | 'caption' | 'code';
37
+ type TypeRole = 'display' | 'h1' | 'h2' | 'h3' | 'h4' | 'title-1' | 'title-2' | 'title-3' | 'title-4' | 'title-5' | 'lead' | 'body' | 'small' | 'caption' | 'code';
38
38
  type TypeStyle = {
39
39
  /** Which family stack the role is set in. */
40
40
  readonly font: FontRole;
@@ -351,10 +351,6 @@ declare const THEME_STORAGE_KEY: "hd-theme";
351
351
  */
352
352
  declare const themes: Themes;
353
353
 
354
- /**
355
- * The type scale. Sizes are CSS pixels at a 16px root (body is 15px); headings are set in
356
- * the display family, slightly wide (`stretch` above 100) and tight.
357
- */
358
354
  declare const typography: Typography;
359
355
 
360
356
  export { CSS_VARIABLE_PREFIX, THEME_ATTRIBUTE, THEME_BOOT_SCRIPT, THEME_BOOT_SCRIPT_HASH, THEME_STORAGE_KEY, brandSurface, breakpoints, contrast, cssVar, cssVarName, deltaE, effectValues, effects, fontWeights, fonts, hexToOklch, hues, layers, logos, maxChroma, motion, oklchToHex, radii, scales, spacing, themes, typography };
@@ -594,7 +594,7 @@ const THEME_STORAGE_KEY = 'hd-theme';
594
594
 
595
595
  var themes = {
596
596
  "light": {
597
- "bg-page": "#fafbfe",
597
+ "bg-page": "#eef2f9",
598
598
  "bg-surface": "#ffffff",
599
599
  "bg-raised": "#f4f6fb",
600
600
  "bg-inset": "#ecf0f6",
@@ -605,7 +605,7 @@ var themes = {
605
605
  "border-control": "#80899b",
606
606
  "text": "#091122",
607
607
  "text-2": "#515b6e",
608
- "text-3": "#677083",
608
+ "text-3": "#626c7f",
609
609
  "text-disabled": "#a1a9ba",
610
610
  "primary": "#2661fa",
611
611
  "primary-hover": "#053dea",
@@ -694,7 +694,12 @@ var themes = {
694
694
  /**
695
695
  * The type scale. Sizes are CSS pixels at a 16px root (body is 15px); headings are set in
696
696
  * the display family, slightly wide (`stretch` above 100) and tight.
697
+ *
698
+ * `title-1` … `title-5` (3.7) are the headings of an interface — a portal, a panel, a product
699
+ * page: the display family at its normal width and one weight, 600, from 32 down to 15px. The
700
+ * wide 650–700 roles above read as a poster next to 13–15px data and stay for marketing pages.
697
701
  */
702
+ const title = (size, lineHeight, letterSpacing) => ({ font: 'display', size, lineHeight, weight: 600, letterSpacing, stretch: 100 });
698
703
  const typography = {
699
704
  display: {
700
705
  font: 'display',
@@ -736,6 +741,11 @@ const typography = {
736
741
  letterSpacing: -0.01,
737
742
  stretch: 108,
738
743
  },
744
+ 'title-1': title(32, 1.2, -0.015),
745
+ 'title-2': title(28, 1.25, -0.012),
746
+ 'title-3': title(22, 1.3, -8e-3),
747
+ 'title-4': title(18, 1.35, -4e-3),
748
+ 'title-5': title(15, 1.4, 0),
739
749
  lead: {
740
750
  font: 'body',
741
751
  size: 17,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","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/brand-surface.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 { BrandSurfaceRecipe } from '../types';\n\n/**\n * The brand surface's recipe: the numbers its imagery is drawn with, the same in every theme.\n * The colours are the theme's roles (`primary`, `brand-surface-deep`, `on-primary`, `accent`);\n * `effectValues` and `effects` pair the two. A component that draws the surface reads its\n * geometry here, because an SVG attribute (a pattern's cell, a gradient stop's offset) cannot\n * read a custom property.\n */\nconst brandSurface: BrandSurfaceRecipe = {\n gradientHold: 0.55,\n lineAlpha: 0.24,\n // White text on `primary` is 5.03:1; over a glow's centre at 6% it is still 4.58:1 (gated).\n // At 8% it would fall to 4.40:1, which is why the glow is a sheen and not a light.\n glowAlpha: 0.06,\n dotCell: 22,\n dotRadius: 1.6,\n dotAlpha: 0.22,\n blueprintHold: 0.7,\n blueprintFillAlpha: 0.16,\n blueprintStrokeAlpha: 0.4,\n accentGlow: { x: 0, y: 8, blur: 24, spread: -10, alpha: 0.45 },\n};\n\nexport default brandSurface;\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/**\n * OKLCH hue angle of every chromatic family: the brand's cobalt and coral, and red for danger,\n * the one status colour. The neutrals (`ink`) lean to the cobalt angle, which is ink's own.\n */\nconst hues: Readonly<Record<HueName, number>> = {\n cobalt: 264,\n coral: 33,\n danger: 14,\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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AAE,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.mjs","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/brand-surface.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 { BrandSurfaceRecipe } from '../types';\n\n/**\n * The brand surface's recipe: the numbers its imagery is drawn with, the same in every theme.\n * The colours are the theme's roles (`primary`, `brand-surface-deep`, `on-primary`, `accent`);\n * `effectValues` and `effects` pair the two. A component that draws the surface reads its\n * geometry here, because an SVG attribute (a pattern's cell, a gradient stop's offset) cannot\n * read a custom property.\n */\nconst brandSurface: BrandSurfaceRecipe = {\n gradientHold: 0.55,\n lineAlpha: 0.24,\n // White text on `primary` is 5.03:1; over a glow's centre at 6% it is still 4.58:1 (gated).\n // At 8% it would fall to 4.40:1, which is why the glow is a sheen and not a light.\n glowAlpha: 0.06,\n dotCell: 22,\n dotRadius: 1.6,\n dotAlpha: 0.22,\n blueprintHold: 0.7,\n blueprintFillAlpha: 0.16,\n blueprintStrokeAlpha: 0.4,\n accentGlow: { x: 0, y: 8, blur: 24, spread: -10, alpha: 0.45 },\n};\n\nexport default brandSurface;\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/**\n * OKLCH hue angle of every chromatic family: the brand's cobalt and coral, and red for danger,\n * the one status colour. The neutrals (`ink`) lean to the cobalt angle, which is ink's own.\n */\nconst hues: Readonly<Record<HueName, number>> = {\n cobalt: 264,\n coral: 33,\n danger: 14,\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 *\n * `title-1` … `title-5` (3.7) are the headings of an interface — a portal, a panel, a product\n * page: the display family at its normal width and one weight, 600, from 32 down to 15px. The\n * wide 650–700 roles above read as a poster next to 13–15px data and stay for marketing pages.\n */\nconst title = (size: number, lineHeight: number, letterSpacing: number) =>\n ({ font: 'display', size, lineHeight, weight: 600, letterSpacing, stretch: 100 }) as const;\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 'title-1': title(32, 1.2, -0.015),\n 'title-2': title(28, 1.25, -0.012),\n 'title-3': title(22, 1.3, -0.008),\n 'title-4': title(18, 1.35, -0.004),\n 'title-5': title(15, 1.4, 0),\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,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}
@@ -1,2 +1,2 @@
1
- !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports):"function"==typeof define&&define.amd?define(["exports"],a):a((e="undefined"!=typeof globalThis?globalThis:e||self).handijitDesign={})}(this,function(e){"use strict";const a=/^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i,r=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,t=e=>e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055,f=(e,r)=>{if("string"!=typeof e||!a.test(e))throw new TypeError(`${r}: expected a hex colour like "#2661fa", received ${(e=>"string"==typeof e?`"${e}"`:typeof e)(e)}`);const t=e.slice(1),f=3===t.length?t.replace(/./g,e=>e+e):t,o=e=>parseInt(f.slice(e,e+2),16)/255;return{r:o(0),g:o(2),b:o(4)}},o=e=>Math.round(255*Math.min(1,Math.max(0,e))).toString(16).padStart(2,"0"),l=({r:e,g:a,b:r})=>`#${o(e)}${o(a)}${o(r)}`,d=({r:e,g:a,b:t})=>.2126*r(e)+.7152*r(a)+.0722*r(t),c=e=>`--hd-${e}`,i=({l:e,c:a,h:r})=>{const f=r*Math.PI/180,o=a*Math.cos(f),l=a*Math.sin(f),d=(e+.3963377774*o+.2158037573*l)**3,c=(e-.1055613458*o-.0638541728*l)**3,i=(e-.0894841775*o-1.291485548*l)**3;return{r:t(4.0767416621*d-3.3077115913*c+.2309699292*i),g:t(-1.2684380046*d+2.6097574011*c-.3413193965*i),b:t(-.0041960863*d-.7034186147*c+1.707614701*i)}},n=e=>e>=-1e-4&&e<=1.0001,s=({r:e,g:a,b:r})=>n(e)&&n(a)&&n(r),h=(e,a,r)=>{let t=0,f=r;for(let r=0;r<24;r+=1){const r=(t+f)/2;s(i({l:e,c:r,h:a}))?t=r:f=r}return t},b=e=>{const a=r(e.r),t=r(e.g),f=r(e.b),o=Math.cbrt(.4122214708*a+.5363325363*t+.0514459929*f),l=Math.cbrt(.2119034982*a+.6806995451*t+.1073969566*f),d=Math.cbrt(.0883024619*a+.2817188376*t+.6299787005*f);return{l:.2104542553*o+.793617785*l-.0040720468*d,a:1.9779984951*o-2.428592205*l+.4505937099*d,b:.0259040371*o+.7827717662*l-.808675766*d}},p=(e,a,r)=>{if("number"!=typeof e||!Number.isFinite(e))throw new TypeError(`${r}: ${a} must be a finite number, received ${String(e)}`)};e.CSS_VARIABLE_PREFIX="hd",e.THEME_ATTRIBUTE="data-theme",e.THEME_BOOT_SCRIPT='(function(){var r=document.documentElement,q=window.matchMedia("(prefers-color-scheme: dark)"),a=function(){var s;try{s=localStorage.getItem("hd-theme")}catch(e){}r.setAttribute("data-theme",s==="light"||s==="dark"?s:q.matches?"dark":"light")};a();q.addEventListener("change",a)})();',e.THEME_BOOT_SCRIPT_HASH="sha256-yBtu0+cpsTaiuo7oykT/pEhxNmKXW7Q0szD6rE70zOM=",e.THEME_STORAGE_KEY="hd-theme",e.brandSurface={gradientHold:.55,lineAlpha:.24,glowAlpha:.06,dotCell:22,dotRadius:1.6,dotAlpha:.22,blueprintHold:.7,blueprintFillAlpha:.16,blueprintStrokeAlpha:.4,accentGlow:{x:0,y:8,blur:24,spread:-10,alpha:.45}},e.breakpoints={sm:640,md:768,lg:1024,xl:1280},e.contrast=(e,a)=>{const r=d(f(e,"contrast")),t=d(f(a,"contrast"));return(Math.max(r,t)+.05)/(Math.min(r,t)+.05)},e.cssVar=(e,a)=>void 0===a?`var(${c(e)})`:`var(${c(e)}, ${a})`,e.cssVarName=c,e.deltaE=(e,a)=>{const r=b(f(e,"deltaE")),t=b(f(a,"deltaE"));return 100*Math.hypot(r.l-t.l,r.a-t.a,r.b-t.b)},e.effectValues={light:{shadow:{color:"#0f173c",alpha:.1},shadows:{1:[{x:0,y:1,blur:2,spread:0,alpha:.1}],2:[{x:0,y:1,blur:2,spread:0,alpha:.1},{x:0,y:12,blur:32,spread:-12,alpha:.2}],3:[{x:0,y:2,blur:4,spread:0,alpha:.1},{x:0,y:24,blur:56,spread:-16,alpha:.3}]},scrim:{color:"#091122",alpha:.48},brandSurface:{gradient:[{offset:0,color:"#2661fa"},{offset:.55,color:"#2661fa"},{offset:1,color:"#0631b2"}],line:{color:"#ffffff",alpha:.24},glow:{color:"#ffffff",alpha:.06},dots:{color:"#ffffff",alpha:.22,cell:22,radius:1.6},blueprint:{color:"#ffffff",fillAlpha:.16,hold:.7,strokeAlpha:.4,dot:"#fb6041"},accentGlow:{color:"#fb6041",layer:{x:0,y:8,blur:24,spread:-10,alpha:.45}}}},dark:{shadow:{color:"#000000",alpha:.45},shadows:{1:[{x:0,y:1,blur:2,spread:0,alpha:.45}],2:[{x:0,y:1,blur:2,spread:0,alpha:.45},{x:0,y:12,blur:32,spread:-12,alpha:.9}],3:[{x:0,y:2,blur:4,spread:0,alpha:.45},{x:0,y:24,blur:56,spread:-16,alpha:.9}]},scrim:{color:"#040813",alpha:.64},brandSurface:{gradient:[{offset:0,color:"#2661fa"},{offset:.55,color:"#2661fa"},{offset:1,color:"#0631b2"}],line:{color:"#ffffff",alpha:.24},glow:{color:"#ffffff",alpha:.06},dots:{color:"#ffffff",alpha:.22,cell:22,radius:1.6},blueprint:{color:"#ffffff",fillAlpha:.16,hold:.7,strokeAlpha:.4,dot:"#fb6041"},accentGlow:{color:"#fb6041",layer:{x:0,y:8,blur:24,spread:-10,alpha:.45}}}}},e.effects={light:{"shadow-color":"15 23 60","shadow-alpha":"0.1","shadow-1":"0 1px 2px rgb(15 23 60 / 0.1)","shadow-2":"0 1px 2px rgb(15 23 60 / 0.1), 0 12px 32px -12px rgb(15 23 60 / 0.2)","shadow-3":"0 2px 4px rgb(15 23 60 / 0.1), 0 24px 56px -16px rgb(15 23 60 / 0.3)",scrim:"rgb(9 17 34 / 0.48)","brand-surface-hold":"55%","brand-surface-line":"rgb(255 255 255 / 0.24)","brand-surface-glow-alpha":"0.06","brand-surface-dot-alpha":"0.22","brand-surface-dot-cell":"22px","brand-surface-dot-radius":"1.6px","brand-surface-blueprint-hold":"70%","brand-surface-blueprint-fill-alpha":"0.16","brand-surface-blueprint-stroke-alpha":"0.4","brand-surface-accent-glow":"0 8px 24px -10px rgb(251 96 65 / 0.45)"},dark:{"shadow-color":"0 0 0","shadow-alpha":"0.45","shadow-1":"0 1px 2px rgb(0 0 0 / 0.45)","shadow-2":"0 1px 2px rgb(0 0 0 / 0.45), 0 12px 32px -12px rgb(0 0 0 / 0.9)","shadow-3":"0 2px 4px rgb(0 0 0 / 0.45), 0 24px 56px -16px rgb(0 0 0 / 0.9)",scrim:"rgb(4 8 19 / 0.64)","brand-surface-hold":"55%","brand-surface-line":"rgb(255 255 255 / 0.24)","brand-surface-glow-alpha":"0.06","brand-surface-dot-alpha":"0.22","brand-surface-dot-cell":"22px","brand-surface-dot-radius":"1.6px","brand-surface-blueprint-hold":"70%","brand-surface-blueprint-fill-alpha":"0.16","brand-surface-blueprint-stroke-alpha":"0.4","brand-surface-accent-glow":"0 8px 24px -10px rgb(251 96 65 / 0.45)"}},e.fontWeights={regular:400,medium:500,semibold:600,bold:700},e.fonts={display:'Archivo, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif',body:'Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',mono:'"IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace'},e.hexToOklch=e=>{const{l:a,a:r,b:t}=b(f(e,"hexToOklch")),o=Math.hypot(r,t);return o<1e-4?{l:a,c:0,h:0}:{l:a,c:o,h:(180*Math.atan2(t,r)/Math.PI+360)%360}},e.hues={cobalt:264,coral:33,danger:14},e.layers={base:0,raised:1,sticky:100,dropdown:1e3,overlay:1100,modal:1200,popover:1300,toast:1400,tooltip:1500},e.logos={mark:{viewBox:"0 0 618.034 1000",width:618.034,height:1e3,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",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"},horizontal:{viewBox:"0 0 6004.732 1109.971",width:6004.732,height:1109.971,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",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"}},e.maxChroma=(e,a)=>(p(e,"l","maxChroma"),p(a,"h","maxChroma"),h(e,a,.4)),e.motion={duration:{fast:120,base:200,slow:320},easing:{standard:"cubic-bezier(0.2, 0, 0, 1)",enter:"cubic-bezier(0, 0, 0, 1)",exit:"cubic-bezier(0.3, 0, 1, 1)"}},e.oklchToHex=e=>{const{l:a,c:r,h:t}=e??{};p(a,"l","oklchToHex"),p(r,"c","oklchToHex"),p(t,"h","oklchToHex");const f=Math.max(0,r),o={l:a,c:f,h:t},d=i(o);return s(d)?l(d):l(i({...o,c:h(o.l,o.h,f)}))},e.radii={xs:6,sm:10,md:14,lg:20,pill:999},e.scales={cobalt:{50:"#f4f7fd",100:"#e6edfb",200:"#cfddf9",300:"#adc6f7",400:"#82a8f7",500:"#5487fa",600:"#2661fa",700:"#053dea",800:"#0631b2",900:"#05247e",950:"#031650"},coral:{50:"#fdf5f2",100:"#fbe8e3",200:"#fad7cf",300:"#f9bdb0",400:"#f99884",500:"#fb6041",600:"#e03611",700:"#b72e11",800:"#87230f",900:"#5d190c",950:"#380e06"},danger:{50:"#fdf4f5",100:"#fbe7e8",200:"#f9d1d3",300:"#f8afb5",400:"#f87e8d",500:"#fa2f61",600:"#d2154c",700:"#a9143c",800:"#81142e",900:"#5c1020",950:"#3a0913"},ink:{0:"#ffffff",25:"#fafbfe",50:"#f4f6fb",100:"#ecf0f6",200:"#dee3ed",300:"#cbd1de",400:"#a1a9ba",500:"#677083",600:"#515b6e",700:"#3f495d",800:"#263044",900:"#141e31",950:"#091122"}},e.spacing={0:0,1:4,2:8,3:12,4:16,5:20,6:24,8:32,10:40,12:48,16:64,20:80,24:96},e.themes={light:{"bg-page":"#fafbfe","bg-surface":"#ffffff","bg-raised":"#f4f6fb","bg-inset":"#ecf0f6","bg-overlay":"#ffffff","bg-disabled":"#ecf0f6",border:"#dee3ed","border-strong":"#cbd1de","border-control":"#80899b",text:"#091122","text-2":"#515b6e","text-3":"#677083","text-disabled":"#a1a9ba",primary:"#2661fa","primary-hover":"#053dea","primary-active":"#0631b2","on-primary":"#ffffff","primary-soft":"#f4f7fd","primary-soft-hover":"#e6edfb","primary-line":"#cfddf9","primary-text":"#053dea",accent:"#fb6041","accent-hover":"#f99884","accent-active":"#f05133","on-accent":"#091122","accent-soft":"#fdf5f2","accent-text":"#b72e11",focus:"#5487fa","selection-bg":"#cfddf9","danger-bg":"#fdf4f5","danger-fg":"#a9143c","danger-line":"#f9d1d3","danger-solid":"#d2154c","danger-on-solid":"#ffffff","info-bg":"#f4f7fd","info-fg":"#053dea","info-line":"#cfddf9","info-solid":"#2661fa","info-on-solid":"#ffffff","chart-1":"#2661fa","chart-2":"#e03611","chart-3":"#677083","chart-4":"#05247e","chart-5":"#87230f","chart-6":"#091122","brand-surface-deep":"#0631b2"},dark:{"bg-page":"#080e1b","bg-surface":"#0f1727","bg-raised":"#172032","bg-inset":"#040813","bg-overlay":"#202a3e","bg-disabled":"#172032",border:"#283145","border-strong":"#414d64","border-control":"#69758d",text:"#f1f3f9","text-2":"#bac1d0","text-3":"#8f99ab","text-disabled":"#4e586d",primary:"#2661fa","primary-hover":"#2e69fe","primary-active":"#053dea","on-primary":"#ffffff","primary-soft":"#11234f","primary-soft-hover":"#172c62","primary-line":"#24418d","primary-text":"#adc6f7",accent:"#fb6041","accent-hover":"#f99884","accent-active":"#f05133","on-accent":"#091122","accent-soft":"#3f1a12","accent-text":"#f9bdb0",focus:"#82a8f7","selection-bg":"#24418d","danger-bg":"#3e141a","danger-fg":"#f8afb5","danger-line":"#742633","danger-solid":"#d2154c","danger-on-solid":"#ffffff","info-bg":"#11234f","info-fg":"#adc6f7","info-line":"#24418d","info-solid":"#2661fa","info-on-solid":"#ffffff","chart-1":"#82a8f7","chart-2":"#f99884","chart-3":"#ffffff","chart-4":"#2661fa","chart-5":"#e03611","chart-6":"#677083","brand-surface-deep":"#0631b2"}},e.typography={display:{font:"display",size:56,lineHeight:1.05,weight:700,letterSpacing:-.03,stretch:112},h1:{font:"display",size:40,lineHeight:1.1,weight:700,letterSpacing:-.025,stretch:110},h2:{font:"display",size:30,lineHeight:1.15,weight:700,letterSpacing:-.02,stretch:110},h3:{font:"display",size:22,lineHeight:1.2,weight:650,letterSpacing:-.015,stretch:108},h4:{font:"display",size:18,lineHeight:1.3,weight:650,letterSpacing:-.01,stretch:108},lead:{font:"body",size:17,lineHeight:1.55,weight:400,letterSpacing:0,stretch:100},body:{font:"body",size:15,lineHeight:1.55,weight:400,letterSpacing:0,stretch:100},small:{font:"body",size:13,lineHeight:1.5,weight:400,letterSpacing:0,stretch:100},caption:{font:"body",size:12,lineHeight:1.4,weight:500,letterSpacing:.01,stretch:100},code:{font:"mono",size:13,lineHeight:1.5,weight:400,letterSpacing:0,stretch:100}}});
1
+ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports):"function"==typeof define&&define.amd?define(["exports"],a):a((e="undefined"!=typeof globalThis?globalThis:e||self).handijitDesign={})}(this,function(e){"use strict";const a=/^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i,r=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,t=e=>e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055,f=(e,r)=>{if("string"!=typeof e||!a.test(e))throw new TypeError(`${r}: expected a hex colour like "#2661fa", received ${(e=>"string"==typeof e?`"${e}"`:typeof e)(e)}`);const t=e.slice(1),f=3===t.length?t.replace(/./g,e=>e+e):t,o=e=>parseInt(f.slice(e,e+2),16)/255;return{r:o(0),g:o(2),b:o(4)}},o=e=>Math.round(255*Math.min(1,Math.max(0,e))).toString(16).padStart(2,"0"),l=({r:e,g:a,b:r})=>`#${o(e)}${o(a)}${o(r)}`,i=({r:e,g:a,b:t})=>.2126*r(e)+.7152*r(a)+.0722*r(t),d=e=>`--hd-${e}`,c=({l:e,c:a,h:r})=>{const f=r*Math.PI/180,o=a*Math.cos(f),l=a*Math.sin(f),i=(e+.3963377774*o+.2158037573*l)**3,d=(e-.1055613458*o-.0638541728*l)**3,c=(e-.0894841775*o-1.291485548*l)**3;return{r:t(4.0767416621*i-3.3077115913*d+.2309699292*c),g:t(-1.2684380046*i+2.6097574011*d-.3413193965*c),b:t(-.0041960863*i-.7034186147*d+1.707614701*c)}},n=e=>e>=-1e-4&&e<=1.0001,s=({r:e,g:a,b:r})=>n(e)&&n(a)&&n(r),h=(e,a,r)=>{let t=0,f=r;for(let r=0;r<24;r+=1){const r=(t+f)/2;s(c({l:e,c:r,h:a}))?t=r:f=r}return t},p=e=>{const a=r(e.r),t=r(e.g),f=r(e.b),o=Math.cbrt(.4122214708*a+.5363325363*t+.0514459929*f),l=Math.cbrt(.2119034982*a+.6806995451*t+.1073969566*f),i=Math.cbrt(.0883024619*a+.2817188376*t+.6299787005*f);return{l:.2104542553*o+.793617785*l-.0040720468*i,a:1.9779984951*o-2.428592205*l+.4505937099*i,b:.0259040371*o+.7827717662*l-.808675766*i}},b=(e,a,r)=>{if("number"!=typeof e||!Number.isFinite(e))throw new TypeError(`${r}: ${a} must be a finite number, received ${String(e)}`)};const g=(e,a,r)=>({font:"display",size:e,lineHeight:a,weight:600,letterSpacing:r,stretch:100}),u={display:{font:"display",size:56,lineHeight:1.05,weight:700,letterSpacing:-.03,stretch:112},h1:{font:"display",size:40,lineHeight:1.1,weight:700,letterSpacing:-.025,stretch:110},h2:{font:"display",size:30,lineHeight:1.15,weight:700,letterSpacing:-.02,stretch:110},h3:{font:"display",size:22,lineHeight:1.2,weight:650,letterSpacing:-.015,stretch:108},h4:{font:"display",size:18,lineHeight:1.3,weight:650,letterSpacing:-.01,stretch:108},"title-1":g(32,1.2,-.015),"title-2":g(28,1.25,-.012),"title-3":g(22,1.3,-.008),"title-4":g(18,1.35,-.004),"title-5":g(15,1.4,0),lead:{font:"body",size:17,lineHeight:1.55,weight:400,letterSpacing:0,stretch:100},body:{font:"body",size:15,lineHeight:1.55,weight:400,letterSpacing:0,stretch:100},small:{font:"body",size:13,lineHeight:1.5,weight:400,letterSpacing:0,stretch:100},caption:{font:"body",size:12,lineHeight:1.4,weight:500,letterSpacing:.01,stretch:100},code:{font:"mono",size:13,lineHeight:1.5,weight:400,letterSpacing:0,stretch:100}};e.CSS_VARIABLE_PREFIX="hd",e.THEME_ATTRIBUTE="data-theme",e.THEME_BOOT_SCRIPT='(function(){var r=document.documentElement,q=window.matchMedia("(prefers-color-scheme: dark)"),a=function(){var s;try{s=localStorage.getItem("hd-theme")}catch(e){}r.setAttribute("data-theme",s==="light"||s==="dark"?s:q.matches?"dark":"light")};a();q.addEventListener("change",a)})();',e.THEME_BOOT_SCRIPT_HASH="sha256-yBtu0+cpsTaiuo7oykT/pEhxNmKXW7Q0szD6rE70zOM=",e.THEME_STORAGE_KEY="hd-theme",e.brandSurface={gradientHold:.55,lineAlpha:.24,glowAlpha:.06,dotCell:22,dotRadius:1.6,dotAlpha:.22,blueprintHold:.7,blueprintFillAlpha:.16,blueprintStrokeAlpha:.4,accentGlow:{x:0,y:8,blur:24,spread:-10,alpha:.45}},e.breakpoints={sm:640,md:768,lg:1024,xl:1280},e.contrast=(e,a)=>{const r=i(f(e,"contrast")),t=i(f(a,"contrast"));return(Math.max(r,t)+.05)/(Math.min(r,t)+.05)},e.cssVar=(e,a)=>void 0===a?`var(${d(e)})`:`var(${d(e)}, ${a})`,e.cssVarName=d,e.deltaE=(e,a)=>{const r=p(f(e,"deltaE")),t=p(f(a,"deltaE"));return 100*Math.hypot(r.l-t.l,r.a-t.a,r.b-t.b)},e.effectValues={light:{shadow:{color:"#0f173c",alpha:.1},shadows:{1:[{x:0,y:1,blur:2,spread:0,alpha:.1}],2:[{x:0,y:1,blur:2,spread:0,alpha:.1},{x:0,y:12,blur:32,spread:-12,alpha:.2}],3:[{x:0,y:2,blur:4,spread:0,alpha:.1},{x:0,y:24,blur:56,spread:-16,alpha:.3}]},scrim:{color:"#091122",alpha:.48},brandSurface:{gradient:[{offset:0,color:"#2661fa"},{offset:.55,color:"#2661fa"},{offset:1,color:"#0631b2"}],line:{color:"#ffffff",alpha:.24},glow:{color:"#ffffff",alpha:.06},dots:{color:"#ffffff",alpha:.22,cell:22,radius:1.6},blueprint:{color:"#ffffff",fillAlpha:.16,hold:.7,strokeAlpha:.4,dot:"#fb6041"},accentGlow:{color:"#fb6041",layer:{x:0,y:8,blur:24,spread:-10,alpha:.45}}}},dark:{shadow:{color:"#000000",alpha:.45},shadows:{1:[{x:0,y:1,blur:2,spread:0,alpha:.45}],2:[{x:0,y:1,blur:2,spread:0,alpha:.45},{x:0,y:12,blur:32,spread:-12,alpha:.9}],3:[{x:0,y:2,blur:4,spread:0,alpha:.45},{x:0,y:24,blur:56,spread:-16,alpha:.9}]},scrim:{color:"#040813",alpha:.64},brandSurface:{gradient:[{offset:0,color:"#2661fa"},{offset:.55,color:"#2661fa"},{offset:1,color:"#0631b2"}],line:{color:"#ffffff",alpha:.24},glow:{color:"#ffffff",alpha:.06},dots:{color:"#ffffff",alpha:.22,cell:22,radius:1.6},blueprint:{color:"#ffffff",fillAlpha:.16,hold:.7,strokeAlpha:.4,dot:"#fb6041"},accentGlow:{color:"#fb6041",layer:{x:0,y:8,blur:24,spread:-10,alpha:.45}}}}},e.effects={light:{"shadow-color":"15 23 60","shadow-alpha":"0.1","shadow-1":"0 1px 2px rgb(15 23 60 / 0.1)","shadow-2":"0 1px 2px rgb(15 23 60 / 0.1), 0 12px 32px -12px rgb(15 23 60 / 0.2)","shadow-3":"0 2px 4px rgb(15 23 60 / 0.1), 0 24px 56px -16px rgb(15 23 60 / 0.3)",scrim:"rgb(9 17 34 / 0.48)","brand-surface-hold":"55%","brand-surface-line":"rgb(255 255 255 / 0.24)","brand-surface-glow-alpha":"0.06","brand-surface-dot-alpha":"0.22","brand-surface-dot-cell":"22px","brand-surface-dot-radius":"1.6px","brand-surface-blueprint-hold":"70%","brand-surface-blueprint-fill-alpha":"0.16","brand-surface-blueprint-stroke-alpha":"0.4","brand-surface-accent-glow":"0 8px 24px -10px rgb(251 96 65 / 0.45)"},dark:{"shadow-color":"0 0 0","shadow-alpha":"0.45","shadow-1":"0 1px 2px rgb(0 0 0 / 0.45)","shadow-2":"0 1px 2px rgb(0 0 0 / 0.45), 0 12px 32px -12px rgb(0 0 0 / 0.9)","shadow-3":"0 2px 4px rgb(0 0 0 / 0.45), 0 24px 56px -16px rgb(0 0 0 / 0.9)",scrim:"rgb(4 8 19 / 0.64)","brand-surface-hold":"55%","brand-surface-line":"rgb(255 255 255 / 0.24)","brand-surface-glow-alpha":"0.06","brand-surface-dot-alpha":"0.22","brand-surface-dot-cell":"22px","brand-surface-dot-radius":"1.6px","brand-surface-blueprint-hold":"70%","brand-surface-blueprint-fill-alpha":"0.16","brand-surface-blueprint-stroke-alpha":"0.4","brand-surface-accent-glow":"0 8px 24px -10px rgb(251 96 65 / 0.45)"}},e.fontWeights={regular:400,medium:500,semibold:600,bold:700},e.fonts={display:'Archivo, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif',body:'Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',mono:'"IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace'},e.hexToOklch=e=>{const{l:a,a:r,b:t}=p(f(e,"hexToOklch")),o=Math.hypot(r,t);return o<1e-4?{l:a,c:0,h:0}:{l:a,c:o,h:(180*Math.atan2(t,r)/Math.PI+360)%360}},e.hues={cobalt:264,coral:33,danger:14},e.layers={base:0,raised:1,sticky:100,dropdown:1e3,overlay:1100,modal:1200,popover:1300,toast:1400,tooltip:1500},e.logos={mark:{viewBox:"0 0 618.034 1000",width:618.034,height:1e3,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",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"},horizontal:{viewBox:"0 0 6004.732 1109.971",width:6004.732,height:1109.971,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",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"}},e.maxChroma=(e,a)=>(b(e,"l","maxChroma"),b(a,"h","maxChroma"),h(e,a,.4)),e.motion={duration:{fast:120,base:200,slow:320},easing:{standard:"cubic-bezier(0.2, 0, 0, 1)",enter:"cubic-bezier(0, 0, 0, 1)",exit:"cubic-bezier(0.3, 0, 1, 1)"}},e.oklchToHex=e=>{const{l:a,c:r,h:t}=e??{};b(a,"l","oklchToHex"),b(r,"c","oklchToHex"),b(t,"h","oklchToHex");const f=Math.max(0,r),o={l:a,c:f,h:t},i=c(o);return s(i)?l(i):l(c({...o,c:h(o.l,o.h,f)}))},e.radii={xs:6,sm:10,md:14,lg:20,pill:999},e.scales={cobalt:{50:"#f4f7fd",100:"#e6edfb",200:"#cfddf9",300:"#adc6f7",400:"#82a8f7",500:"#5487fa",600:"#2661fa",700:"#053dea",800:"#0631b2",900:"#05247e",950:"#031650"},coral:{50:"#fdf5f2",100:"#fbe8e3",200:"#fad7cf",300:"#f9bdb0",400:"#f99884",500:"#fb6041",600:"#e03611",700:"#b72e11",800:"#87230f",900:"#5d190c",950:"#380e06"},danger:{50:"#fdf4f5",100:"#fbe7e8",200:"#f9d1d3",300:"#f8afb5",400:"#f87e8d",500:"#fa2f61",600:"#d2154c",700:"#a9143c",800:"#81142e",900:"#5c1020",950:"#3a0913"},ink:{0:"#ffffff",25:"#fafbfe",50:"#f4f6fb",100:"#ecf0f6",200:"#dee3ed",300:"#cbd1de",400:"#a1a9ba",500:"#677083",600:"#515b6e",700:"#3f495d",800:"#263044",900:"#141e31",950:"#091122"}},e.spacing={0:0,1:4,2:8,3:12,4:16,5:20,6:24,8:32,10:40,12:48,16:64,20:80,24:96},e.themes={light:{"bg-page":"#eef2f9","bg-surface":"#ffffff","bg-raised":"#f4f6fb","bg-inset":"#ecf0f6","bg-overlay":"#ffffff","bg-disabled":"#ecf0f6",border:"#dee3ed","border-strong":"#cbd1de","border-control":"#80899b",text:"#091122","text-2":"#515b6e","text-3":"#626c7f","text-disabled":"#a1a9ba",primary:"#2661fa","primary-hover":"#053dea","primary-active":"#0631b2","on-primary":"#ffffff","primary-soft":"#f4f7fd","primary-soft-hover":"#e6edfb","primary-line":"#cfddf9","primary-text":"#053dea",accent:"#fb6041","accent-hover":"#f99884","accent-active":"#f05133","on-accent":"#091122","accent-soft":"#fdf5f2","accent-text":"#b72e11",focus:"#5487fa","selection-bg":"#cfddf9","danger-bg":"#fdf4f5","danger-fg":"#a9143c","danger-line":"#f9d1d3","danger-solid":"#d2154c","danger-on-solid":"#ffffff","info-bg":"#f4f7fd","info-fg":"#053dea","info-line":"#cfddf9","info-solid":"#2661fa","info-on-solid":"#ffffff","chart-1":"#2661fa","chart-2":"#e03611","chart-3":"#677083","chart-4":"#05247e","chart-5":"#87230f","chart-6":"#091122","brand-surface-deep":"#0631b2"},dark:{"bg-page":"#080e1b","bg-surface":"#0f1727","bg-raised":"#172032","bg-inset":"#040813","bg-overlay":"#202a3e","bg-disabled":"#172032",border:"#283145","border-strong":"#414d64","border-control":"#69758d",text:"#f1f3f9","text-2":"#bac1d0","text-3":"#8f99ab","text-disabled":"#4e586d",primary:"#2661fa","primary-hover":"#2e69fe","primary-active":"#053dea","on-primary":"#ffffff","primary-soft":"#11234f","primary-soft-hover":"#172c62","primary-line":"#24418d","primary-text":"#adc6f7",accent:"#fb6041","accent-hover":"#f99884","accent-active":"#f05133","on-accent":"#091122","accent-soft":"#3f1a12","accent-text":"#f9bdb0",focus:"#82a8f7","selection-bg":"#24418d","danger-bg":"#3e141a","danger-fg":"#f8afb5","danger-line":"#742633","danger-solid":"#d2154c","danger-on-solid":"#ffffff","info-bg":"#11234f","info-fg":"#adc6f7","info-line":"#24418d","info-solid":"#2661fa","info-on-solid":"#ffffff","chart-1":"#82a8f7","chart-2":"#f99884","chart-3":"#ffffff","chart-4":"#2661fa","chart-5":"#e03611","chart-6":"#677083","brand-surface-deep":"#0631b2"}},e.typography=u});
2
2
  //# sourceMappingURL=index.umd.cjs.map