@dloizides/design-tokens 1.11.0 → 1.13.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/CHANGELOG.md +10 -0
- package/README.md +1 -0
- package/dist/index.d.mts +113 -5
- package/dist/index.d.ts +113 -5
- package/dist/index.js +197 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +193 -26
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.13.0
|
|
4
|
+
|
|
5
|
+
- New overlay stacking scale `Z_INDEX` (`base` 0 < `sticky` 2 < `raised` 30 < `drawer` 50 < `palette` 60 < `dropdown` 1000 < `modal` 9999 < `popover` 10000 < `toast` 10100 < `blocking` 100000), plus `Z_INDEX_ORDER`, `RN_WEB_MODAL_Z_INDEX` and type `ZIndexLayer`. `modal` is react-native-web's fixed Modal layer; body-portalled menus use `popover` so they paint above an open Modal (UI-ZINDEX-SCALE-1 "Shared overlay z-index scale").
|
|
6
|
+
|
|
7
|
+
## 1.12.0
|
|
8
|
+
|
|
9
|
+
- New `INTERVIEWPREP_TOKENS` preset + `INTERVIEWPREP_CSS_VAR_NAMES`, seeded from InterviewPrep theme.css (REDESIGN-IP-1 Q-TOKENS "New interviewprep preset").
|
|
10
|
+
- `toCssVars` `lightSelector` option: dark-first output (dark in `:root`, light in the given selector). Light-first output is byte-identical.
|
|
11
|
+
- `CssVarNames` gains per-mode names for the optional `ModeColors` fields (textTertiary, focusRing, brandFill, onBrandFill, successText, dangerText, dangerFill).
|
|
12
|
+
|
|
3
13
|
## 1.11.0
|
|
4
14
|
|
|
5
15
|
**Optional mode extras, increased-contrast overrides, motion springs, and the D1 "Living Room" `nextgame` preset.**
|
package/README.md
CHANGED
|
@@ -75,6 +75,7 @@ Each preset is seeded from that app's current source of truth:
|
|
|
75
75
|
| `EREVNA_TOKENS` | `erevna-web/src/theme/presets/default.ts` + `theme/utils/palette.ts` | primary `#005f73`, secondary `#94d2bd`, accent `#008d5c`; full light+dark mode |
|
|
76
76
|
| `KATALOGOS_TOKENS` | `katalogos-web/src/theme/presets/default.ts` | currently **identical** to Erevna; kept separate so they can diverge |
|
|
77
77
|
| `AML_TOKENS` | `PROOViD/AMLService/.../wwwroot/shared/ui.css` `:root` | brand `#4f46e5`; dark app-shell + light workspace + verdict palette + radii/shadows/fonts |
|
|
78
|
+
| `INTERVIEWPREP_TOKENS` | `InterviewPrep/sites/portal/theme.css` (dark `:root` + `[data-theme='light']`) | DARK-FIRST: emit with `toCssVars(INTERVIEWPREP_TOKENS, INTERVIEWPREP_CSS_VAR_NAMES, { lightSelector: ":root[data-theme='light']" })` (1.12.0); per-mode `brandFill`/`dangerFill`/... carry the site colours |
|
|
78
79
|
|
|
79
80
|
RN presets carry **no** `typography`/`radii`/`shadows`/`extensions` — the RN theme has no
|
|
80
81
|
centralized tokens for those today, so they are omitted (nothing to emit → zero change). The AML
|
package/dist/index.d.mts
CHANGED
|
@@ -376,6 +376,48 @@ interface FinregSurfaceColors {
|
|
|
376
376
|
|
|
377
377
|
declare const DEFAULT_MOTION: Motion;
|
|
378
378
|
|
|
379
|
+
/**
|
|
380
|
+
* The shared overlay stacking scale — one named z-index per layer, ordered low to high.
|
|
381
|
+
*
|
|
382
|
+
* react-native-web mounts `Modal` in a body-level `position: fixed` container at
|
|
383
|
+
* `zIndex: 9999` (react-native-web `Modal/ModalAnimation.js`). We cannot move that number,
|
|
384
|
+
* so the scale is built around it: everything a Modal must cover sits below it, and
|
|
385
|
+
* everything that must stay usable WITH a Modal open (body-portalled menus, toasts, the
|
|
386
|
+
* blocking warm-up overlay) sits above it.
|
|
387
|
+
*
|
|
388
|
+
* Values only — framework-agnostic, usable as an RN `zIndex` or a CSS `z-index`.
|
|
389
|
+
*/
|
|
390
|
+
/** react-native-web's fixed Modal layer. A constant of the library, not a design choice. */
|
|
391
|
+
declare const RN_WEB_MODAL_Z_INDEX = 9999;
|
|
392
|
+
/**
|
|
393
|
+
* - `base`: in-flow content.
|
|
394
|
+
* - `sticky`: sticky table headers / columns.
|
|
395
|
+
* - `raised`: in-tree elements lifted over their siblings (cards, row chrome).
|
|
396
|
+
* - `drawer`: the mobile navigation drawer + scrim.
|
|
397
|
+
* - `palette`: the command palette, above the drawer.
|
|
398
|
+
* - `dropdown`: an in-tree (non-portalled) dropdown, or an anchor lifted while its menu is open.
|
|
399
|
+
* - `modal`: react-native-web's Modal container (read-only — RN-web sets it).
|
|
400
|
+
* - `popover`: every body-portalled menu / popover; clears an open Modal so a dropdown inside a
|
|
401
|
+
* dialog paints above it and receives the click.
|
|
402
|
+
* - `toast`: toasts stay readable over an open popover.
|
|
403
|
+
* - `blocking`: the full-screen blocking overlay (service warm-up); covers everything.
|
|
404
|
+
*/
|
|
405
|
+
declare const Z_INDEX: {
|
|
406
|
+
readonly base: 0;
|
|
407
|
+
readonly sticky: 2;
|
|
408
|
+
readonly raised: 30;
|
|
409
|
+
readonly drawer: 50;
|
|
410
|
+
readonly palette: 60;
|
|
411
|
+
readonly dropdown: 1000;
|
|
412
|
+
readonly modal: 9999;
|
|
413
|
+
readonly popover: number;
|
|
414
|
+
readonly toast: number;
|
|
415
|
+
readonly blocking: 100000;
|
|
416
|
+
};
|
|
417
|
+
type ZIndexLayer = keyof typeof Z_INDEX;
|
|
418
|
+
/** The layers in stacking order, lowest first. */
|
|
419
|
+
declare const Z_INDEX_ORDER: readonly ZIndexLayer[];
|
|
420
|
+
|
|
379
421
|
/**
|
|
380
422
|
* CSS custom-property NAME MAPS — the cross-stack naming contract.
|
|
381
423
|
*
|
|
@@ -424,6 +466,20 @@ interface CssVarNames {
|
|
|
424
466
|
darkTextSecondary?: string;
|
|
425
467
|
darkBorder?: string;
|
|
426
468
|
darkDivider?: string;
|
|
469
|
+
lightTextTertiary?: string;
|
|
470
|
+
darkTextTertiary?: string;
|
|
471
|
+
lightFocusRing?: string;
|
|
472
|
+
darkFocusRing?: string;
|
|
473
|
+
lightBrandFill?: string;
|
|
474
|
+
darkBrandFill?: string;
|
|
475
|
+
lightOnBrandFill?: string;
|
|
476
|
+
darkOnBrandFill?: string;
|
|
477
|
+
lightSuccessText?: string;
|
|
478
|
+
darkSuccessText?: string;
|
|
479
|
+
lightDangerText?: string;
|
|
480
|
+
darkDangerText?: string;
|
|
481
|
+
lightDangerFill?: string;
|
|
482
|
+
darkDangerFill?: string;
|
|
427
483
|
radiusXs?: string;
|
|
428
484
|
radiusSm?: string;
|
|
429
485
|
radiusMd?: string;
|
|
@@ -481,6 +537,20 @@ declare const DEFAULT_CSS_VAR_NAMES: CssVarNames;
|
|
|
481
537
|
* - all `dark*` — AML has no dark-mode toggle (its shell lives in the extension).
|
|
482
538
|
*/
|
|
483
539
|
declare const AML_CSS_VAR_NAMES: CssVarNames;
|
|
540
|
+
/**
|
|
541
|
+
* InterviewPrep's existing `sites/portal/theme.css` variable names. InterviewPrep is
|
|
542
|
+
* DARK-FIRST (dark on `:root`, light under `:root[data-theme='light']`), so emit with
|
|
543
|
+
* `toCssVars(INTERVIEWPREP_TOKENS, INTERVIEWPREP_CSS_VAR_NAMES, { lightSelector:
|
|
544
|
+
* ":root[data-theme='light']" })`. `darkSelector` alone cannot express it: a later
|
|
545
|
+
* `:root` dark block would override the light values in both modes.
|
|
546
|
+
*
|
|
547
|
+
* Covers only the variables that have a token field. Every brand/status colour in
|
|
548
|
+
* theme.css differs per mode, so it is carried by a per-mode field (`brandFill` ->
|
|
549
|
+
* `--primary`, `dangerFill` -> `--status-error`, ...) and the top-level single-value
|
|
550
|
+
* fields are left unnamed. Mode-specific shadows and the app-only variables
|
|
551
|
+
* (`--space-*`, `--code-*`, `--line-*`, `--xp-*`, alpha tints) stay hand-written.
|
|
552
|
+
*/
|
|
553
|
+
declare const INTERVIEWPREP_CSS_VAR_NAMES: CssVarNames;
|
|
484
554
|
|
|
485
555
|
/** Options for {@link toCssVars}. */
|
|
486
556
|
interface ToCssVarsOptions {
|
|
@@ -489,12 +559,24 @@ interface ToCssVarsOptions {
|
|
|
489
559
|
* `dark*` variables. Defaults to `:root[data-theme="dark"]`.
|
|
490
560
|
*/
|
|
491
561
|
darkSelector?: string;
|
|
562
|
+
/**
|
|
563
|
+
* DARK-FIRST output. When set, `:root` carries the shared tokens plus the
|
|
564
|
+
* DARK-mode colours (the site's default), and the light-mode colours move to
|
|
565
|
+
* this selector (e.g. `:root[data-theme='light']`); `darkSelector` is ignored.
|
|
566
|
+
* The light selector must out-rank plain `:root` (an attribute selector does),
|
|
567
|
+
* so the order the blocks are loaded in does not matter.
|
|
568
|
+
*/
|
|
569
|
+
lightSelector?: string;
|
|
492
570
|
}
|
|
493
571
|
/**
|
|
494
|
-
* Emit a {@link DesignTokens} as CSS custom properties.
|
|
495
|
-
*
|
|
496
|
-
*
|
|
497
|
-
*
|
|
572
|
+
* Emit a {@link DesignTokens} as CSS custom properties.
|
|
573
|
+
*
|
|
574
|
+
* Light-first (default): shared tokens (brand, semantic, radii, shadows, fonts,
|
|
575
|
+
* extensions) and the LIGHT-mode colours go in `:root {}`; DARK-mode colours go
|
|
576
|
+
* in `darkSelector`, emitted only when the name map names at least one `dark*`
|
|
577
|
+
* variable. Dark-first (`lightSelector` set): `:root {}` carries the shared
|
|
578
|
+
* tokens plus the DARK-mode colours and the LIGHT-mode colours go in
|
|
579
|
+
* `lightSelector`.
|
|
498
580
|
*/
|
|
499
581
|
declare function toCssVars(tokens: DesignTokens, names: CssVarNames, options?: ToCssVarsOptions): string;
|
|
500
582
|
|
|
@@ -743,6 +825,32 @@ declare const DIGITALKIN_TOKENS: DesignTokens;
|
|
|
743
825
|
*/
|
|
744
826
|
declare const EREVNA_TOKENS: DesignTokens;
|
|
745
827
|
|
|
828
|
+
/**
|
|
829
|
+
* InterviewPrep (interview-prep-hub.dloizides.com) tokens, seeded from
|
|
830
|
+
* `InterviewPrep/sites/portal/theme.css` as of 2026-09-29 (REDESIGN-IP-1, owner
|
|
831
|
+
* decision Q-TOKENS "New interviewprep preset"), so emitting it changes nothing on
|
|
832
|
+
* the site.
|
|
833
|
+
*
|
|
834
|
+
* DARK-FIRST. theme.css declares the dark palette on `:root` and the light one on
|
|
835
|
+
* `:root[data-theme='light']`; emit with `lightSelector` (see
|
|
836
|
+
* `INTERVIEWPREP_CSS_VAR_NAMES`). Every brand/status colour differs by mode, so the
|
|
837
|
+
* site-facing values live in the per-mode fields (`brandFill`, `dangerFill`, ...).
|
|
838
|
+
* The top-level single-value fields follow the nextgame precedent and carry the
|
|
839
|
+
* LIGHT values, for RN / OG-image consumers:
|
|
840
|
+
* - `primary`/`accent` `#c0512d` (light --primary / --accent); `onBrand` white, 4.71:1.
|
|
841
|
+
* - `secondary` `#1f9d8a` (light --accent-2 teal).
|
|
842
|
+
* - `semantic.error` `#b91c1c` = light --status-error-text, the TEXT-tuned red (the
|
|
843
|
+
* contrast guard reads semantic.error as text); the light FILL `#dc2626` is
|
|
844
|
+
* `light.dangerFill`.
|
|
845
|
+
*
|
|
846
|
+
* `textSecondary` = --text-muted, `textTertiary` = --text-secondary (the lighter tier
|
|
847
|
+
* in light mode). `border`/`divider`/`surfaceMuted`/`focusRing` are rgba overlays in
|
|
848
|
+
* theme.css and are kept verbatim. No `shadows`: theme.css shadows differ per mode and
|
|
849
|
+
* the token shape has one set. `radii.xs` has no theme.css step: it aliases `sm` and
|
|
850
|
+
* the name map does not emit it.
|
|
851
|
+
*/
|
|
852
|
+
declare const INTERVIEWPREP_TOKENS: DesignTokens;
|
|
853
|
+
|
|
746
854
|
/**
|
|
747
855
|
* Katalogos (online menus — realm `onlinemenu`) tokens.
|
|
748
856
|
*
|
|
@@ -948,4 +1056,4 @@ declare function onBrandRatio(background: string, explicit?: string): number | n
|
|
|
948
1056
|
*/
|
|
949
1057
|
declare function canCarryAccessibleInk(background: string): boolean;
|
|
950
1058
|
|
|
951
|
-
export { AA_LARGE_TEXT_RATIO, AA_NON_TEXT_RATIO, AA_NORMAL_TEXT_RATIO, AML_CSS_VAR_NAMES, AML_TOKENS, type BrandExtras, type Branding, type ContrastMoreOverrides, type CssVarNames, DEFAULT_CSS_VAR_NAMES, DEFAULT_MOTION, DIGITALKIN_TOKENS, type DesignTokens, EREVNA_TOKENS, FINREG_MODULE_COLORS, FINREG_SURFACE_COLORS, type FinregModuleColor, type FinregModuleColors, type FinregSurfaceColors, type InkScale, KATALOGOS_TOKENS, type ModeColors, type Motion, type MotionDurations, type MotionEasing, type MotionEasings, type MotionSpring, type MotionSprings, NEXTGAME_TOKENS, ON_BRAND_DARK_INK, ON_BRAND_LIGHT_INK, PRESETS, type Radii, type RnThemeConfig, type SemanticColors, type Shadows, type ShellColors, type TailwindColors, type TailwindPreset, type ToCssVarsOptions, type TokenExtensions, type Typography, UI_DEEP_STEP, UI_MAIN_STEP, UI_TINT_STEP, type UiColorScale, type UiThemeColors, type UiThemeConfig, type UiThemeMode, type UiThemePalette, type UiThemeSemantic, type VerdictColors, type WorkspaceExtras, canCarryAccessibleInk, contrastRatio, isHexColor, meetsContrast, onBrandRatio, relativeLuminance, resolveOnBrand, toCssVars, toRnTheme, toTailwindPreset, toUiTheme };
|
|
1059
|
+
export { AA_LARGE_TEXT_RATIO, AA_NON_TEXT_RATIO, AA_NORMAL_TEXT_RATIO, AML_CSS_VAR_NAMES, AML_TOKENS, type BrandExtras, type Branding, type ContrastMoreOverrides, type CssVarNames, DEFAULT_CSS_VAR_NAMES, DEFAULT_MOTION, DIGITALKIN_TOKENS, type DesignTokens, EREVNA_TOKENS, FINREG_MODULE_COLORS, FINREG_SURFACE_COLORS, type FinregModuleColor, type FinregModuleColors, type FinregSurfaceColors, INTERVIEWPREP_CSS_VAR_NAMES, INTERVIEWPREP_TOKENS, type InkScale, KATALOGOS_TOKENS, type ModeColors, type Motion, type MotionDurations, type MotionEasing, type MotionEasings, type MotionSpring, type MotionSprings, NEXTGAME_TOKENS, ON_BRAND_DARK_INK, ON_BRAND_LIGHT_INK, PRESETS, RN_WEB_MODAL_Z_INDEX, type Radii, type RnThemeConfig, type SemanticColors, type Shadows, type ShellColors, type TailwindColors, type TailwindPreset, type ToCssVarsOptions, type TokenExtensions, type Typography, UI_DEEP_STEP, UI_MAIN_STEP, UI_TINT_STEP, type UiColorScale, type UiThemeColors, type UiThemeConfig, type UiThemeMode, type UiThemePalette, type UiThemeSemantic, type VerdictColors, type WorkspaceExtras, type ZIndexLayer, Z_INDEX, Z_INDEX_ORDER, canCarryAccessibleInk, contrastRatio, isHexColor, meetsContrast, onBrandRatio, relativeLuminance, resolveOnBrand, toCssVars, toRnTheme, toTailwindPreset, toUiTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -376,6 +376,48 @@ interface FinregSurfaceColors {
|
|
|
376
376
|
|
|
377
377
|
declare const DEFAULT_MOTION: Motion;
|
|
378
378
|
|
|
379
|
+
/**
|
|
380
|
+
* The shared overlay stacking scale — one named z-index per layer, ordered low to high.
|
|
381
|
+
*
|
|
382
|
+
* react-native-web mounts `Modal` in a body-level `position: fixed` container at
|
|
383
|
+
* `zIndex: 9999` (react-native-web `Modal/ModalAnimation.js`). We cannot move that number,
|
|
384
|
+
* so the scale is built around it: everything a Modal must cover sits below it, and
|
|
385
|
+
* everything that must stay usable WITH a Modal open (body-portalled menus, toasts, the
|
|
386
|
+
* blocking warm-up overlay) sits above it.
|
|
387
|
+
*
|
|
388
|
+
* Values only — framework-agnostic, usable as an RN `zIndex` or a CSS `z-index`.
|
|
389
|
+
*/
|
|
390
|
+
/** react-native-web's fixed Modal layer. A constant of the library, not a design choice. */
|
|
391
|
+
declare const RN_WEB_MODAL_Z_INDEX = 9999;
|
|
392
|
+
/**
|
|
393
|
+
* - `base`: in-flow content.
|
|
394
|
+
* - `sticky`: sticky table headers / columns.
|
|
395
|
+
* - `raised`: in-tree elements lifted over their siblings (cards, row chrome).
|
|
396
|
+
* - `drawer`: the mobile navigation drawer + scrim.
|
|
397
|
+
* - `palette`: the command palette, above the drawer.
|
|
398
|
+
* - `dropdown`: an in-tree (non-portalled) dropdown, or an anchor lifted while its menu is open.
|
|
399
|
+
* - `modal`: react-native-web's Modal container (read-only — RN-web sets it).
|
|
400
|
+
* - `popover`: every body-portalled menu / popover; clears an open Modal so a dropdown inside a
|
|
401
|
+
* dialog paints above it and receives the click.
|
|
402
|
+
* - `toast`: toasts stay readable over an open popover.
|
|
403
|
+
* - `blocking`: the full-screen blocking overlay (service warm-up); covers everything.
|
|
404
|
+
*/
|
|
405
|
+
declare const Z_INDEX: {
|
|
406
|
+
readonly base: 0;
|
|
407
|
+
readonly sticky: 2;
|
|
408
|
+
readonly raised: 30;
|
|
409
|
+
readonly drawer: 50;
|
|
410
|
+
readonly palette: 60;
|
|
411
|
+
readonly dropdown: 1000;
|
|
412
|
+
readonly modal: 9999;
|
|
413
|
+
readonly popover: number;
|
|
414
|
+
readonly toast: number;
|
|
415
|
+
readonly blocking: 100000;
|
|
416
|
+
};
|
|
417
|
+
type ZIndexLayer = keyof typeof Z_INDEX;
|
|
418
|
+
/** The layers in stacking order, lowest first. */
|
|
419
|
+
declare const Z_INDEX_ORDER: readonly ZIndexLayer[];
|
|
420
|
+
|
|
379
421
|
/**
|
|
380
422
|
* CSS custom-property NAME MAPS — the cross-stack naming contract.
|
|
381
423
|
*
|
|
@@ -424,6 +466,20 @@ interface CssVarNames {
|
|
|
424
466
|
darkTextSecondary?: string;
|
|
425
467
|
darkBorder?: string;
|
|
426
468
|
darkDivider?: string;
|
|
469
|
+
lightTextTertiary?: string;
|
|
470
|
+
darkTextTertiary?: string;
|
|
471
|
+
lightFocusRing?: string;
|
|
472
|
+
darkFocusRing?: string;
|
|
473
|
+
lightBrandFill?: string;
|
|
474
|
+
darkBrandFill?: string;
|
|
475
|
+
lightOnBrandFill?: string;
|
|
476
|
+
darkOnBrandFill?: string;
|
|
477
|
+
lightSuccessText?: string;
|
|
478
|
+
darkSuccessText?: string;
|
|
479
|
+
lightDangerText?: string;
|
|
480
|
+
darkDangerText?: string;
|
|
481
|
+
lightDangerFill?: string;
|
|
482
|
+
darkDangerFill?: string;
|
|
427
483
|
radiusXs?: string;
|
|
428
484
|
radiusSm?: string;
|
|
429
485
|
radiusMd?: string;
|
|
@@ -481,6 +537,20 @@ declare const DEFAULT_CSS_VAR_NAMES: CssVarNames;
|
|
|
481
537
|
* - all `dark*` — AML has no dark-mode toggle (its shell lives in the extension).
|
|
482
538
|
*/
|
|
483
539
|
declare const AML_CSS_VAR_NAMES: CssVarNames;
|
|
540
|
+
/**
|
|
541
|
+
* InterviewPrep's existing `sites/portal/theme.css` variable names. InterviewPrep is
|
|
542
|
+
* DARK-FIRST (dark on `:root`, light under `:root[data-theme='light']`), so emit with
|
|
543
|
+
* `toCssVars(INTERVIEWPREP_TOKENS, INTERVIEWPREP_CSS_VAR_NAMES, { lightSelector:
|
|
544
|
+
* ":root[data-theme='light']" })`. `darkSelector` alone cannot express it: a later
|
|
545
|
+
* `:root` dark block would override the light values in both modes.
|
|
546
|
+
*
|
|
547
|
+
* Covers only the variables that have a token field. Every brand/status colour in
|
|
548
|
+
* theme.css differs per mode, so it is carried by a per-mode field (`brandFill` ->
|
|
549
|
+
* `--primary`, `dangerFill` -> `--status-error`, ...) and the top-level single-value
|
|
550
|
+
* fields are left unnamed. Mode-specific shadows and the app-only variables
|
|
551
|
+
* (`--space-*`, `--code-*`, `--line-*`, `--xp-*`, alpha tints) stay hand-written.
|
|
552
|
+
*/
|
|
553
|
+
declare const INTERVIEWPREP_CSS_VAR_NAMES: CssVarNames;
|
|
484
554
|
|
|
485
555
|
/** Options for {@link toCssVars}. */
|
|
486
556
|
interface ToCssVarsOptions {
|
|
@@ -489,12 +559,24 @@ interface ToCssVarsOptions {
|
|
|
489
559
|
* `dark*` variables. Defaults to `:root[data-theme="dark"]`.
|
|
490
560
|
*/
|
|
491
561
|
darkSelector?: string;
|
|
562
|
+
/**
|
|
563
|
+
* DARK-FIRST output. When set, `:root` carries the shared tokens plus the
|
|
564
|
+
* DARK-mode colours (the site's default), and the light-mode colours move to
|
|
565
|
+
* this selector (e.g. `:root[data-theme='light']`); `darkSelector` is ignored.
|
|
566
|
+
* The light selector must out-rank plain `:root` (an attribute selector does),
|
|
567
|
+
* so the order the blocks are loaded in does not matter.
|
|
568
|
+
*/
|
|
569
|
+
lightSelector?: string;
|
|
492
570
|
}
|
|
493
571
|
/**
|
|
494
|
-
* Emit a {@link DesignTokens} as CSS custom properties.
|
|
495
|
-
*
|
|
496
|
-
*
|
|
497
|
-
*
|
|
572
|
+
* Emit a {@link DesignTokens} as CSS custom properties.
|
|
573
|
+
*
|
|
574
|
+
* Light-first (default): shared tokens (brand, semantic, radii, shadows, fonts,
|
|
575
|
+
* extensions) and the LIGHT-mode colours go in `:root {}`; DARK-mode colours go
|
|
576
|
+
* in `darkSelector`, emitted only when the name map names at least one `dark*`
|
|
577
|
+
* variable. Dark-first (`lightSelector` set): `:root {}` carries the shared
|
|
578
|
+
* tokens plus the DARK-mode colours and the LIGHT-mode colours go in
|
|
579
|
+
* `lightSelector`.
|
|
498
580
|
*/
|
|
499
581
|
declare function toCssVars(tokens: DesignTokens, names: CssVarNames, options?: ToCssVarsOptions): string;
|
|
500
582
|
|
|
@@ -743,6 +825,32 @@ declare const DIGITALKIN_TOKENS: DesignTokens;
|
|
|
743
825
|
*/
|
|
744
826
|
declare const EREVNA_TOKENS: DesignTokens;
|
|
745
827
|
|
|
828
|
+
/**
|
|
829
|
+
* InterviewPrep (interview-prep-hub.dloizides.com) tokens, seeded from
|
|
830
|
+
* `InterviewPrep/sites/portal/theme.css` as of 2026-09-29 (REDESIGN-IP-1, owner
|
|
831
|
+
* decision Q-TOKENS "New interviewprep preset"), so emitting it changes nothing on
|
|
832
|
+
* the site.
|
|
833
|
+
*
|
|
834
|
+
* DARK-FIRST. theme.css declares the dark palette on `:root` and the light one on
|
|
835
|
+
* `:root[data-theme='light']`; emit with `lightSelector` (see
|
|
836
|
+
* `INTERVIEWPREP_CSS_VAR_NAMES`). Every brand/status colour differs by mode, so the
|
|
837
|
+
* site-facing values live in the per-mode fields (`brandFill`, `dangerFill`, ...).
|
|
838
|
+
* The top-level single-value fields follow the nextgame precedent and carry the
|
|
839
|
+
* LIGHT values, for RN / OG-image consumers:
|
|
840
|
+
* - `primary`/`accent` `#c0512d` (light --primary / --accent); `onBrand` white, 4.71:1.
|
|
841
|
+
* - `secondary` `#1f9d8a` (light --accent-2 teal).
|
|
842
|
+
* - `semantic.error` `#b91c1c` = light --status-error-text, the TEXT-tuned red (the
|
|
843
|
+
* contrast guard reads semantic.error as text); the light FILL `#dc2626` is
|
|
844
|
+
* `light.dangerFill`.
|
|
845
|
+
*
|
|
846
|
+
* `textSecondary` = --text-muted, `textTertiary` = --text-secondary (the lighter tier
|
|
847
|
+
* in light mode). `border`/`divider`/`surfaceMuted`/`focusRing` are rgba overlays in
|
|
848
|
+
* theme.css and are kept verbatim. No `shadows`: theme.css shadows differ per mode and
|
|
849
|
+
* the token shape has one set. `radii.xs` has no theme.css step: it aliases `sm` and
|
|
850
|
+
* the name map does not emit it.
|
|
851
|
+
*/
|
|
852
|
+
declare const INTERVIEWPREP_TOKENS: DesignTokens;
|
|
853
|
+
|
|
746
854
|
/**
|
|
747
855
|
* Katalogos (online menus — realm `onlinemenu`) tokens.
|
|
748
856
|
*
|
|
@@ -948,4 +1056,4 @@ declare function onBrandRatio(background: string, explicit?: string): number | n
|
|
|
948
1056
|
*/
|
|
949
1057
|
declare function canCarryAccessibleInk(background: string): boolean;
|
|
950
1058
|
|
|
951
|
-
export { AA_LARGE_TEXT_RATIO, AA_NON_TEXT_RATIO, AA_NORMAL_TEXT_RATIO, AML_CSS_VAR_NAMES, AML_TOKENS, type BrandExtras, type Branding, type ContrastMoreOverrides, type CssVarNames, DEFAULT_CSS_VAR_NAMES, DEFAULT_MOTION, DIGITALKIN_TOKENS, type DesignTokens, EREVNA_TOKENS, FINREG_MODULE_COLORS, FINREG_SURFACE_COLORS, type FinregModuleColor, type FinregModuleColors, type FinregSurfaceColors, type InkScale, KATALOGOS_TOKENS, type ModeColors, type Motion, type MotionDurations, type MotionEasing, type MotionEasings, type MotionSpring, type MotionSprings, NEXTGAME_TOKENS, ON_BRAND_DARK_INK, ON_BRAND_LIGHT_INK, PRESETS, type Radii, type RnThemeConfig, type SemanticColors, type Shadows, type ShellColors, type TailwindColors, type TailwindPreset, type ToCssVarsOptions, type TokenExtensions, type Typography, UI_DEEP_STEP, UI_MAIN_STEP, UI_TINT_STEP, type UiColorScale, type UiThemeColors, type UiThemeConfig, type UiThemeMode, type UiThemePalette, type UiThemeSemantic, type VerdictColors, type WorkspaceExtras, canCarryAccessibleInk, contrastRatio, isHexColor, meetsContrast, onBrandRatio, relativeLuminance, resolveOnBrand, toCssVars, toRnTheme, toTailwindPreset, toUiTheme };
|
|
1059
|
+
export { AA_LARGE_TEXT_RATIO, AA_NON_TEXT_RATIO, AA_NORMAL_TEXT_RATIO, AML_CSS_VAR_NAMES, AML_TOKENS, type BrandExtras, type Branding, type ContrastMoreOverrides, type CssVarNames, DEFAULT_CSS_VAR_NAMES, DEFAULT_MOTION, DIGITALKIN_TOKENS, type DesignTokens, EREVNA_TOKENS, FINREG_MODULE_COLORS, FINREG_SURFACE_COLORS, type FinregModuleColor, type FinregModuleColors, type FinregSurfaceColors, INTERVIEWPREP_CSS_VAR_NAMES, INTERVIEWPREP_TOKENS, type InkScale, KATALOGOS_TOKENS, type ModeColors, type Motion, type MotionDurations, type MotionEasing, type MotionEasings, type MotionSpring, type MotionSprings, NEXTGAME_TOKENS, ON_BRAND_DARK_INK, ON_BRAND_LIGHT_INK, PRESETS, RN_WEB_MODAL_Z_INDEX, type Radii, type RnThemeConfig, type SemanticColors, type Shadows, type ShellColors, type TailwindColors, type TailwindPreset, type ToCssVarsOptions, type TokenExtensions, type Typography, UI_DEEP_STEP, UI_MAIN_STEP, UI_TINT_STEP, type UiColorScale, type UiThemeColors, type UiThemeConfig, type UiThemeMode, type UiThemePalette, type UiThemeSemantic, type VerdictColors, type WorkspaceExtras, type ZIndexLayer, Z_INDEX, Z_INDEX_ORDER, canCarryAccessibleInk, contrastRatio, isHexColor, meetsContrast, onBrandRatio, relativeLuminance, resolveOnBrand, toCssVars, toRnTheme, toTailwindPreset, toUiTheme };
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,43 @@ var DEFAULT_MOTION = {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
+
// src/zIndex.ts
|
|
35
|
+
var RN_WEB_MODAL_Z_INDEX = 9999;
|
|
36
|
+
var BASE = 0;
|
|
37
|
+
var STICKY = 2;
|
|
38
|
+
var RAISED = 30;
|
|
39
|
+
var DRAWER = 50;
|
|
40
|
+
var PALETTE = 60;
|
|
41
|
+
var DROPDOWN = 1e3;
|
|
42
|
+
var POPOVER = RN_WEB_MODAL_Z_INDEX + 1;
|
|
43
|
+
var TOAST_HEADROOM = 100;
|
|
44
|
+
var TOAST = POPOVER + TOAST_HEADROOM;
|
|
45
|
+
var BLOCKING = 1e5;
|
|
46
|
+
var Z_INDEX = {
|
|
47
|
+
base: BASE,
|
|
48
|
+
sticky: STICKY,
|
|
49
|
+
raised: RAISED,
|
|
50
|
+
drawer: DRAWER,
|
|
51
|
+
palette: PALETTE,
|
|
52
|
+
dropdown: DROPDOWN,
|
|
53
|
+
modal: RN_WEB_MODAL_Z_INDEX,
|
|
54
|
+
popover: POPOVER,
|
|
55
|
+
toast: TOAST,
|
|
56
|
+
blocking: BLOCKING
|
|
57
|
+
};
|
|
58
|
+
var Z_INDEX_ORDER = [
|
|
59
|
+
"base",
|
|
60
|
+
"sticky",
|
|
61
|
+
"raised",
|
|
62
|
+
"drawer",
|
|
63
|
+
"palette",
|
|
64
|
+
"dropdown",
|
|
65
|
+
"modal",
|
|
66
|
+
"popover",
|
|
67
|
+
"toast",
|
|
68
|
+
"blocking"
|
|
69
|
+
];
|
|
70
|
+
|
|
34
71
|
// src/varNames.ts
|
|
35
72
|
var DEFAULT_CSS_VAR_NAMES = {
|
|
36
73
|
primary: "--primary",
|
|
@@ -118,6 +155,45 @@ var AML_CSS_VAR_NAMES = {
|
|
|
118
155
|
badSoft2: "--bad-soft2",
|
|
119
156
|
badInk: "--bad-ink"
|
|
120
157
|
};
|
|
158
|
+
var INTERVIEWPREP_CSS_VAR_NAMES = {
|
|
159
|
+
lightBackground: "--bg",
|
|
160
|
+
lightSurface: "--panel",
|
|
161
|
+
lightSurfaceElevated: "--card",
|
|
162
|
+
lightSurfaceMuted: "--surface-muted",
|
|
163
|
+
lightText: "--text",
|
|
164
|
+
lightTextSecondary: "--text-muted",
|
|
165
|
+
lightTextTertiary: "--text-secondary",
|
|
166
|
+
lightBorder: "--border",
|
|
167
|
+
lightDivider: "--border-soft",
|
|
168
|
+
lightFocusRing: "--focus-ring",
|
|
169
|
+
lightBrandFill: "--primary",
|
|
170
|
+
lightOnBrandFill: "--primary-on",
|
|
171
|
+
lightSuccessText: "--status-success-text",
|
|
172
|
+
lightDangerText: "--status-error-text",
|
|
173
|
+
lightDangerFill: "--status-error",
|
|
174
|
+
darkBackground: "--bg",
|
|
175
|
+
darkSurface: "--panel",
|
|
176
|
+
darkSurfaceElevated: "--card",
|
|
177
|
+
darkSurfaceMuted: "--surface-muted",
|
|
178
|
+
darkText: "--text",
|
|
179
|
+
darkTextSecondary: "--text-muted",
|
|
180
|
+
darkTextTertiary: "--text-secondary",
|
|
181
|
+
darkBorder: "--border",
|
|
182
|
+
darkDivider: "--border-soft",
|
|
183
|
+
darkFocusRing: "--focus-ring",
|
|
184
|
+
darkBrandFill: "--primary",
|
|
185
|
+
darkOnBrandFill: "--primary-on",
|
|
186
|
+
darkSuccessText: "--status-success-text",
|
|
187
|
+
darkDangerText: "--status-error-text",
|
|
188
|
+
darkDangerFill: "--status-error",
|
|
189
|
+
// radiusXs omitted: theme.css has no xs step
|
|
190
|
+
radiusSm: "--radius-sm",
|
|
191
|
+
radiusMd: "--radius-md",
|
|
192
|
+
radiusLg: "--radius-lg",
|
|
193
|
+
radiusPill: "--radius-full",
|
|
194
|
+
fontFamily: "--font-sans",
|
|
195
|
+
monoFamily: "--font-mono"
|
|
196
|
+
};
|
|
121
197
|
|
|
122
198
|
// src/contrast.ts
|
|
123
199
|
var AA_NORMAL_TEXT_RATIO = 4.5;
|
|
@@ -228,7 +304,32 @@ function block(selector, lines) {
|
|
|
228
304
|
${lines.join("\n")}
|
|
229
305
|
}`;
|
|
230
306
|
}
|
|
231
|
-
|
|
307
|
+
var MODE_FIELDS = [
|
|
308
|
+
["background", "lightBackground", "darkBackground"],
|
|
309
|
+
["surface", "lightSurface", "darkSurface"],
|
|
310
|
+
["surfaceElevated", "lightSurfaceElevated", "darkSurfaceElevated"],
|
|
311
|
+
["surfaceMuted", "lightSurfaceMuted", "darkSurfaceMuted"],
|
|
312
|
+
["text", "lightText", "darkText"],
|
|
313
|
+
["textSecondary", "lightTextSecondary", "darkTextSecondary"],
|
|
314
|
+
["border", "lightBorder", "darkBorder"],
|
|
315
|
+
["divider", "lightDivider", "darkDivider"],
|
|
316
|
+
["textTertiary", "lightTextTertiary", "darkTextTertiary"],
|
|
317
|
+
["focusRing", "lightFocusRing", "darkFocusRing"],
|
|
318
|
+
["brandFill", "lightBrandFill", "darkBrandFill"],
|
|
319
|
+
["onBrandFill", "lightOnBrandFill", "darkOnBrandFill"],
|
|
320
|
+
["successText", "lightSuccessText", "darkSuccessText"],
|
|
321
|
+
["dangerText", "lightDangerText", "darkDangerText"],
|
|
322
|
+
["dangerFill", "lightDangerFill", "darkDangerFill"]
|
|
323
|
+
];
|
|
324
|
+
var LIGHT_INDEX = 1;
|
|
325
|
+
var DARK_INDEX = 2;
|
|
326
|
+
function modeLines(colors, names, nameIndex) {
|
|
327
|
+
return MODE_FIELDS.map((entry) => {
|
|
328
|
+
const nameKey = entry[nameIndex];
|
|
329
|
+
return declaration(names[nameKey], colors[entry[0]]);
|
|
330
|
+
}).filter(isLine);
|
|
331
|
+
}
|
|
332
|
+
function sharedLines(tokens, names) {
|
|
232
333
|
const ext = tokens.extensions;
|
|
233
334
|
const baseEntries = [
|
|
234
335
|
declaration(names.primary, tokens.primary),
|
|
@@ -245,15 +346,9 @@ function toCssVars(tokens, names, options) {
|
|
|
245
346
|
declaration(names.successBg, tokens.semantic.successBg),
|
|
246
347
|
declaration(names.warningBg, tokens.semantic.warningBg),
|
|
247
348
|
declaration(names.errorBg, tokens.semantic.errorBg),
|
|
248
|
-
declaration(names.infoBg, tokens.semantic.infoBg)
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
declaration(names.lightSurfaceElevated, tokens.light.surfaceElevated),
|
|
252
|
-
declaration(names.lightSurfaceMuted, tokens.light.surfaceMuted),
|
|
253
|
-
declaration(names.lightText, tokens.light.text),
|
|
254
|
-
declaration(names.lightTextSecondary, tokens.light.textSecondary),
|
|
255
|
-
declaration(names.lightBorder, tokens.light.border),
|
|
256
|
-
declaration(names.lightDivider, tokens.light.divider),
|
|
349
|
+
declaration(names.infoBg, tokens.semantic.infoBg)
|
|
350
|
+
];
|
|
351
|
+
const tailEntries = [
|
|
257
352
|
declaration(names.radiusXs, tokens.radii?.xs),
|
|
258
353
|
declaration(names.radiusSm, tokens.radii?.sm),
|
|
259
354
|
declaration(names.radiusMd, tokens.radii?.md),
|
|
@@ -289,25 +384,27 @@ function toCssVars(tokens, names, options) {
|
|
|
289
384
|
declaration(names.badSoft2, ext?.verdict?.badSoft2),
|
|
290
385
|
declaration(names.badInk, ext?.verdict?.badInk)
|
|
291
386
|
];
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
387
|
+
return { head: baseEntries.filter(isLine), tail: tailEntries.filter(isLine) };
|
|
388
|
+
}
|
|
389
|
+
function toCssVars(tokens, names, options) {
|
|
390
|
+
const shared = sharedLines(tokens, names);
|
|
391
|
+
const light = modeLines(tokens.light, names, LIGHT_INDEX);
|
|
392
|
+
const dark = modeLines(tokens.dark, names, DARK_INDEX);
|
|
393
|
+
const lightSelector = options?.lightSelector;
|
|
394
|
+
if (lightSelector !== void 0) {
|
|
395
|
+
const rootBlock = block(":root", [...shared.head, ...shared.tail, ...dark]);
|
|
396
|
+
return light.length === 0 ? rootBlock : `${rootBlock}
|
|
397
|
+
|
|
398
|
+
${block(lightSelector, light)}`;
|
|
399
|
+
}
|
|
400
|
+
const baseBlock = block(":root", [...shared.head, ...light, ...shared.tail]);
|
|
401
|
+
if (dark.length === 0) {
|
|
305
402
|
return baseBlock;
|
|
306
403
|
}
|
|
307
404
|
const selector = options?.darkSelector ?? DEFAULT_DARK_SELECTOR;
|
|
308
405
|
return `${baseBlock}
|
|
309
406
|
|
|
310
|
-
${block(selector,
|
|
407
|
+
${block(selector, dark)}`;
|
|
311
408
|
}
|
|
312
409
|
|
|
313
410
|
// src/emit/toRnTheme.ts
|
|
@@ -631,6 +728,75 @@ var EREVNA_TOKENS = {
|
|
|
631
728
|
}
|
|
632
729
|
};
|
|
633
730
|
|
|
731
|
+
// src/presets/interviewprep.ts
|
|
732
|
+
var INTERVIEWPREP_TOKENS = {
|
|
733
|
+
primary: "#c0512d",
|
|
734
|
+
secondary: "#1f9d8a",
|
|
735
|
+
accent: "#c0512d",
|
|
736
|
+
onBrand: "#ffffff",
|
|
737
|
+
semantic: {
|
|
738
|
+
success: "#148a3f",
|
|
739
|
+
warning: "#b45309",
|
|
740
|
+
error: "#b91c1c",
|
|
741
|
+
info: "#2563eb",
|
|
742
|
+
successBg: "rgba(20, 138, 63, 0.12)",
|
|
743
|
+
warningBg: "rgba(180, 83, 9, 0.12)",
|
|
744
|
+
errorBg: "rgba(220, 38, 38, 0.12)",
|
|
745
|
+
infoBg: "rgba(37, 99, 235, 0.12)"
|
|
746
|
+
},
|
|
747
|
+
light: {
|
|
748
|
+
background: "#f7f1ea",
|
|
749
|
+
surface: "#ffffff",
|
|
750
|
+
surfaceElevated: "#fef7f0",
|
|
751
|
+
surfaceMuted: "rgba(15, 23, 42, 0.04)",
|
|
752
|
+
text: "#1a2332",
|
|
753
|
+
textSecondary: "#4b5c6e",
|
|
754
|
+
textTertiary: "#5a6b7d",
|
|
755
|
+
border: "rgba(15, 23, 42, 0.15)",
|
|
756
|
+
divider: "rgba(15, 23, 42, 0.1)",
|
|
757
|
+
focusRing: "rgba(192, 81, 45, 0.5)",
|
|
758
|
+
brandFill: "#c0512d",
|
|
759
|
+
onBrandFill: "#ffffff",
|
|
760
|
+
successText: "#166534",
|
|
761
|
+
dangerText: "#b91c1c",
|
|
762
|
+
dangerFill: "#dc2626"
|
|
763
|
+
},
|
|
764
|
+
dark: {
|
|
765
|
+
background: "#0b121a",
|
|
766
|
+
surface: "#121a24",
|
|
767
|
+
surfaceElevated: "#162030",
|
|
768
|
+
surfaceMuted: "rgba(148, 163, 184, 0.08)",
|
|
769
|
+
text: "#f1f5f9",
|
|
770
|
+
textSecondary: "#a1b0c4",
|
|
771
|
+
textTertiary: "#a1b0c4",
|
|
772
|
+
border: "rgba(148, 163, 184, 0.2)",
|
|
773
|
+
divider: "rgba(148, 163, 184, 0.15)",
|
|
774
|
+
focusRing: "rgba(255, 138, 91, 0.6)",
|
|
775
|
+
brandFill: "#ff8a5b",
|
|
776
|
+
onBrandFill: "#0f172a",
|
|
777
|
+
successText: "#4ade80",
|
|
778
|
+
dangerText: "#f87171",
|
|
779
|
+
dangerFill: "#ef4444"
|
|
780
|
+
},
|
|
781
|
+
typography: {
|
|
782
|
+
fontFamily: "'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
783
|
+
monoFamily: "'Atkinson Hyperlegible Mono', ui-monospace, SFMono-Regular, Consolas, monospace",
|
|
784
|
+
headingScale: 1
|
|
785
|
+
},
|
|
786
|
+
radii: {
|
|
787
|
+
xs: "0.375rem",
|
|
788
|
+
sm: "0.375rem",
|
|
789
|
+
md: "0.75rem",
|
|
790
|
+
lg: "1rem",
|
|
791
|
+
pill: "9999px"
|
|
792
|
+
},
|
|
793
|
+
branding: {
|
|
794
|
+
logoContentId: null,
|
|
795
|
+
faviconContentId: null,
|
|
796
|
+
presetId: "interviewprep"
|
|
797
|
+
}
|
|
798
|
+
};
|
|
799
|
+
|
|
634
800
|
// src/presets/katalogos.ts
|
|
635
801
|
var KATALOGOS_TOKENS = {
|
|
636
802
|
primary: "#005f73",
|
|
@@ -762,7 +928,8 @@ var PRESETS = {
|
|
|
762
928
|
erevna: EREVNA_TOKENS,
|
|
763
929
|
katalogos: KATALOGOS_TOKENS,
|
|
764
930
|
digitalkin: DIGITALKIN_TOKENS,
|
|
765
|
-
nextgame: NEXTGAME_TOKENS
|
|
931
|
+
nextgame: NEXTGAME_TOKENS,
|
|
932
|
+
interviewprep: INTERVIEWPREP_TOKENS
|
|
766
933
|
};
|
|
767
934
|
|
|
768
935
|
// src/finregModules.ts
|
|
@@ -801,14 +968,19 @@ exports.DIGITALKIN_TOKENS = DIGITALKIN_TOKENS;
|
|
|
801
968
|
exports.EREVNA_TOKENS = EREVNA_TOKENS;
|
|
802
969
|
exports.FINREG_MODULE_COLORS = FINREG_MODULE_COLORS;
|
|
803
970
|
exports.FINREG_SURFACE_COLORS = FINREG_SURFACE_COLORS;
|
|
971
|
+
exports.INTERVIEWPREP_CSS_VAR_NAMES = INTERVIEWPREP_CSS_VAR_NAMES;
|
|
972
|
+
exports.INTERVIEWPREP_TOKENS = INTERVIEWPREP_TOKENS;
|
|
804
973
|
exports.KATALOGOS_TOKENS = KATALOGOS_TOKENS;
|
|
805
974
|
exports.NEXTGAME_TOKENS = NEXTGAME_TOKENS;
|
|
806
975
|
exports.ON_BRAND_DARK_INK = ON_BRAND_DARK_INK;
|
|
807
976
|
exports.ON_BRAND_LIGHT_INK = ON_BRAND_LIGHT_INK;
|
|
808
977
|
exports.PRESETS = PRESETS;
|
|
978
|
+
exports.RN_WEB_MODAL_Z_INDEX = RN_WEB_MODAL_Z_INDEX;
|
|
809
979
|
exports.UI_DEEP_STEP = UI_DEEP_STEP;
|
|
810
980
|
exports.UI_MAIN_STEP = UI_MAIN_STEP;
|
|
811
981
|
exports.UI_TINT_STEP = UI_TINT_STEP;
|
|
982
|
+
exports.Z_INDEX = Z_INDEX;
|
|
983
|
+
exports.Z_INDEX_ORDER = Z_INDEX_ORDER;
|
|
812
984
|
exports.canCarryAccessibleInk = canCarryAccessibleInk;
|
|
813
985
|
exports.contrastRatio = contrastRatio;
|
|
814
986
|
exports.isHexColor = isHexColor;
|