@handijitcom/ui 1.0.0 → 1.1.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.
- package/README.md +34 -32
- package/build/calendar.cjs.map +1 -1
- package/build/calendar.js.map +1 -1
- package/build/charts.cjs +1 -1
- package/build/charts.cjs.map +1 -1
- package/build/charts.js +1 -1
- package/build/charts.js.map +1 -1
- package/build/chat.cjs +1 -1
- package/build/chat.cjs.map +1 -1
- package/build/chat.js +1 -1
- package/build/chat.js.map +1 -1
- package/build/components/MoneyInput/index.cjs.map +1 -1
- package/build/components/MoneyInput/index.d.cts +1 -1
- package/build/components/MoneyInput/index.d.ts +1 -1
- package/build/components/MoneyInput/index.js.map +1 -1
- package/build/constants/breakpoint.constants.cjs +1 -1
- package/build/constants/breakpoint.constants.cjs.map +1 -1
- package/build/constants/breakpoint.constants.d.cts +1 -1
- package/build/constants/breakpoint.constants.d.ts +1 -1
- package/build/constants/breakpoint.constants.js +1 -1
- package/build/constants/breakpoint.constants.js.map +1 -1
- package/build/constants/scale.constants.cjs.map +1 -1
- package/build/constants/scale.constants.d.cts +2 -3
- package/build/constants/scale.constants.d.ts +2 -3
- package/build/constants/scale.constants.js.map +1 -1
- package/build/design/fonts/LICENSE-archivo.txt +93 -0
- package/build/design/fonts/LICENSE-ibm-plex-mono.txt +93 -0
- package/build/design/fonts/LICENSE-inter.txt +93 -0
- package/build/design/fonts/archivo-latin-ext-wdth-normal.woff2 +0 -0
- package/build/design/fonts/archivo-latin-wdth-normal.woff2 +0 -0
- package/build/design/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/build/design/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/build/design/fonts/ibm-plex-mono-latin-ext-400-normal.woff2 +0 -0
- package/build/design/fonts/ibm-plex-mono-latin-ext-500-normal.woff2 +0 -0
- package/build/design/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/build/design/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/build/design/fonts.css +75 -0
- package/build/design/fonts.d.css.ts +1 -0
- package/build/design/index.cjs +778 -0
- package/build/design/index.cjs.map +1 -0
- package/build/design/index.d.cts +263 -0
- package/build/design/index.d.mts +263 -0
- package/build/design/index.mjs +751 -0
- package/build/design/index.mjs.map +1 -0
- package/build/design/index.umd.cjs +2 -0
- package/build/design/index.umd.cjs.map +1 -0
- package/build/design/logos/horizontal.svg +1 -0
- package/build/design/logos/mark.svg +1 -0
- package/build/design/tokens.css +477 -0
- package/build/design/tokens.d.css.ts +1 -0
- package/build/design/tokens.json +542 -0
- package/build/design/tokens.scss +616 -0
- package/build/helpers/scaled-number.helper.cjs.map +1 -1
- package/build/helpers/scaled-number.helper.d.cts +3 -4
- package/build/helpers/scaled-number.helper.d.ts +3 -4
- package/build/helpers/scaled-number.helper.js.map +1 -1
- package/build/helpers/theme.helper.cjs +1 -1
- package/build/helpers/theme.helper.cjs.map +1 -1
- package/build/helpers/theme.helper.d.cts +2 -2
- package/build/helpers/theme.helper.d.ts +2 -2
- package/build/helpers/theme.helper.js +1 -1
- package/build/helpers/theme.helper.js.map +1 -1
- package/build/hooks/useUiTheme.cjs +1 -1
- package/build/hooks/useUiTheme.cjs.map +1 -1
- package/build/hooks/useUiTheme.d.cts +1 -1
- package/build/hooks/useUiTheme.d.ts +1 -1
- package/build/hooks/useUiTheme.js +1 -1
- package/build/hooks/useUiTheme.js.map +1 -1
- package/build/hooks/useUiTokens.cjs +1 -1
- package/build/hooks/useUiTokens.cjs.map +1 -1
- package/build/hooks/useUiTokens.d.cts +2 -2
- package/build/hooks/useUiTokens.d.ts +2 -2
- package/build/hooks/useUiTokens.js +1 -1
- package/build/hooks/useUiTokens.js.map +1 -1
- package/build/index.cjs +1 -1
- package/build/index.d.cts +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/scss/_index.scss +1 -1
- package/build/scss/_variables.scss +3 -3
- package/build/theme/UiProvider.cjs.map +1 -1
- package/build/theme/UiProvider.d.cts +1 -1
- package/build/theme/UiProvider.d.ts +1 -1
- package/build/theme/UiProvider.js.map +1 -1
- package/build/theme/UiThemeScript.cjs +1 -1
- package/build/theme/UiThemeScript.cjs.map +1 -1
- package/build/theme/UiThemeScript.d.cts +1 -1
- package/build/theme/UiThemeScript.d.ts +1 -1
- package/build/theme/UiThemeScript.js +1 -1
- package/build/theme/UiThemeScript.js.map +1 -1
- package/build/types/calendar/Calendar/index.d.cts +2 -2
- package/build/types/calendar/Calendar/index.d.ts +2 -2
- package/build/types/calendar/core/time.d.cts +1 -1
- package/build/types/calendar/core/time.d.ts +1 -1
- package/build/types/calendar/core/types.d.cts +1 -1
- package/build/types/calendar/core/types.d.ts +1 -1
- package/build/types/calendar/index.d.cts +1 -1
- package/build/types/calendar/index.d.ts +1 -1
- package/build/types/charts/core/palette.d.cts +1 -1
- package/build/types/charts/core/palette.d.ts +1 -1
- package/build/types/chat/Legend/index.d.cts +1 -1
- package/build/types/chat/Legend/index.d.ts +1 -1
- package/build/types/theme.type.d.cts +2 -2
- package/build/types/theme.type.d.ts +2 -2
- package/build/types/types/theme.type.d.cts +2 -2
- package/build/types/types/theme.type.d.ts +2 -2
- package/package.json +30 -6
|
@@ -0,0 +1,778 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const HEX_PATTERN = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
4
|
+
/** sRGB gamma → linear light. */
|
|
5
|
+
const toLinear = (channel) => channel <= 0.04045 ? channel / 12.92 : ((channel + 0.055) / 1.055) ** 2.4;
|
|
6
|
+
/** Linear light → sRGB gamma. */
|
|
7
|
+
const toGamma = (channel) => channel <= 0.0031308 ? channel * 12.92 : 1.055 * channel ** (1 / 2.4) - 0.055;
|
|
8
|
+
const describe = (value) => typeof value === 'string' ? `"${value}"` : typeof value;
|
|
9
|
+
/** `#rgb` / `#rrggbb` → gamma-encoded channels; anything else is a caller error. */
|
|
10
|
+
const parseHex = (value, caller) => {
|
|
11
|
+
if (typeof value !== 'string' || !HEX_PATTERN.test(value)) {
|
|
12
|
+
throw new TypeError(`${caller}: expected a hex colour like "#2661fa", received ${describe(value)}`);
|
|
13
|
+
}
|
|
14
|
+
const digits = value.slice(1);
|
|
15
|
+
const full = digits.length === 3 ? digits.replace(/./g, digit => digit + digit) : digits;
|
|
16
|
+
const channel = (start) => parseInt(full.slice(start, start + 2), 16) / 255;
|
|
17
|
+
return { r: channel(0), g: channel(2), b: channel(4) };
|
|
18
|
+
};
|
|
19
|
+
const toByte = (channel) => Math.round(Math.min(1, Math.max(0, channel)) * 255)
|
|
20
|
+
.toString(16)
|
|
21
|
+
.padStart(2, '0');
|
|
22
|
+
/** Gamma-encoded channels → lowercase `#rrggbb`; out-of-range channels clip. */
|
|
23
|
+
const formatHex = ({ r, g, b }) => `#${toByte(r)}${toByte(g)}${toByte(b)}`;
|
|
24
|
+
/** WCAG 2 relative luminance of gamma-encoded channels. */
|
|
25
|
+
const relativeLuminance = ({ r, g, b }) => 0.2126 * toLinear(r) + 0.7152 * toLinear(g) + 0.0722 * toLinear(b);
|
|
26
|
+
|
|
27
|
+
/** WCAG 2 contrast ratio of two opaque hex colours, from 1 to 21. Order does not matter. */
|
|
28
|
+
const contrast = (first, second) => {
|
|
29
|
+
const one = relativeLuminance(parseHex(first, 'contrast'));
|
|
30
|
+
const other = relativeLuminance(parseHex(second, 'contrast'));
|
|
31
|
+
return (Math.max(one, other) + 0.05) / (Math.min(one, other) + 0.05);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** Every custom property and Sass variable of the package starts with this. */
|
|
35
|
+
const CSS_VARIABLE_PREFIX = 'hd';
|
|
36
|
+
|
|
37
|
+
/** The custom property name of a token: `cssVarName("bg-page")` → `--hd-bg-page`. */
|
|
38
|
+
const cssVarName = (name) => `--${CSS_VARIABLE_PREFIX}-${name}`;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* A `var()` reference to a token: `cssVar("bg-page")` → `var(--hd-bg-page)`.
|
|
42
|
+
* The optional fallback is emitted verbatim: `var(--hd-bg-page, #fff)`.
|
|
43
|
+
*/
|
|
44
|
+
const cssVar = (name, fallback) => fallback === undefined ? `var(${cssVarName(name)})` : `var(${cssVarName(name)}, ${fallback})`;
|
|
45
|
+
|
|
46
|
+
// Rounding noise at the gamut edge must not count as "out of gamut".
|
|
47
|
+
const GAMUT_EPSILON = 0.0001;
|
|
48
|
+
// 24 halvings of the widest chroma interval land far below one 8-bit step.
|
|
49
|
+
const BISECTION_STEPS = 24;
|
|
50
|
+
/** OKLCH → gamma-encoded sRGB, without any gamut handling. */
|
|
51
|
+
const oklchToSrgb = ({ l, c, h }) => {
|
|
52
|
+
const radians = (h * Math.PI) / 180;
|
|
53
|
+
const greenRed = c * Math.cos(radians);
|
|
54
|
+
const blueYellow = c * Math.sin(radians);
|
|
55
|
+
const long = (l + 0.3963377774 * greenRed + 0.2158037573 * blueYellow) ** 3;
|
|
56
|
+
const medium = (l - 0.1055613458 * greenRed - 0.0638541728 * blueYellow) ** 3;
|
|
57
|
+
const short = (l - 0.0894841775 * greenRed - 1.291485548 * blueYellow) ** 3;
|
|
58
|
+
return {
|
|
59
|
+
r: toGamma(4.0767416621 * long - 3.3077115913 * medium + 0.2309699292 * short),
|
|
60
|
+
g: toGamma(-1.2684380046 * long + 2.6097574011 * medium - 0.3413193965 * short),
|
|
61
|
+
b: toGamma(-0.0041960863 * long - 0.7034186147 * medium + 1.707614701 * short),
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
const isChannelInGamut = (channel) => channel >= -GAMUT_EPSILON && channel <= 1 + GAMUT_EPSILON;
|
|
65
|
+
const isInGamut = ({ r, g, b }) => isChannelInGamut(r) && isChannelInGamut(g) && isChannelInGamut(b);
|
|
66
|
+
/** The highest chroma up to `ceiling` that still fits sRGB at this lightness and hue. */
|
|
67
|
+
const fitChroma = (l, h, ceiling) => {
|
|
68
|
+
let low = 0;
|
|
69
|
+
let high = ceiling;
|
|
70
|
+
for (let step = 0; step < BISECTION_STEPS; step += 1) {
|
|
71
|
+
const middle = (low + high) / 2;
|
|
72
|
+
if (isInGamut(oklchToSrgb({ l, c: middle, h })))
|
|
73
|
+
low = middle;
|
|
74
|
+
else
|
|
75
|
+
high = middle;
|
|
76
|
+
}
|
|
77
|
+
return low;
|
|
78
|
+
};
|
|
79
|
+
/** Gamma-encoded sRGB → OKLab. */
|
|
80
|
+
const srgbToOklab = (rgb) => {
|
|
81
|
+
const r = toLinear(rgb.r);
|
|
82
|
+
const g = toLinear(rgb.g);
|
|
83
|
+
const b = toLinear(rgb.b);
|
|
84
|
+
const long = Math.cbrt(0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b);
|
|
85
|
+
const medium = Math.cbrt(0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b);
|
|
86
|
+
const short = Math.cbrt(0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b);
|
|
87
|
+
return {
|
|
88
|
+
l: 0.2104542553 * long + 0.793617785 * medium - 0.0040720468 * short,
|
|
89
|
+
a: 1.9779984951 * long - 2.428592205 * medium + 0.4505937099 * short,
|
|
90
|
+
b: 0.0259040371 * long + 0.7827717662 * medium - 0.808675766 * short,
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
/** Rejects `NaN`, `±Infinity` and non-numbers: no colour can be computed from them. */
|
|
94
|
+
const assertFinite = (value, name, caller) => {
|
|
95
|
+
if (typeof value !== 'number' || !Number.isFinite(value)) {
|
|
96
|
+
throw new TypeError(`${caller}: ${name} must be a finite number, received ${String(value)}`);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Perceptual distance between two hex colours: Euclidean OKLab distance × 100.
|
|
102
|
+
* Around 2 is a just-noticeable difference; the palette keeps chart colours 10 apart.
|
|
103
|
+
*/
|
|
104
|
+
const deltaE = (first, second) => {
|
|
105
|
+
const from = srgbToOklab(parseHex(first, 'deltaE'));
|
|
106
|
+
const to = srgbToOklab(parseHex(second, 'deltaE'));
|
|
107
|
+
return Math.hypot(from.l - to.l, from.a - to.a, from.b - to.b) * 100;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
// Below this chroma the hue angle is rounding noise, not information.
|
|
111
|
+
const ACHROMATIC_CHROMA = 0.0001;
|
|
112
|
+
/** Converts `#rgb` / `#rrggbb` to OKLCH. Greys report chroma 0 and hue 0. */
|
|
113
|
+
const hexToOklch = (hex) => {
|
|
114
|
+
const { l, a, b } = srgbToOklab(parseHex(hex, 'hexToOklch'));
|
|
115
|
+
const c = Math.hypot(a, b);
|
|
116
|
+
if (c < ACHROMATIC_CHROMA)
|
|
117
|
+
return { l, c: 0, h: 0 };
|
|
118
|
+
return { l, c, h: ((Math.atan2(b, a) * 180) / Math.PI + 360) % 360 };
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
// No sRGB colour reaches this chroma, so the search always starts outside the gamut.
|
|
122
|
+
const CHROMA_CEILING = 0.4;
|
|
123
|
+
/** The highest chroma sRGB can show at the given OKLCH lightness and hue. */
|
|
124
|
+
const maxChroma = (l, h) => {
|
|
125
|
+
assertFinite(l, 'l', 'maxChroma');
|
|
126
|
+
assertFinite(h, 'h', 'maxChroma');
|
|
127
|
+
return fitChroma(l, h, CHROMA_CEILING);
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Converts an OKLCH colour to `#rrggbb`. A colour outside sRGB keeps its lightness and hue
|
|
132
|
+
* and gives up chroma until it fits; channels are never clipped individually.
|
|
133
|
+
*/
|
|
134
|
+
const oklchToHex = (color) => {
|
|
135
|
+
// Destructuring a missing argument would throw an unhelpful engine error instead.
|
|
136
|
+
const { l, c, h } = (color ?? {});
|
|
137
|
+
assertFinite(l, 'l', 'oklchToHex');
|
|
138
|
+
assertFinite(c, 'c', 'oklchToHex');
|
|
139
|
+
assertFinite(h, 'h', 'oklchToHex');
|
|
140
|
+
// Negative chroma is the same colour mirrored through grey; read it as "no chroma".
|
|
141
|
+
const chroma = Math.max(0, c);
|
|
142
|
+
const requested = { l: l, c: chroma, h: h };
|
|
143
|
+
const direct = oklchToSrgb(requested);
|
|
144
|
+
if (isInGamut(direct))
|
|
145
|
+
return formatHex(direct);
|
|
146
|
+
return formatHex(oklchToSrgb({
|
|
147
|
+
...requested,
|
|
148
|
+
c: fitChroma(requested.l, requested.h, chroma),
|
|
149
|
+
}));
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
/** Viewport breakpoints in CSS pixels; each is the lower bound of its range. */
|
|
153
|
+
const breakpoints = {
|
|
154
|
+
sm: 640,
|
|
155
|
+
md: 768,
|
|
156
|
+
lg: 1024,
|
|
157
|
+
xl: 1280,
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
var effectValues = {
|
|
161
|
+
"light": {
|
|
162
|
+
"shadow": {
|
|
163
|
+
"color": "#0f173c",
|
|
164
|
+
"alpha": 0.1
|
|
165
|
+
},
|
|
166
|
+
"shadows": {
|
|
167
|
+
"1": [
|
|
168
|
+
{
|
|
169
|
+
"x": 0,
|
|
170
|
+
"y": 1,
|
|
171
|
+
"blur": 2,
|
|
172
|
+
"spread": 0,
|
|
173
|
+
"alpha": 0.1
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"2": [
|
|
177
|
+
{
|
|
178
|
+
"x": 0,
|
|
179
|
+
"y": 1,
|
|
180
|
+
"blur": 2,
|
|
181
|
+
"spread": 0,
|
|
182
|
+
"alpha": 0.1
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"x": 0,
|
|
186
|
+
"y": 12,
|
|
187
|
+
"blur": 32,
|
|
188
|
+
"spread": -12,
|
|
189
|
+
"alpha": 0.2
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"3": [
|
|
193
|
+
{
|
|
194
|
+
"x": 0,
|
|
195
|
+
"y": 2,
|
|
196
|
+
"blur": 4,
|
|
197
|
+
"spread": 0,
|
|
198
|
+
"alpha": 0.1
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"x": 0,
|
|
202
|
+
"y": 24,
|
|
203
|
+
"blur": 56,
|
|
204
|
+
"spread": -16,
|
|
205
|
+
"alpha": 0.3
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
"scrim": {
|
|
210
|
+
"color": "#091122",
|
|
211
|
+
"alpha": 0.48
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"dark": {
|
|
215
|
+
"shadow": {
|
|
216
|
+
"color": "#000000",
|
|
217
|
+
"alpha": 0.45
|
|
218
|
+
},
|
|
219
|
+
"shadows": {
|
|
220
|
+
"1": [
|
|
221
|
+
{
|
|
222
|
+
"x": 0,
|
|
223
|
+
"y": 1,
|
|
224
|
+
"blur": 2,
|
|
225
|
+
"spread": 0,
|
|
226
|
+
"alpha": 0.45
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"2": [
|
|
230
|
+
{
|
|
231
|
+
"x": 0,
|
|
232
|
+
"y": 1,
|
|
233
|
+
"blur": 2,
|
|
234
|
+
"spread": 0,
|
|
235
|
+
"alpha": 0.45
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"x": 0,
|
|
239
|
+
"y": 12,
|
|
240
|
+
"blur": 32,
|
|
241
|
+
"spread": -12,
|
|
242
|
+
"alpha": 0.9
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"3": [
|
|
246
|
+
{
|
|
247
|
+
"x": 0,
|
|
248
|
+
"y": 2,
|
|
249
|
+
"blur": 4,
|
|
250
|
+
"spread": 0,
|
|
251
|
+
"alpha": 0.45
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"x": 0,
|
|
255
|
+
"y": 24,
|
|
256
|
+
"blur": 56,
|
|
257
|
+
"spread": -16,
|
|
258
|
+
"alpha": 0.9
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
"scrim": {
|
|
263
|
+
"color": "#040813",
|
|
264
|
+
"alpha": 0.64
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
var effects = {
|
|
270
|
+
"light": {
|
|
271
|
+
"shadow-color": "15 23 60",
|
|
272
|
+
"shadow-alpha": "0.1",
|
|
273
|
+
"shadow-1": "0 1px 2px rgb(15 23 60 / 0.1)",
|
|
274
|
+
"shadow-2": "0 1px 2px rgb(15 23 60 / 0.1), 0 12px 32px -12px rgb(15 23 60 / 0.2)",
|
|
275
|
+
"shadow-3": "0 2px 4px rgb(15 23 60 / 0.1), 0 24px 56px -16px rgb(15 23 60 / 0.3)",
|
|
276
|
+
"scrim": "rgb(9 17 34 / 0.48)"
|
|
277
|
+
},
|
|
278
|
+
"dark": {
|
|
279
|
+
"shadow-color": "0 0 0",
|
|
280
|
+
"shadow-alpha": "0.45",
|
|
281
|
+
"shadow-1": "0 1px 2px rgb(0 0 0 / 0.45)",
|
|
282
|
+
"shadow-2": "0 1px 2px rgb(0 0 0 / 0.45), 0 12px 32px -12px rgb(0 0 0 / 0.9)",
|
|
283
|
+
"shadow-3": "0 2px 4px rgb(0 0 0 / 0.45), 0 24px 56px -16px rgb(0 0 0 / 0.9)",
|
|
284
|
+
"scrim": "rgb(4 8 19 / 0.64)"
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
/** Named font weights. IBM Plex Mono ships only `regular` and `medium`. */
|
|
289
|
+
const fontWeights = {
|
|
290
|
+
regular: 400,
|
|
291
|
+
medium: 500,
|
|
292
|
+
semibold: 600,
|
|
293
|
+
bold: 700,
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Font family stacks. The first family of each stack ships in `fonts.css`; the rest are
|
|
298
|
+
* system fonts that hold the layout while the web font loads or when it is missing.
|
|
299
|
+
*/
|
|
300
|
+
const fonts = {
|
|
301
|
+
display: 'Archivo, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif',
|
|
302
|
+
body: 'Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
|
|
303
|
+
mono: '"IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace',
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
/** OKLCH hue angle of every chromatic family. Neutrals lean to the cobalt hue. */
|
|
307
|
+
const hues = {
|
|
308
|
+
cobalt: 264,
|
|
309
|
+
coral: 33,
|
|
310
|
+
turquoise: 192,
|
|
311
|
+
success: 156,
|
|
312
|
+
warning: 78,
|
|
313
|
+
danger: 14,
|
|
314
|
+
violet: 310,
|
|
315
|
+
magenta: 348,
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
/** `z-index` layers, lowest to highest. The gaps leave room for local stacking. */
|
|
319
|
+
const layers = {
|
|
320
|
+
base: 0,
|
|
321
|
+
raised: 1,
|
|
322
|
+
sticky: 100,
|
|
323
|
+
dropdown: 1000,
|
|
324
|
+
overlay: 1100,
|
|
325
|
+
modal: 1200,
|
|
326
|
+
popover: 1300,
|
|
327
|
+
toast: 1400,
|
|
328
|
+
tooltip: 1500,
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* The Han Dijit logos as path data, so React and Electron code can draw them inline.
|
|
333
|
+
* `body` takes `currentColor`; `dot` is the square dot of the mark and takes the accent.
|
|
334
|
+
*/
|
|
335
|
+
// prettier-ignore
|
|
336
|
+
const logos = {
|
|
337
|
+
mark: {
|
|
338
|
+
viewBox: "0 0 618.034 1000",
|
|
339
|
+
width: 618.034,
|
|
340
|
+
height: 1000,
|
|
341
|
+
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",
|
|
342
|
+
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",
|
|
343
|
+
},
|
|
344
|
+
horizontal: {
|
|
345
|
+
viewBox: "0 0 6004.732 1109.971",
|
|
346
|
+
width: 6004.732,
|
|
347
|
+
height: 1109.971,
|
|
348
|
+
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",
|
|
349
|
+
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",
|
|
350
|
+
},
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Durations (ms) and easings. `tokens.css` collapses the durations under
|
|
355
|
+
* `prefers-reduced-motion: reduce`; code that animates from JavaScript has to check the
|
|
356
|
+
* media query itself.
|
|
357
|
+
*/
|
|
358
|
+
const motion = {
|
|
359
|
+
duration: { fast: 120, base: 200, slow: 320 },
|
|
360
|
+
easing: {
|
|
361
|
+
standard: 'cubic-bezier(0.2, 0, 0, 1)',
|
|
362
|
+
enter: 'cubic-bezier(0, 0, 0, 1)',
|
|
363
|
+
exit: 'cubic-bezier(0.3, 0, 1, 1)',
|
|
364
|
+
},
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
/** Corner radii in CSS pixels. `pill` is large enough to round any control fully. */
|
|
368
|
+
const radii = {
|
|
369
|
+
xs: 6,
|
|
370
|
+
sm: 10,
|
|
371
|
+
md: 14,
|
|
372
|
+
lg: 20,
|
|
373
|
+
pill: 999,
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
var scales = {
|
|
377
|
+
"cobalt": {
|
|
378
|
+
"50": "#f4f7fd",
|
|
379
|
+
"100": "#e6edfb",
|
|
380
|
+
"200": "#cfddf9",
|
|
381
|
+
"300": "#adc6f7",
|
|
382
|
+
"400": "#82a8f7",
|
|
383
|
+
"500": "#5487fa",
|
|
384
|
+
"600": "#2661fa",
|
|
385
|
+
"700": "#053dea",
|
|
386
|
+
"800": "#0631b2",
|
|
387
|
+
"900": "#05247e",
|
|
388
|
+
"950": "#031650"
|
|
389
|
+
},
|
|
390
|
+
"coral": {
|
|
391
|
+
"50": "#fdf5f2",
|
|
392
|
+
"100": "#fbe8e3",
|
|
393
|
+
"200": "#fad7cf",
|
|
394
|
+
"300": "#f9bdb0",
|
|
395
|
+
"400": "#f99884",
|
|
396
|
+
"500": "#fb6041",
|
|
397
|
+
"600": "#e03611",
|
|
398
|
+
"700": "#b72e11",
|
|
399
|
+
"800": "#87230f",
|
|
400
|
+
"900": "#5d190c",
|
|
401
|
+
"950": "#380e06"
|
|
402
|
+
},
|
|
403
|
+
"turquoise": {
|
|
404
|
+
"50": "#edfaf9",
|
|
405
|
+
"100": "#d5f4f2",
|
|
406
|
+
"200": "#aeedea",
|
|
407
|
+
"300": "#7ddfdb",
|
|
408
|
+
"400": "#3acac6",
|
|
409
|
+
"500": "#20aca8",
|
|
410
|
+
"600": "#158e8a",
|
|
411
|
+
"700": "#157371",
|
|
412
|
+
"800": "#135553",
|
|
413
|
+
"900": "#0f3b3a",
|
|
414
|
+
"950": "#082322"
|
|
415
|
+
},
|
|
416
|
+
"success": {
|
|
417
|
+
"50": "#effaf3",
|
|
418
|
+
"100": "#dbf4e3",
|
|
419
|
+
"200": "#bbedcc",
|
|
420
|
+
"300": "#7de5a7",
|
|
421
|
+
"400": "#3ad184",
|
|
422
|
+
"500": "#20b26d",
|
|
423
|
+
"600": "#159358",
|
|
424
|
+
"700": "#157748",
|
|
425
|
+
"800": "#135835",
|
|
426
|
+
"900": "#0f3d25",
|
|
427
|
+
"950": "#082415"
|
|
428
|
+
},
|
|
429
|
+
"warning": {
|
|
430
|
+
"50": "#fdf6ea",
|
|
431
|
+
"100": "#fbead1",
|
|
432
|
+
"200": "#faddb1",
|
|
433
|
+
"300": "#f9c97c",
|
|
434
|
+
"400": "#f0af36",
|
|
435
|
+
"500": "#cf931d",
|
|
436
|
+
"600": "#ad7a13",
|
|
437
|
+
"700": "#8e6413",
|
|
438
|
+
"800": "#664811",
|
|
439
|
+
"900": "#46310d",
|
|
440
|
+
"950": "#281c06"
|
|
441
|
+
},
|
|
442
|
+
"danger": {
|
|
443
|
+
"50": "#fdf4f5",
|
|
444
|
+
"100": "#fbe7e8",
|
|
445
|
+
"200": "#f9d1d3",
|
|
446
|
+
"300": "#f8afb5",
|
|
447
|
+
"400": "#f87e8d",
|
|
448
|
+
"500": "#fa2f61",
|
|
449
|
+
"600": "#d2154c",
|
|
450
|
+
"700": "#a9143c",
|
|
451
|
+
"800": "#81142e",
|
|
452
|
+
"900": "#5c1020",
|
|
453
|
+
"950": "#3a0913"
|
|
454
|
+
},
|
|
455
|
+
"violet": {
|
|
456
|
+
"50": "#f9f5fd",
|
|
457
|
+
"100": "#f3e8fb",
|
|
458
|
+
"200": "#e8d3f9",
|
|
459
|
+
"300": "#dab4f7",
|
|
460
|
+
"400": "#c988f7",
|
|
461
|
+
"500": "#bb51fa",
|
|
462
|
+
"600": "#a217e4",
|
|
463
|
+
"700": "#8216b7",
|
|
464
|
+
"800": "#63168c",
|
|
465
|
+
"900": "#461263",
|
|
466
|
+
"950": "#2c0b3e"
|
|
467
|
+
},
|
|
468
|
+
"magenta": {
|
|
469
|
+
"50": "#fdf4f8",
|
|
470
|
+
"100": "#fbe6f0",
|
|
471
|
+
"200": "#f9cee3",
|
|
472
|
+
"300": "#f8abd1",
|
|
473
|
+
"400": "#f874bd",
|
|
474
|
+
"500": "#f220a8",
|
|
475
|
+
"600": "#c71589",
|
|
476
|
+
"700": "#a0146e",
|
|
477
|
+
"800": "#7a1354",
|
|
478
|
+
"900": "#57103b",
|
|
479
|
+
"950": "#370924"
|
|
480
|
+
},
|
|
481
|
+
"slate": {
|
|
482
|
+
"0": "#ffffff",
|
|
483
|
+
"25": "#fafbfe",
|
|
484
|
+
"50": "#f4f6fb",
|
|
485
|
+
"100": "#ecf0f6",
|
|
486
|
+
"200": "#dee3ed",
|
|
487
|
+
"300": "#cbd1de",
|
|
488
|
+
"400": "#a1a9ba",
|
|
489
|
+
"500": "#677083",
|
|
490
|
+
"600": "#515b6e",
|
|
491
|
+
"700": "#3f495d",
|
|
492
|
+
"800": "#263044",
|
|
493
|
+
"900": "#141e31",
|
|
494
|
+
"950": "#091122"
|
|
495
|
+
}
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
/** The spacing scale in CSS pixels: every step is its name × 4px. */
|
|
499
|
+
const spacing = {
|
|
500
|
+
0: 0,
|
|
501
|
+
1: 4,
|
|
502
|
+
2: 8,
|
|
503
|
+
3: 12,
|
|
504
|
+
4: 16,
|
|
505
|
+
5: 20,
|
|
506
|
+
6: 24,
|
|
507
|
+
8: 32,
|
|
508
|
+
10: 40,
|
|
509
|
+
12: 48,
|
|
510
|
+
16: 64,
|
|
511
|
+
20: 80,
|
|
512
|
+
24: 96,
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
/** The attribute that selects a theme: `<html data-theme="dark">`. */
|
|
516
|
+
const THEME_ATTRIBUTE = 'data-theme';
|
|
517
|
+
|
|
518
|
+
var themeBootScript = "(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)})();";
|
|
519
|
+
|
|
520
|
+
var themeBootScriptHash = "sha256-yBtu0+cpsTaiuo7oykT/pEhxNmKXW7Q0szD6rE70zOM=";
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* The `localStorage` key holding the user's choice: `"light"`, `"dark"`, or anything else
|
|
524
|
+
* (including no entry) for "follow the system".
|
|
525
|
+
*/
|
|
526
|
+
const THEME_STORAGE_KEY = 'hd-theme';
|
|
527
|
+
|
|
528
|
+
var themes = {
|
|
529
|
+
"light": {
|
|
530
|
+
"bg-page": "#fafbfe",
|
|
531
|
+
"bg-surface": "#ffffff",
|
|
532
|
+
"bg-raised": "#f4f6fb",
|
|
533
|
+
"bg-inset": "#ecf0f6",
|
|
534
|
+
"bg-overlay": "#ffffff",
|
|
535
|
+
"bg-disabled": "#ecf0f6",
|
|
536
|
+
"border": "#dee3ed",
|
|
537
|
+
"border-strong": "#cbd1de",
|
|
538
|
+
"border-control": "#80899b",
|
|
539
|
+
"text": "#091122",
|
|
540
|
+
"text-2": "#515b6e",
|
|
541
|
+
"text-3": "#677083",
|
|
542
|
+
"text-disabled": "#a1a9ba",
|
|
543
|
+
"primary": "#2661fa",
|
|
544
|
+
"primary-hover": "#053dea",
|
|
545
|
+
"primary-active": "#0631b2",
|
|
546
|
+
"on-primary": "#ffffff",
|
|
547
|
+
"primary-soft": "#f4f7fd",
|
|
548
|
+
"primary-soft-hover": "#e6edfb",
|
|
549
|
+
"primary-line": "#cfddf9",
|
|
550
|
+
"primary-text": "#053dea",
|
|
551
|
+
"accent": "#fb6041",
|
|
552
|
+
"accent-hover": "#f99884",
|
|
553
|
+
"accent-active": "#f05133",
|
|
554
|
+
"on-accent": "#091122",
|
|
555
|
+
"accent-soft": "#fdf5f2",
|
|
556
|
+
"accent-text": "#b72e11",
|
|
557
|
+
"highlight": "#20aca8",
|
|
558
|
+
"on-highlight": "#091122",
|
|
559
|
+
"highlight-soft": "#edfaf9",
|
|
560
|
+
"highlight-text": "#157371",
|
|
561
|
+
"focus": "#5487fa",
|
|
562
|
+
"selection-bg": "#cfddf9",
|
|
563
|
+
"success-bg": "#effaf3",
|
|
564
|
+
"success-fg": "#157748",
|
|
565
|
+
"success-line": "#bbedcc",
|
|
566
|
+
"success-solid": "#159358",
|
|
567
|
+
"success-on-solid": "#091122",
|
|
568
|
+
"warning-bg": "#fdf6ea",
|
|
569
|
+
"warning-fg": "#8e6413",
|
|
570
|
+
"warning-line": "#faddb1",
|
|
571
|
+
"warning-solid": "#ad7a13",
|
|
572
|
+
"warning-on-solid": "#091122",
|
|
573
|
+
"danger-bg": "#fdf4f5",
|
|
574
|
+
"danger-fg": "#a9143c",
|
|
575
|
+
"danger-line": "#f9d1d3",
|
|
576
|
+
"danger-solid": "#d2154c",
|
|
577
|
+
"danger-on-solid": "#ffffff",
|
|
578
|
+
"info-bg": "#f4f7fd",
|
|
579
|
+
"info-fg": "#053dea",
|
|
580
|
+
"info-line": "#cfddf9",
|
|
581
|
+
"info-solid": "#2661fa",
|
|
582
|
+
"info-on-solid": "#ffffff",
|
|
583
|
+
"chart-1": "#2661fa",
|
|
584
|
+
"chart-2": "#e03611",
|
|
585
|
+
"chart-3": "#158e8a",
|
|
586
|
+
"chart-4": "#ad7a13",
|
|
587
|
+
"chart-5": "#c71589",
|
|
588
|
+
"chart-6": "#a217e4",
|
|
589
|
+
"band-bg": "#091b64",
|
|
590
|
+
"band-deep": "#060f3e",
|
|
591
|
+
"band-line": "#213b86",
|
|
592
|
+
"band-line-strong": "#5b7cce",
|
|
593
|
+
"band-text": "#ffffff",
|
|
594
|
+
"band-text-2": "#bfd2f3"
|
|
595
|
+
},
|
|
596
|
+
"dark": {
|
|
597
|
+
"bg-page": "#080e1b",
|
|
598
|
+
"bg-surface": "#0f1727",
|
|
599
|
+
"bg-raised": "#172032",
|
|
600
|
+
"bg-inset": "#040813",
|
|
601
|
+
"bg-overlay": "#202a3e",
|
|
602
|
+
"bg-disabled": "#172032",
|
|
603
|
+
"border": "#283145",
|
|
604
|
+
"border-strong": "#414d64",
|
|
605
|
+
"border-control": "#69758d",
|
|
606
|
+
"text": "#f1f3f9",
|
|
607
|
+
"text-2": "#bac1d0",
|
|
608
|
+
"text-3": "#8f99ab",
|
|
609
|
+
"text-disabled": "#4e586d",
|
|
610
|
+
"primary": "#2661fa",
|
|
611
|
+
"primary-hover": "#2e69fe",
|
|
612
|
+
"primary-active": "#053dea",
|
|
613
|
+
"on-primary": "#ffffff",
|
|
614
|
+
"primary-soft": "#11234f",
|
|
615
|
+
"primary-soft-hover": "#172c62",
|
|
616
|
+
"primary-line": "#24418d",
|
|
617
|
+
"primary-text": "#adc6f7",
|
|
618
|
+
"accent": "#fb6041",
|
|
619
|
+
"accent-hover": "#f99884",
|
|
620
|
+
"accent-active": "#f05133",
|
|
621
|
+
"on-accent": "#091122",
|
|
622
|
+
"accent-soft": "#3f1a12",
|
|
623
|
+
"accent-text": "#f9bdb0",
|
|
624
|
+
"highlight": "#3acac6",
|
|
625
|
+
"on-highlight": "#091122",
|
|
626
|
+
"highlight-soft": "#022d2c",
|
|
627
|
+
"highlight-text": "#7ddfdb",
|
|
628
|
+
"focus": "#82a8f7",
|
|
629
|
+
"selection-bg": "#24418d",
|
|
630
|
+
"success-bg": "#0b2b1a",
|
|
631
|
+
"success-fg": "#7de5a7",
|
|
632
|
+
"success-line": "#144f30",
|
|
633
|
+
"success-solid": "#3ad184",
|
|
634
|
+
"success-on-solid": "#091122",
|
|
635
|
+
"warning-bg": "#342305",
|
|
636
|
+
"warning-fg": "#f9c97c",
|
|
637
|
+
"warning-line": "#5e420f",
|
|
638
|
+
"warning-solid": "#f0af36",
|
|
639
|
+
"warning-on-solid": "#091122",
|
|
640
|
+
"danger-bg": "#3e141a",
|
|
641
|
+
"danger-fg": "#f8afb5",
|
|
642
|
+
"danger-line": "#742633",
|
|
643
|
+
"danger-solid": "#d2154c",
|
|
644
|
+
"danger-on-solid": "#ffffff",
|
|
645
|
+
"info-bg": "#11234f",
|
|
646
|
+
"info-fg": "#adc6f7",
|
|
647
|
+
"info-line": "#24418d",
|
|
648
|
+
"info-solid": "#2661fa",
|
|
649
|
+
"info-on-solid": "#ffffff",
|
|
650
|
+
"chart-1": "#82a8f7",
|
|
651
|
+
"chart-2": "#f99884",
|
|
652
|
+
"chart-3": "#3acac6",
|
|
653
|
+
"chart-4": "#f0af36",
|
|
654
|
+
"chart-5": "#f874bd",
|
|
655
|
+
"chart-6": "#c988f7",
|
|
656
|
+
"band-bg": "#091b64",
|
|
657
|
+
"band-deep": "#060f3e",
|
|
658
|
+
"band-line": "#213b86",
|
|
659
|
+
"band-line-strong": "#5b7cce",
|
|
660
|
+
"band-text": "#ffffff",
|
|
661
|
+
"band-text-2": "#bfd2f3"
|
|
662
|
+
}
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* The type scale. Sizes are CSS pixels at a 16px root (body is 15px); headings are set in
|
|
667
|
+
* the display family, slightly wide (`stretch` above 100) and tight.
|
|
668
|
+
*/
|
|
669
|
+
const typography = {
|
|
670
|
+
display: {
|
|
671
|
+
font: 'display',
|
|
672
|
+
size: 56,
|
|
673
|
+
lineHeight: 1.05,
|
|
674
|
+
weight: 700,
|
|
675
|
+
letterSpacing: -0.03,
|
|
676
|
+
stretch: 112,
|
|
677
|
+
},
|
|
678
|
+
h1: {
|
|
679
|
+
font: 'display',
|
|
680
|
+
size: 40,
|
|
681
|
+
lineHeight: 1.1,
|
|
682
|
+
weight: 700,
|
|
683
|
+
letterSpacing: -0.025,
|
|
684
|
+
stretch: 110,
|
|
685
|
+
},
|
|
686
|
+
h2: {
|
|
687
|
+
font: 'display',
|
|
688
|
+
size: 30,
|
|
689
|
+
lineHeight: 1.15,
|
|
690
|
+
weight: 700,
|
|
691
|
+
letterSpacing: -0.02,
|
|
692
|
+
stretch: 110,
|
|
693
|
+
},
|
|
694
|
+
h3: {
|
|
695
|
+
font: 'display',
|
|
696
|
+
size: 22,
|
|
697
|
+
lineHeight: 1.2,
|
|
698
|
+
weight: 650,
|
|
699
|
+
letterSpacing: -0.015,
|
|
700
|
+
stretch: 108,
|
|
701
|
+
},
|
|
702
|
+
h4: {
|
|
703
|
+
font: 'display',
|
|
704
|
+
size: 18,
|
|
705
|
+
lineHeight: 1.3,
|
|
706
|
+
weight: 650,
|
|
707
|
+
letterSpacing: -0.01,
|
|
708
|
+
stretch: 108,
|
|
709
|
+
},
|
|
710
|
+
lead: {
|
|
711
|
+
font: 'body',
|
|
712
|
+
size: 17,
|
|
713
|
+
lineHeight: 1.55,
|
|
714
|
+
weight: 400,
|
|
715
|
+
letterSpacing: 0,
|
|
716
|
+
stretch: 100,
|
|
717
|
+
},
|
|
718
|
+
body: {
|
|
719
|
+
font: 'body',
|
|
720
|
+
size: 15,
|
|
721
|
+
lineHeight: 1.55,
|
|
722
|
+
weight: 400,
|
|
723
|
+
letterSpacing: 0,
|
|
724
|
+
stretch: 100,
|
|
725
|
+
},
|
|
726
|
+
small: {
|
|
727
|
+
font: 'body',
|
|
728
|
+
size: 13,
|
|
729
|
+
lineHeight: 1.5,
|
|
730
|
+
weight: 400,
|
|
731
|
+
letterSpacing: 0,
|
|
732
|
+
stretch: 100,
|
|
733
|
+
},
|
|
734
|
+
caption: {
|
|
735
|
+
font: 'body',
|
|
736
|
+
size: 12,
|
|
737
|
+
lineHeight: 1.4,
|
|
738
|
+
weight: 500,
|
|
739
|
+
letterSpacing: 0.01,
|
|
740
|
+
stretch: 100,
|
|
741
|
+
},
|
|
742
|
+
code: {
|
|
743
|
+
font: 'mono',
|
|
744
|
+
size: 13,
|
|
745
|
+
lineHeight: 1.5,
|
|
746
|
+
weight: 400,
|
|
747
|
+
letterSpacing: 0,
|
|
748
|
+
stretch: 100,
|
|
749
|
+
},
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
exports.CSS_VARIABLE_PREFIX = CSS_VARIABLE_PREFIX;
|
|
753
|
+
exports.THEME_ATTRIBUTE = THEME_ATTRIBUTE;
|
|
754
|
+
exports.THEME_BOOT_SCRIPT = themeBootScript;
|
|
755
|
+
exports.THEME_BOOT_SCRIPT_HASH = themeBootScriptHash;
|
|
756
|
+
exports.THEME_STORAGE_KEY = THEME_STORAGE_KEY;
|
|
757
|
+
exports.breakpoints = breakpoints;
|
|
758
|
+
exports.contrast = contrast;
|
|
759
|
+
exports.cssVar = cssVar;
|
|
760
|
+
exports.cssVarName = cssVarName;
|
|
761
|
+
exports.deltaE = deltaE;
|
|
762
|
+
exports.effectValues = effectValues;
|
|
763
|
+
exports.effects = effects;
|
|
764
|
+
exports.fontWeights = fontWeights;
|
|
765
|
+
exports.fonts = fonts;
|
|
766
|
+
exports.hexToOklch = hexToOklch;
|
|
767
|
+
exports.hues = hues;
|
|
768
|
+
exports.layers = layers;
|
|
769
|
+
exports.logos = logos;
|
|
770
|
+
exports.maxChroma = maxChroma;
|
|
771
|
+
exports.motion = motion;
|
|
772
|
+
exports.oklchToHex = oklchToHex;
|
|
773
|
+
exports.radii = radii;
|
|
774
|
+
exports.scales = scales;
|
|
775
|
+
exports.spacing = spacing;
|
|
776
|
+
exports.themes = themes;
|
|
777
|
+
exports.typography = typography;
|
|
778
|
+
//# sourceMappingURL=index.cjs.map
|