@handijitcom/ui 2.0.0 → 3.0.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 (107) hide show
  1. package/README.md +67 -62
  2. package/build/calendar.cjs +1 -1
  3. package/build/calendar.cjs.map +1 -1
  4. package/build/calendar.css +1 -1
  5. package/build/calendar.js +109 -111
  6. package/build/calendar.js.map +1 -1
  7. package/build/chat.cjs +1 -1
  8. package/build/chat.cjs.map +1 -1
  9. package/build/chat.css +1 -1
  10. package/build/chat.js +2 -2
  11. package/build/chat.js.map +1 -1
  12. package/build/components/Alert/style.css +1 -1
  13. package/build/components/Avatar/index.cjs.map +1 -1
  14. package/build/components/Avatar/index.d.cts +1 -1
  15. package/build/components/Avatar/index.d.ts +1 -1
  16. package/build/components/Avatar/index.js.map +1 -1
  17. package/build/components/Avatar/style.css +1 -1
  18. package/build/components/Badge/index.cjs +1 -1
  19. package/build/components/Badge/index.cjs.map +1 -1
  20. package/build/components/Badge/index.d.cts +4 -2
  21. package/build/components/Badge/index.d.ts +4 -2
  22. package/build/components/Badge/index.js +1 -1
  23. package/build/components/Badge/index.js.map +1 -1
  24. package/build/components/Badge/style.css +1 -1
  25. package/build/components/BrandSurface/index.cjs +2 -0
  26. package/build/components/BrandSurface/index.cjs.map +1 -0
  27. package/build/components/BrandSurface/index.d.cts +46 -0
  28. package/build/components/BrandSurface/index.d.ts +46 -0
  29. package/build/components/BrandSurface/index.js +128 -0
  30. package/build/components/BrandSurface/index.js.map +1 -0
  31. package/build/components/BrandSurface/style.css +1 -0
  32. package/build/components/Button/index.cjs +1 -1
  33. package/build/components/Button/index.js +1 -1
  34. package/build/components/Button/style.css +1 -1
  35. package/build/components/CodeBadge/style.css +1 -1
  36. package/build/components/CopyField/style.css +1 -1
  37. package/build/components/DataTable/style.css +1 -1
  38. package/build/components/Eyebrow/index.cjs.map +1 -1
  39. package/build/components/Eyebrow/index.d.cts +1 -1
  40. package/build/components/Eyebrow/index.d.ts +1 -1
  41. package/build/components/Eyebrow/index.js.map +1 -1
  42. package/build/components/Eyebrow/style.css +1 -1
  43. package/build/components/Modal/style.css +1 -1
  44. package/build/components/Progress/index.cjs +1 -1
  45. package/build/components/Progress/index.cjs.map +1 -1
  46. package/build/components/Progress/index.d.cts +2 -2
  47. package/build/components/Progress/index.d.ts +2 -2
  48. package/build/components/Progress/index.js +1 -1
  49. package/build/components/Progress/index.js.map +1 -1
  50. package/build/components/Progress/style.css +1 -1
  51. package/build/components/Rating/style.css +1 -1
  52. package/build/components/RatingInput/style.css +1 -1
  53. package/build/components/Stat/style.css +1 -1
  54. package/build/components/StatStrip/index.cjs +1 -1
  55. package/build/components/StatStrip/index.cjs.map +1 -1
  56. package/build/components/StatStrip/index.d.cts +3 -3
  57. package/build/components/StatStrip/index.d.ts +3 -3
  58. package/build/components/StatStrip/index.js +1 -1
  59. package/build/components/StatStrip/index.js.map +1 -1
  60. package/build/components/StatStrip/style.css +1 -1
  61. package/build/components/StatusDot/index.cjs +1 -1
  62. package/build/components/StatusDot/index.cjs.map +1 -1
  63. package/build/components/StatusDot/index.d.cts +5 -3
  64. package/build/components/StatusDot/index.d.ts +5 -3
  65. package/build/components/StatusDot/index.js +1 -1
  66. package/build/components/StatusDot/index.js.map +1 -1
  67. package/build/components/StatusDot/style.css +1 -1
  68. package/build/components/TagInput/style.css +1 -1
  69. package/build/components/Textarea/style.css +1 -1
  70. package/build/components/Timeline/style.css +1 -1
  71. package/build/components/Toast/style.css +1 -1
  72. package/build/design/index.cjs +84 -178
  73. package/build/design/index.cjs.map +1 -1
  74. package/build/design/index.d.cts +72 -63
  75. package/build/design/index.d.mts +72 -63
  76. package/build/design/index.mjs +84 -178
  77. package/build/design/index.mjs.map +1 -1
  78. package/build/design/index.umd.cjs +1 -1
  79. package/build/design/index.umd.cjs.map +1 -1
  80. package/build/design/tokens.css +62 -177
  81. package/build/design/tokens.json +66 -168
  82. package/build/design/tokens.scss +48 -178
  83. package/build/enums/ui-variant.enum.cjs +1 -1
  84. package/build/enums/ui-variant.enum.cjs.map +1 -1
  85. package/build/enums/ui-variant.enum.d.cts +2 -2
  86. package/build/enums/ui-variant.enum.d.ts +2 -2
  87. package/build/enums/ui-variant.enum.js +1 -1
  88. package/build/enums/ui-variant.enum.js.map +1 -1
  89. package/build/index.cjs +1 -1
  90. package/build/index.d.cts +1 -1
  91. package/build/index.d.ts +1 -1
  92. package/build/index.js +11 -11
  93. package/build/scss/_mixins.scss +8 -10
  94. package/build/scss/_variables.scss +19 -39
  95. package/build/styles.css +21 -21
  96. package/build/types/calendar/Calendar/index.d.cts +1 -1
  97. package/build/types/calendar/Calendar/index.d.ts +1 -1
  98. package/build/types/calendar/core/types.d.cts +3 -2
  99. package/build/types/calendar/core/types.d.ts +3 -2
  100. package/package.json +11 -11
  101. package/build/components/Band/index.cjs +0 -2
  102. package/build/components/Band/index.cjs.map +0 -1
  103. package/build/components/Band/index.d.cts +0 -45
  104. package/build/components/Band/index.d.ts +0 -45
  105. package/build/components/Band/index.js +0 -127
  106. package/build/components/Band/index.js.map +0 -1
  107. package/build/components/Band/style.css +0 -1
@@ -13,20 +13,21 @@ type Oklch = {
13
13
  type ThemeName = 'light' | 'dark';
14
14
  /** What the user picked; `system` follows the operating system. */
15
15
  type ThemePreference = ThemeName | 'system';
16
- type ChromaticScaleName = 'cobalt' | 'coral' | 'success' | 'warning' | 'danger' | 'violet' | 'magenta';
17
- type ScaleName = ChromaticScaleName | 'slate';
16
+ /** The brand's cobalt and coral, and red, the one status colour (danger). */
17
+ type ChromaticScaleName = 'cobalt' | 'coral' | 'danger';
18
+ type ScaleName = ChromaticScaleName | 'ink';
18
19
  type ChromaticStep = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
19
20
  type NeutralStep = 0 | 25 | ChromaticStep;
20
21
  type ChromaticScale = Readonly<Record<ChromaticStep, string>>;
21
22
  type NeutralScale = Readonly<Record<NeutralStep, string>>;
22
23
  type Scales = Readonly<Record<ChromaticScaleName, ChromaticScale>> & {
23
- readonly slate: NeutralScale;
24
+ readonly ink: NeutralScale;
24
25
  };
25
26
  type HueName = ChromaticScaleName;
26
- type StatusName = 'success' | 'warning' | 'danger' | 'info';
27
+ type StatusName = 'danger' | 'info';
27
28
  type ChartIndex = 1 | 2 | 3 | 4 | 5 | 6;
28
29
  /** Every theme-dependent colour. Values are always opaque `#rrggbb`. */
29
- type ColorToken = 'bg-page' | 'bg-surface' | 'bg-raised' | 'bg-inset' | 'bg-overlay' | 'bg-disabled' | 'border' | 'border-strong' | 'border-control' | 'text' | 'text-2' | 'text-3' | 'text-disabled' | 'primary' | 'primary-hover' | 'primary-active' | 'on-primary' | 'primary-soft' | 'primary-soft-hover' | 'primary-line' | 'primary-text' | 'accent' | 'accent-hover' | 'accent-active' | 'on-accent' | 'accent-soft' | 'accent-text' | 'focus' | 'selection-bg' | `${StatusName}-${'bg' | 'fg' | 'line' | 'solid' | 'on-solid'}` | `chart-${ChartIndex}` | 'band-bg' | 'band-deep' | 'band-line' | 'band-line-strong' | 'band-text' | 'band-text-2' | 'band-focus' | 'band-edge';
30
+ type ColorToken = 'bg-page' | 'bg-surface' | 'bg-raised' | 'bg-inset' | 'bg-overlay' | 'bg-disabled' | 'border' | 'border-strong' | 'border-control' | 'text' | 'text-2' | 'text-3' | 'text-disabled' | 'primary' | 'primary-hover' | 'primary-active' | 'on-primary' | 'primary-soft' | 'primary-soft-hover' | 'primary-line' | 'primary-text' | 'accent' | 'accent-hover' | 'accent-active' | 'on-accent' | 'accent-soft' | 'accent-text' | 'focus' | 'selection-bg' | `${StatusName}-${'bg' | 'fg' | 'line' | 'solid' | 'on-solid'}` | `chart-${ChartIndex}` | 'brand-surface-deep';
30
31
  type Theme = Readonly<Record<ColorToken, string>>;
31
32
  type Themes = Readonly<Record<ThemeName, Theme>>;
32
33
  type FontRole = 'display' | 'body' | 'mono';
@@ -67,34 +68,26 @@ type ThemeEffects = {
67
68
  readonly 'shadow-3': string;
68
69
  /** Translucent backdrop behind dialogs. */
69
70
  readonly scrim: string;
70
- /** First stop of the band's vertical gradient (`band-bg`). */
71
- readonly 'band-gradient-from': string;
72
- /** Last stop of the band's vertical gradient (`band-deep`). */
73
- readonly 'band-gradient-to': string;
74
- /** How far down the band holds its first colour before it deepens, as a percentage. */
75
- readonly 'band-gradient-hold': string;
76
- /** Centre colour of the soft glows on the band (`primary`). */
77
- readonly 'band-glow': string;
78
- /** Opacity of a glow at its centre; it fades to 0 at its edge. */
79
- readonly 'band-glow-alpha': string;
80
- /** Colour of the dots of the band's dot grid (`band-line-strong`). */
81
- readonly 'band-dot': string;
82
- /** Opacity of the dot grid at the band's edge; it fades to 0 towards the content. */
83
- readonly 'band-dot-alpha': string;
71
+ /** How far down the brand surface holds `primary` before it deepens, as a percentage. */
72
+ readonly 'brand-surface-hold': string;
73
+ /** Hairline on the brand surface: white at low opacity, as a CSS colour. */
74
+ readonly 'brand-surface-line': string;
75
+ /** Opacity of the white glow at its centre; it fades to 0 at its edge. */
76
+ readonly 'brand-surface-glow-alpha': string;
77
+ /** Opacity of the white dot grid at the surface's edge; it fades to 0 towards the content. */
78
+ readonly 'brand-surface-dot-alpha': string;
84
79
  /** Side of one cell of the dot grid. */
85
- readonly 'band-dot-cell': string;
80
+ readonly 'brand-surface-dot-cell': string;
86
81
  /** Radius of one dot. */
87
- readonly 'band-dot-radius': string;
88
- /** Top stop of a blueprint supergraphic's fill (`band-line`). */
89
- readonly 'band-blueprint-from': string;
90
- /** Bottom stop of a blueprint supergraphic's fill (`band-bg`). */
91
- readonly 'band-blueprint-to': string;
92
- /** Where the blueprint fill reaches its bottom colour, as a percentage. */
93
- readonly 'band-blueprint-hold': string;
94
- /** Outline of a blueprint supergraphic (`band-line-strong`). */
95
- readonly 'band-blueprint-stroke': string;
96
- /** The soft coral glow of the conversion button on the band, as a `box-shadow`. */
97
- readonly 'band-accent-glow': string;
82
+ readonly 'brand-surface-dot-radius': string;
83
+ /** Where a blueprint supergraphic's white fill has faded out, as a percentage. */
84
+ readonly 'brand-surface-blueprint-hold': string;
85
+ /** Opacity of a blueprint's white fill at its top. */
86
+ readonly 'brand-surface-blueprint-fill-alpha': string;
87
+ /** Opacity of a blueprint's white outline. */
88
+ readonly 'brand-surface-blueprint-stroke-alpha': string;
89
+ /** The soft coral glow of the conversion button on the brand surface, as a `box-shadow`. */
90
+ readonly 'brand-surface-accent-glow': string;
98
91
  };
99
92
  type EffectToken = keyof ThemeEffects;
100
93
  type Effects = Readonly<Record<ThemeName, ThemeEffects>>;
@@ -133,49 +126,61 @@ type ThemeEffectValues = {
133
126
  readonly shadows: Readonly<Record<ShadowLevel, readonly ShadowLayer[]>>;
134
127
  /** Translucent backdrop behind dialogs. */
135
128
  readonly scrim: EffectTone;
136
- /** The decorative layers of the brand band; the same in both themes. */
137
- readonly band: BandEffectValues;
129
+ /** The decorative layers of the brand surface; the same in both themes. */
130
+ readonly brandSurface: BrandSurfaceEffectValues;
138
131
  };
139
- /** The brand band's imagery as hex and numbers: gradient, glow, dot grid, blueprint, CTA glow. */
140
- type BandEffectValues = {
141
- /** The band's vertical background, top to bottom. */
132
+ /** The brand surface's imagery as hex and numbers: gradient, line, glow, dot grid, blueprint. */
133
+ type BrandSurfaceEffectValues = {
134
+ /** The surface's vertical background, top to bottom (`primary` into `brand-surface-deep`). */
142
135
  readonly gradient: readonly GradientStop[];
143
- /** The soft glow: its centre colour and opacity; it fades to transparent at its edge. */
136
+ /** The hairline: white and its opacity. */
137
+ readonly line: EffectTone;
138
+ /** The soft glow: its centre colour (white) and opacity; it fades to transparent. */
144
139
  readonly glow: EffectTone;
145
- /** The dot grid: dot colour, opacity at the band's edge, cell side and dot radius in pixels. */
140
+ /** The dot grid: dot colour (white), opacity at the edge, cell side and dot radius in pixels. */
146
141
  readonly dots: EffectTone & {
147
142
  readonly cell: number;
148
143
  readonly radius: number;
149
144
  };
150
- /** A blueprint supergraphic: its fill top to bottom and its outline colour. */
145
+ /** A blueprint supergraphic: white fill fading out by `hold`, white outline, coral dot. */
151
146
  readonly blueprint: {
152
- readonly fill: readonly GradientStop[];
153
- readonly stroke: string;
147
+ readonly color: string;
148
+ readonly fillAlpha: number;
149
+ readonly hold: number;
150
+ readonly strokeAlpha: number;
151
+ readonly dot: string;
154
152
  };
155
- /** The glow of the conversion button on the band, painted in `color`. */
153
+ /** The glow of the conversion button on the surface, painted in `color`. */
156
154
  readonly accentGlow: {
157
155
  readonly color: string;
158
156
  readonly layer: ShadowLayer;
159
157
  };
160
158
  };
161
159
  /**
162
- * The brand band's recipe as plain numbers: what every theme's band imagery is built from.
163
- * The colours are not here; they are the theme's `band-*`, `primary` and `accent` roles.
160
+ * The brand surface's recipe as plain numbers: what every theme's imagery is built from. The
161
+ * colours are not here; they are the theme's `primary`, `brand-surface-deep`, `on-primary` and
162
+ * `accent` roles.
164
163
  */
165
- type BandRecipe = {
166
- /** Offset (0–1) down to which the band holds `band-bg` before it deepens into `band-deep`. */
164
+ type BrandSurfaceRecipe = {
165
+ /** Offset (0–1) down to which the surface holds `primary` before it deepens. */
167
166
  readonly gradientHold: number;
168
- /** Opacity of a glow at its centre. */
167
+ /** Opacity of the white hairline. */
168
+ readonly lineAlpha: number;
169
+ /** Opacity of the white glow at its centre. */
169
170
  readonly glowAlpha: number;
170
171
  /** Side of one dot-grid cell, in CSS pixels. */
171
172
  readonly dotCell: number;
172
173
  /** Radius of one dot, in CSS pixels. */
173
174
  readonly dotRadius: number;
174
- /** Opacity of the dot grid at the band's edge. */
175
+ /** Opacity of the dot grid at the surface's edge. */
175
176
  readonly dotAlpha: number;
176
- /** Offset (0–1) at which a blueprint fill reaches `band-bg`. */
177
+ /** Offset (0–1) by which a blueprint's white fill has faded out. */
177
178
  readonly blueprintHold: number;
178
- /** The conversion button's glow on the band; its opacity applies to the accent colour. */
179
+ /** Opacity of a blueprint's white fill at its top. */
180
+ readonly blueprintFillAlpha: number;
181
+ /** Opacity of a blueprint's white outline. */
182
+ readonly blueprintStrokeAlpha: number;
183
+ /** The conversion button's glow; its opacity applies to the accent colour. */
179
184
  readonly accentGlow: ShadowLayer;
180
185
  };
181
186
  type EffectValues = Readonly<Record<ThemeName, ThemeEffectValues>>;
@@ -191,7 +196,7 @@ type LayerName = 'base' | 'raised' | 'sticky' | 'dropdown' | 'overlay' | 'modal'
191
196
  type Layers = Readonly<Record<LayerName, number>>;
192
197
  type BreakpointName = 'sm' | 'md' | 'lg' | 'xl';
193
198
  type Breakpoints = Readonly<Record<BreakpointName, number>>;
194
- type ScaleToken = `${ChromaticScaleName}-${ChromaticStep}` | `slate-${NeutralStep}`;
199
+ type ScaleToken = `${ChromaticScaleName}-${ChromaticStep}` | `ink-${NeutralStep}`;
195
200
  type TypeProperty = 'size' | 'line-height' | 'weight' | 'letter-spacing' | 'stretch';
196
201
  /** Tokens that keep one value in every theme. */
197
202
  type StaticToken = ScaleToken | `font-${FontRole}` | `font-weight-${FontWeightName}` | `type-${TypeRole}-${TypeProperty}` | `space-${SpaceStep}` | `radius-${RadiusName}` | `duration-${DurationName}` | `ease-${EasingName}` | `z-${LayerName}`;
@@ -245,18 +250,19 @@ declare const maxChroma: (l: number, h: number) => number;
245
250
  declare const oklchToHex: (color: Oklch) => string;
246
251
 
247
252
  /**
248
- * The brand band's recipe: the numbers its imagery is drawn with, the same in every theme.
249
- * The colours are the theme's roles (`band-*`, `primary`, `accent`); `effectValues` and
250
- * `effects` pair the two. A component that draws the band reads its geometry here, because
251
- * an SVG attribute (a pattern's cell, a gradient stop's offset) cannot read a custom property.
253
+ * The brand surface's recipe: the numbers its imagery is drawn with, the same in every theme.
254
+ * The colours are the theme's roles (`primary`, `brand-surface-deep`, `on-primary`, `accent`);
255
+ * `effectValues` and `effects` pair the two. A component that draws the surface reads its
256
+ * geometry here, because an SVG attribute (a pattern's cell, a gradient stop's offset) cannot
257
+ * read a custom property.
252
258
  */
253
- declare const band: BandRecipe;
259
+ declare const brandSurface: BrandSurfaceRecipe;
254
260
 
255
261
  /** Viewport breakpoints in CSS pixels; each is the lower bound of its range. */
256
262
  declare const breakpoints: Breakpoints;
257
263
 
258
264
  /**
259
- * The shadows, the scrim and the band's imagery as hex and numbers, for anything that cannot read a custom
265
+ * The shadows, the scrim and the brand surface's imagery as hex and numbers, for anything that cannot read a custom
260
266
  * property: an Electron main process, an Open Graph image, a PDF. This is the single source;
261
267
  * the CSS strings in `effects` are rendered from it.
262
268
  */
@@ -264,9 +270,9 @@ declare const effectValues: EffectValues;
264
270
 
265
271
  /**
266
272
  * Theme-dependent values that are not plain colours: the three elevation shadows, the raw
267
- * shadow colour and opacity for custom shadows, the dialog scrim, and the brand band's
268
- * imagery (gradient stops, glow, dot grid, blueprint, the conversion button's glow; the same
269
- * in both themes, like the band). These are the CSS strings of `effectValues`, which holds
273
+ * shadow colour and opacity for custom shadows, the dialog scrim, and the brand surface's
274
+ * imagery (gradient hold, white hairline, glow, dot grid, blueprint, the conversion button's
275
+ * glow; the same in both themes, like the cobalt surface). These are the CSS strings of `effectValues`, which holds
270
276
  * the same data as hex and numbers.
271
277
  */
272
278
  declare const effects: Effects;
@@ -280,7 +286,10 @@ declare const fontWeights: FontWeights;
280
286
  */
281
287
  declare const fonts: Fonts;
282
288
 
283
- /** OKLCH hue angle of every chromatic family. Neutrals lean to the cobalt hue. */
289
+ /**
290
+ * OKLCH hue angle of every chromatic family: the brand's cobalt and coral, and red for danger,
291
+ * the one status colour. The neutrals (`ink`) lean to the cobalt angle, which is ink's own.
292
+ */
284
293
  declare const hues: Readonly<Record<HueName, number>>;
285
294
 
286
295
  /** `z-index` layers, lowest to highest. The gaps leave room for local stacking. */
@@ -348,5 +357,5 @@ declare const themes: Themes;
348
357
  */
349
358
  declare const typography: Typography;
350
359
 
351
- export { CSS_VARIABLE_PREFIX, THEME_ATTRIBUTE, THEME_BOOT_SCRIPT, THEME_BOOT_SCRIPT_HASH, THEME_STORAGE_KEY, band, breakpoints, contrast, cssVar, cssVarName, deltaE, effectValues, effects, fontWeights, fonts, hexToOklch, hues, layers, logos, maxChroma, motion, oklchToHex, radii, scales, spacing, themes, typography };
352
- export type { BandEffectValues, BandRecipe, BreakpointName, Breakpoints, ChartIndex, ChromaticScale, ChromaticScaleName, ChromaticStep, ColorToken, DurationName, EasingName, EffectToken, EffectTone, EffectValues, Effects, FontRole, FontWeightName, FontWeights, Fonts, GradientStop, HueName, LayerName, Layers, Logo, LogoName, Logos, Motion, NeutralScale, NeutralStep, Oklch, Radii, RadiusName, ScaleName, ScaleToken, Scales, ShadowLayer, ShadowLevel, SpaceStep, Spacing, StaticToken, StatusName, Theme, ThemeEffectValues, ThemeEffects, ThemeName, ThemePreference, ThemedToken, Themes, TokenName, TypeProperty, TypeRole, TypeStyle, Typography };
360
+ 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 };
361
+ export type { BrandSurfaceEffectValues, BrandSurfaceRecipe, BreakpointName, Breakpoints, ChartIndex, ChromaticScale, ChromaticScaleName, ChromaticStep, ColorToken, DurationName, EasingName, EffectToken, EffectTone, EffectValues, Effects, FontRole, FontWeightName, FontWeights, Fonts, GradientStop, HueName, LayerName, Layers, Logo, LogoName, Logos, Motion, NeutralScale, NeutralStep, Oklch, Radii, RadiusName, ScaleName, ScaleToken, Scales, ShadowLayer, ShadowLevel, SpaceStep, Spacing, StaticToken, StatusName, Theme, ThemeEffectValues, ThemeEffects, ThemeName, ThemePreference, ThemedToken, Themes, TokenName, TypeProperty, TypeRole, TypeStyle, Typography };
@@ -13,20 +13,21 @@ type Oklch = {
13
13
  type ThemeName = 'light' | 'dark';
14
14
  /** What the user picked; `system` follows the operating system. */
15
15
  type ThemePreference = ThemeName | 'system';
16
- type ChromaticScaleName = 'cobalt' | 'coral' | 'success' | 'warning' | 'danger' | 'violet' | 'magenta';
17
- type ScaleName = ChromaticScaleName | 'slate';
16
+ /** The brand's cobalt and coral, and red, the one status colour (danger). */
17
+ type ChromaticScaleName = 'cobalt' | 'coral' | 'danger';
18
+ type ScaleName = ChromaticScaleName | 'ink';
18
19
  type ChromaticStep = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
19
20
  type NeutralStep = 0 | 25 | ChromaticStep;
20
21
  type ChromaticScale = Readonly<Record<ChromaticStep, string>>;
21
22
  type NeutralScale = Readonly<Record<NeutralStep, string>>;
22
23
  type Scales = Readonly<Record<ChromaticScaleName, ChromaticScale>> & {
23
- readonly slate: NeutralScale;
24
+ readonly ink: NeutralScale;
24
25
  };
25
26
  type HueName = ChromaticScaleName;
26
- type StatusName = 'success' | 'warning' | 'danger' | 'info';
27
+ type StatusName = 'danger' | 'info';
27
28
  type ChartIndex = 1 | 2 | 3 | 4 | 5 | 6;
28
29
  /** Every theme-dependent colour. Values are always opaque `#rrggbb`. */
29
- type ColorToken = 'bg-page' | 'bg-surface' | 'bg-raised' | 'bg-inset' | 'bg-overlay' | 'bg-disabled' | 'border' | 'border-strong' | 'border-control' | 'text' | 'text-2' | 'text-3' | 'text-disabled' | 'primary' | 'primary-hover' | 'primary-active' | 'on-primary' | 'primary-soft' | 'primary-soft-hover' | 'primary-line' | 'primary-text' | 'accent' | 'accent-hover' | 'accent-active' | 'on-accent' | 'accent-soft' | 'accent-text' | 'focus' | 'selection-bg' | `${StatusName}-${'bg' | 'fg' | 'line' | 'solid' | 'on-solid'}` | `chart-${ChartIndex}` | 'band-bg' | 'band-deep' | 'band-line' | 'band-line-strong' | 'band-text' | 'band-text-2' | 'band-focus' | 'band-edge';
30
+ type ColorToken = 'bg-page' | 'bg-surface' | 'bg-raised' | 'bg-inset' | 'bg-overlay' | 'bg-disabled' | 'border' | 'border-strong' | 'border-control' | 'text' | 'text-2' | 'text-3' | 'text-disabled' | 'primary' | 'primary-hover' | 'primary-active' | 'on-primary' | 'primary-soft' | 'primary-soft-hover' | 'primary-line' | 'primary-text' | 'accent' | 'accent-hover' | 'accent-active' | 'on-accent' | 'accent-soft' | 'accent-text' | 'focus' | 'selection-bg' | `${StatusName}-${'bg' | 'fg' | 'line' | 'solid' | 'on-solid'}` | `chart-${ChartIndex}` | 'brand-surface-deep';
30
31
  type Theme = Readonly<Record<ColorToken, string>>;
31
32
  type Themes = Readonly<Record<ThemeName, Theme>>;
32
33
  type FontRole = 'display' | 'body' | 'mono';
@@ -67,34 +68,26 @@ type ThemeEffects = {
67
68
  readonly 'shadow-3': string;
68
69
  /** Translucent backdrop behind dialogs. */
69
70
  readonly scrim: string;
70
- /** First stop of the band's vertical gradient (`band-bg`). */
71
- readonly 'band-gradient-from': string;
72
- /** Last stop of the band's vertical gradient (`band-deep`). */
73
- readonly 'band-gradient-to': string;
74
- /** How far down the band holds its first colour before it deepens, as a percentage. */
75
- readonly 'band-gradient-hold': string;
76
- /** Centre colour of the soft glows on the band (`primary`). */
77
- readonly 'band-glow': string;
78
- /** Opacity of a glow at its centre; it fades to 0 at its edge. */
79
- readonly 'band-glow-alpha': string;
80
- /** Colour of the dots of the band's dot grid (`band-line-strong`). */
81
- readonly 'band-dot': string;
82
- /** Opacity of the dot grid at the band's edge; it fades to 0 towards the content. */
83
- readonly 'band-dot-alpha': string;
71
+ /** How far down the brand surface holds `primary` before it deepens, as a percentage. */
72
+ readonly 'brand-surface-hold': string;
73
+ /** Hairline on the brand surface: white at low opacity, as a CSS colour. */
74
+ readonly 'brand-surface-line': string;
75
+ /** Opacity of the white glow at its centre; it fades to 0 at its edge. */
76
+ readonly 'brand-surface-glow-alpha': string;
77
+ /** Opacity of the white dot grid at the surface's edge; it fades to 0 towards the content. */
78
+ readonly 'brand-surface-dot-alpha': string;
84
79
  /** Side of one cell of the dot grid. */
85
- readonly 'band-dot-cell': string;
80
+ readonly 'brand-surface-dot-cell': string;
86
81
  /** Radius of one dot. */
87
- readonly 'band-dot-radius': string;
88
- /** Top stop of a blueprint supergraphic's fill (`band-line`). */
89
- readonly 'band-blueprint-from': string;
90
- /** Bottom stop of a blueprint supergraphic's fill (`band-bg`). */
91
- readonly 'band-blueprint-to': string;
92
- /** Where the blueprint fill reaches its bottom colour, as a percentage. */
93
- readonly 'band-blueprint-hold': string;
94
- /** Outline of a blueprint supergraphic (`band-line-strong`). */
95
- readonly 'band-blueprint-stroke': string;
96
- /** The soft coral glow of the conversion button on the band, as a `box-shadow`. */
97
- readonly 'band-accent-glow': string;
82
+ readonly 'brand-surface-dot-radius': string;
83
+ /** Where a blueprint supergraphic's white fill has faded out, as a percentage. */
84
+ readonly 'brand-surface-blueprint-hold': string;
85
+ /** Opacity of a blueprint's white fill at its top. */
86
+ readonly 'brand-surface-blueprint-fill-alpha': string;
87
+ /** Opacity of a blueprint's white outline. */
88
+ readonly 'brand-surface-blueprint-stroke-alpha': string;
89
+ /** The soft coral glow of the conversion button on the brand surface, as a `box-shadow`. */
90
+ readonly 'brand-surface-accent-glow': string;
98
91
  };
99
92
  type EffectToken = keyof ThemeEffects;
100
93
  type Effects = Readonly<Record<ThemeName, ThemeEffects>>;
@@ -133,49 +126,61 @@ type ThemeEffectValues = {
133
126
  readonly shadows: Readonly<Record<ShadowLevel, readonly ShadowLayer[]>>;
134
127
  /** Translucent backdrop behind dialogs. */
135
128
  readonly scrim: EffectTone;
136
- /** The decorative layers of the brand band; the same in both themes. */
137
- readonly band: BandEffectValues;
129
+ /** The decorative layers of the brand surface; the same in both themes. */
130
+ readonly brandSurface: BrandSurfaceEffectValues;
138
131
  };
139
- /** The brand band's imagery as hex and numbers: gradient, glow, dot grid, blueprint, CTA glow. */
140
- type BandEffectValues = {
141
- /** The band's vertical background, top to bottom. */
132
+ /** The brand surface's imagery as hex and numbers: gradient, line, glow, dot grid, blueprint. */
133
+ type BrandSurfaceEffectValues = {
134
+ /** The surface's vertical background, top to bottom (`primary` into `brand-surface-deep`). */
142
135
  readonly gradient: readonly GradientStop[];
143
- /** The soft glow: its centre colour and opacity; it fades to transparent at its edge. */
136
+ /** The hairline: white and its opacity. */
137
+ readonly line: EffectTone;
138
+ /** The soft glow: its centre colour (white) and opacity; it fades to transparent. */
144
139
  readonly glow: EffectTone;
145
- /** The dot grid: dot colour, opacity at the band's edge, cell side and dot radius in pixels. */
140
+ /** The dot grid: dot colour (white), opacity at the edge, cell side and dot radius in pixels. */
146
141
  readonly dots: EffectTone & {
147
142
  readonly cell: number;
148
143
  readonly radius: number;
149
144
  };
150
- /** A blueprint supergraphic: its fill top to bottom and its outline colour. */
145
+ /** A blueprint supergraphic: white fill fading out by `hold`, white outline, coral dot. */
151
146
  readonly blueprint: {
152
- readonly fill: readonly GradientStop[];
153
- readonly stroke: string;
147
+ readonly color: string;
148
+ readonly fillAlpha: number;
149
+ readonly hold: number;
150
+ readonly strokeAlpha: number;
151
+ readonly dot: string;
154
152
  };
155
- /** The glow of the conversion button on the band, painted in `color`. */
153
+ /** The glow of the conversion button on the surface, painted in `color`. */
156
154
  readonly accentGlow: {
157
155
  readonly color: string;
158
156
  readonly layer: ShadowLayer;
159
157
  };
160
158
  };
161
159
  /**
162
- * The brand band's recipe as plain numbers: what every theme's band imagery is built from.
163
- * The colours are not here; they are the theme's `band-*`, `primary` and `accent` roles.
160
+ * The brand surface's recipe as plain numbers: what every theme's imagery is built from. The
161
+ * colours are not here; they are the theme's `primary`, `brand-surface-deep`, `on-primary` and
162
+ * `accent` roles.
164
163
  */
165
- type BandRecipe = {
166
- /** Offset (0–1) down to which the band holds `band-bg` before it deepens into `band-deep`. */
164
+ type BrandSurfaceRecipe = {
165
+ /** Offset (0–1) down to which the surface holds `primary` before it deepens. */
167
166
  readonly gradientHold: number;
168
- /** Opacity of a glow at its centre. */
167
+ /** Opacity of the white hairline. */
168
+ readonly lineAlpha: number;
169
+ /** Opacity of the white glow at its centre. */
169
170
  readonly glowAlpha: number;
170
171
  /** Side of one dot-grid cell, in CSS pixels. */
171
172
  readonly dotCell: number;
172
173
  /** Radius of one dot, in CSS pixels. */
173
174
  readonly dotRadius: number;
174
- /** Opacity of the dot grid at the band's edge. */
175
+ /** Opacity of the dot grid at the surface's edge. */
175
176
  readonly dotAlpha: number;
176
- /** Offset (0–1) at which a blueprint fill reaches `band-bg`. */
177
+ /** Offset (0–1) by which a blueprint's white fill has faded out. */
177
178
  readonly blueprintHold: number;
178
- /** The conversion button's glow on the band; its opacity applies to the accent colour. */
179
+ /** Opacity of a blueprint's white fill at its top. */
180
+ readonly blueprintFillAlpha: number;
181
+ /** Opacity of a blueprint's white outline. */
182
+ readonly blueprintStrokeAlpha: number;
183
+ /** The conversion button's glow; its opacity applies to the accent colour. */
179
184
  readonly accentGlow: ShadowLayer;
180
185
  };
181
186
  type EffectValues = Readonly<Record<ThemeName, ThemeEffectValues>>;
@@ -191,7 +196,7 @@ type LayerName = 'base' | 'raised' | 'sticky' | 'dropdown' | 'overlay' | 'modal'
191
196
  type Layers = Readonly<Record<LayerName, number>>;
192
197
  type BreakpointName = 'sm' | 'md' | 'lg' | 'xl';
193
198
  type Breakpoints = Readonly<Record<BreakpointName, number>>;
194
- type ScaleToken = `${ChromaticScaleName}-${ChromaticStep}` | `slate-${NeutralStep}`;
199
+ type ScaleToken = `${ChromaticScaleName}-${ChromaticStep}` | `ink-${NeutralStep}`;
195
200
  type TypeProperty = 'size' | 'line-height' | 'weight' | 'letter-spacing' | 'stretch';
196
201
  /** Tokens that keep one value in every theme. */
197
202
  type StaticToken = ScaleToken | `font-${FontRole}` | `font-weight-${FontWeightName}` | `type-${TypeRole}-${TypeProperty}` | `space-${SpaceStep}` | `radius-${RadiusName}` | `duration-${DurationName}` | `ease-${EasingName}` | `z-${LayerName}`;
@@ -245,18 +250,19 @@ declare const maxChroma: (l: number, h: number) => number;
245
250
  declare const oklchToHex: (color: Oklch) => string;
246
251
 
247
252
  /**
248
- * The brand band's recipe: the numbers its imagery is drawn with, the same in every theme.
249
- * The colours are the theme's roles (`band-*`, `primary`, `accent`); `effectValues` and
250
- * `effects` pair the two. A component that draws the band reads its geometry here, because
251
- * an SVG attribute (a pattern's cell, a gradient stop's offset) cannot read a custom property.
253
+ * The brand surface's recipe: the numbers its imagery is drawn with, the same in every theme.
254
+ * The colours are the theme's roles (`primary`, `brand-surface-deep`, `on-primary`, `accent`);
255
+ * `effectValues` and `effects` pair the two. A component that draws the surface reads its
256
+ * geometry here, because an SVG attribute (a pattern's cell, a gradient stop's offset) cannot
257
+ * read a custom property.
252
258
  */
253
- declare const band: BandRecipe;
259
+ declare const brandSurface: BrandSurfaceRecipe;
254
260
 
255
261
  /** Viewport breakpoints in CSS pixels; each is the lower bound of its range. */
256
262
  declare const breakpoints: Breakpoints;
257
263
 
258
264
  /**
259
- * The shadows, the scrim and the band's imagery as hex and numbers, for anything that cannot read a custom
265
+ * The shadows, the scrim and the brand surface's imagery as hex and numbers, for anything that cannot read a custom
260
266
  * property: an Electron main process, an Open Graph image, a PDF. This is the single source;
261
267
  * the CSS strings in `effects` are rendered from it.
262
268
  */
@@ -264,9 +270,9 @@ declare const effectValues: EffectValues;
264
270
 
265
271
  /**
266
272
  * Theme-dependent values that are not plain colours: the three elevation shadows, the raw
267
- * shadow colour and opacity for custom shadows, the dialog scrim, and the brand band's
268
- * imagery (gradient stops, glow, dot grid, blueprint, the conversion button's glow; the same
269
- * in both themes, like the band). These are the CSS strings of `effectValues`, which holds
273
+ * shadow colour and opacity for custom shadows, the dialog scrim, and the brand surface's
274
+ * imagery (gradient hold, white hairline, glow, dot grid, blueprint, the conversion button's
275
+ * glow; the same in both themes, like the cobalt surface). These are the CSS strings of `effectValues`, which holds
270
276
  * the same data as hex and numbers.
271
277
  */
272
278
  declare const effects: Effects;
@@ -280,7 +286,10 @@ declare const fontWeights: FontWeights;
280
286
  */
281
287
  declare const fonts: Fonts;
282
288
 
283
- /** OKLCH hue angle of every chromatic family. Neutrals lean to the cobalt hue. */
289
+ /**
290
+ * OKLCH hue angle of every chromatic family: the brand's cobalt and coral, and red for danger,
291
+ * the one status colour. The neutrals (`ink`) lean to the cobalt angle, which is ink's own.
292
+ */
284
293
  declare const hues: Readonly<Record<HueName, number>>;
285
294
 
286
295
  /** `z-index` layers, lowest to highest. The gaps leave room for local stacking. */
@@ -348,5 +357,5 @@ declare const themes: Themes;
348
357
  */
349
358
  declare const typography: Typography;
350
359
 
351
- export { CSS_VARIABLE_PREFIX, THEME_ATTRIBUTE, THEME_BOOT_SCRIPT, THEME_BOOT_SCRIPT_HASH, THEME_STORAGE_KEY, band, breakpoints, contrast, cssVar, cssVarName, deltaE, effectValues, effects, fontWeights, fonts, hexToOklch, hues, layers, logos, maxChroma, motion, oklchToHex, radii, scales, spacing, themes, typography };
352
- export type { BandEffectValues, BandRecipe, BreakpointName, Breakpoints, ChartIndex, ChromaticScale, ChromaticScaleName, ChromaticStep, ColorToken, DurationName, EasingName, EffectToken, EffectTone, EffectValues, Effects, FontRole, FontWeightName, FontWeights, Fonts, GradientStop, HueName, LayerName, Layers, Logo, LogoName, Logos, Motion, NeutralScale, NeutralStep, Oklch, Radii, RadiusName, ScaleName, ScaleToken, Scales, ShadowLayer, ShadowLevel, SpaceStep, Spacing, StaticToken, StatusName, Theme, ThemeEffectValues, ThemeEffects, ThemeName, ThemePreference, ThemedToken, Themes, TokenName, TypeProperty, TypeRole, TypeStyle, Typography };
360
+ 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 };
361
+ export type { BrandSurfaceEffectValues, BrandSurfaceRecipe, BreakpointName, Breakpoints, ChartIndex, ChromaticScale, ChromaticScaleName, ChromaticStep, ColorToken, DurationName, EasingName, EffectToken, EffectTone, EffectValues, Effects, FontRole, FontWeightName, FontWeights, Fonts, GradientStop, HueName, LayerName, Layers, Logo, LogoName, Logos, Motion, NeutralScale, NeutralStep, Oklch, Radii, RadiusName, ScaleName, ScaleToken, Scales, ShadowLayer, ShadowLevel, SpaceStep, Spacing, StaticToken, StatusName, Theme, ThemeEffectValues, ThemeEffects, ThemeName, ThemePreference, ThemedToken, Themes, TokenName, TypeProperty, TypeRole, TypeStyle, Typography };