@dloizides/design-tokens 1.15.0 → 1.17.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 +4 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +44 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +44 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.16.0
|
|
4
|
+
|
|
5
|
+
- New `FLIER_TOKENS` preset (FLIER-1 "Flier Studio" D7 "App palette: P-A Ink"): light Ink palette, Night dark palette with `brandFill`/`onBrandFill`, a `focusRing` per mode (8.95:1 light, 10.81:1 dark), borders clearing 3:1, text and secondary text at AA on every surface. Registered in `PRESETS` as `flier`; its dark `semantic.error` joins the known unsplit-error gaps (2.24:1).
|
|
6
|
+
|
|
3
7
|
## 1.14.0
|
|
4
8
|
|
|
5
9
|
- One fleet focus ring (FOCUS-RING-1 "One focus ring across the shared kit"): `FOCUS_RING` (2 px solid, 2 px offset), `resolveFocusRingColor` (the mode's `focusRing` token, else the first of primary / a lighter brand step / text reaching 3:1 on the ground), `focusRingOutline` and `isFocusVisible` (keyboard focus only). Consumed by ui-buttons, ui-forms and ui-payments.
|
package/dist/index.d.mts
CHANGED
|
@@ -858,6 +858,9 @@ declare const DIGITALKIN_TOKENS: DesignTokens;
|
|
|
858
858
|
*/
|
|
859
859
|
declare const EREVNA_TOKENS: DesignTokens;
|
|
860
860
|
|
|
861
|
+
/** Flier Studio tokens: D7 "P-A Ink" light palette and the Night dark palette (FLIER-1 "Flier Studio"). */
|
|
862
|
+
declare const FLIER_TOKENS: DesignTokens;
|
|
863
|
+
|
|
861
864
|
/**
|
|
862
865
|
* InterviewPrep (interview-prep-hub.dloizides.com) tokens, seeded from
|
|
863
866
|
* `InterviewPrep/sites/portal/theme.css` as of 2026-09-29 (REDESIGN-IP-1, owner
|
|
@@ -1094,4 +1097,4 @@ type ColorStepScale = Readonly<Record<string, string | undefined>>;
|
|
|
1094
1097
|
/** The first scale step that clears 4.5:1 on the ground (light or dark step order), else the highest-contrast one. */
|
|
1095
1098
|
declare function readableScaleInk(scale: ColorStepScale, ground: string, lightSteps: readonly string[], darkSteps: readonly string[]): string;
|
|
1096
1099
|
|
|
1097
|
-
export { AA_LARGE_TEXT_RATIO, AA_NON_TEXT_RATIO, AA_NORMAL_TEXT_RATIO, AML_CSS_VAR_NAMES, AML_TOKENS, type BrandExtras, type Branding, type ColorStepScale, type ContrastMoreOverrides, type CssVarNames, DEFAULT_CSS_VAR_NAMES, DEFAULT_MOTION, DIGITALKIN_TOKENS, type DesignTokens, EREVNA_TOKENS, FINREG_MODULE_COLORS, FINREG_SURFACE_COLORS, FOCUS_RING, type FinregModuleColor, type FinregModuleColors, type FinregSurfaceColors, type FocusRingColorInput, type FocusRingOutline, 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, focusRingOutline, isFocusVisible, isHexColor, meetsContrast, onBrandRatio, readableScaleInk, relativeLuminance, resolveFocusRingColor, resolveOnBrand, toCssVars, toRnTheme, toTailwindPreset, toUiTheme };
|
|
1100
|
+
export { AA_LARGE_TEXT_RATIO, AA_NON_TEXT_RATIO, AA_NORMAL_TEXT_RATIO, AML_CSS_VAR_NAMES, AML_TOKENS, type BrandExtras, type Branding, type ColorStepScale, type ContrastMoreOverrides, type CssVarNames, DEFAULT_CSS_VAR_NAMES, DEFAULT_MOTION, DIGITALKIN_TOKENS, type DesignTokens, EREVNA_TOKENS, FINREG_MODULE_COLORS, FINREG_SURFACE_COLORS, FLIER_TOKENS, FOCUS_RING, type FinregModuleColor, type FinregModuleColors, type FinregSurfaceColors, type FocusRingColorInput, type FocusRingOutline, 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, focusRingOutline, isFocusVisible, isHexColor, meetsContrast, onBrandRatio, readableScaleInk, relativeLuminance, resolveFocusRingColor, resolveOnBrand, toCssVars, toRnTheme, toTailwindPreset, toUiTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -858,6 +858,9 @@ declare const DIGITALKIN_TOKENS: DesignTokens;
|
|
|
858
858
|
*/
|
|
859
859
|
declare const EREVNA_TOKENS: DesignTokens;
|
|
860
860
|
|
|
861
|
+
/** Flier Studio tokens: D7 "P-A Ink" light palette and the Night dark palette (FLIER-1 "Flier Studio"). */
|
|
862
|
+
declare const FLIER_TOKENS: DesignTokens;
|
|
863
|
+
|
|
861
864
|
/**
|
|
862
865
|
* InterviewPrep (interview-prep-hub.dloizides.com) tokens, seeded from
|
|
863
866
|
* `InterviewPrep/sites/portal/theme.css` as of 2026-09-29 (REDESIGN-IP-1, owner
|
|
@@ -1094,4 +1097,4 @@ type ColorStepScale = Readonly<Record<string, string | undefined>>;
|
|
|
1094
1097
|
/** The first scale step that clears 4.5:1 on the ground (light or dark step order), else the highest-contrast one. */
|
|
1095
1098
|
declare function readableScaleInk(scale: ColorStepScale, ground: string, lightSteps: readonly string[], darkSteps: readonly string[]): string;
|
|
1096
1099
|
|
|
1097
|
-
export { AA_LARGE_TEXT_RATIO, AA_NON_TEXT_RATIO, AA_NORMAL_TEXT_RATIO, AML_CSS_VAR_NAMES, AML_TOKENS, type BrandExtras, type Branding, type ColorStepScale, type ContrastMoreOverrides, type CssVarNames, DEFAULT_CSS_VAR_NAMES, DEFAULT_MOTION, DIGITALKIN_TOKENS, type DesignTokens, EREVNA_TOKENS, FINREG_MODULE_COLORS, FINREG_SURFACE_COLORS, FOCUS_RING, type FinregModuleColor, type FinregModuleColors, type FinregSurfaceColors, type FocusRingColorInput, type FocusRingOutline, 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, focusRingOutline, isFocusVisible, isHexColor, meetsContrast, onBrandRatio, readableScaleInk, relativeLuminance, resolveFocusRingColor, resolveOnBrand, toCssVars, toRnTheme, toTailwindPreset, toUiTheme };
|
|
1100
|
+
export { AA_LARGE_TEXT_RATIO, AA_NON_TEXT_RATIO, AA_NORMAL_TEXT_RATIO, AML_CSS_VAR_NAMES, AML_TOKENS, type BrandExtras, type Branding, type ColorStepScale, type ContrastMoreOverrides, type CssVarNames, DEFAULT_CSS_VAR_NAMES, DEFAULT_MOTION, DIGITALKIN_TOKENS, type DesignTokens, EREVNA_TOKENS, FINREG_MODULE_COLORS, FINREG_SURFACE_COLORS, FLIER_TOKENS, FOCUS_RING, type FinregModuleColor, type FinregModuleColors, type FinregSurfaceColors, type FocusRingColorInput, type FocusRingOutline, 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, focusRingOutline, isFocusVisible, isHexColor, meetsContrast, onBrandRatio, readableScaleInk, relativeLuminance, resolveFocusRingColor, resolveOnBrand, toCssVars, toRnTheme, toTailwindPreset, toUiTheme };
|
package/dist/index.js
CHANGED
|
@@ -769,6 +769,47 @@ var EREVNA_TOKENS = {
|
|
|
769
769
|
}
|
|
770
770
|
};
|
|
771
771
|
|
|
772
|
+
// src/presets/flier.ts
|
|
773
|
+
var FLIER_TOKENS = {
|
|
774
|
+
primary: "#4a423c",
|
|
775
|
+
onBrand: "#ffffff",
|
|
776
|
+
secondary: "#6f655c",
|
|
777
|
+
accent: "#e9b47f",
|
|
778
|
+
semantic: {
|
|
779
|
+
success: "#2f7a4f",
|
|
780
|
+
warning: "#9a5b00",
|
|
781
|
+
error: "#b3261e",
|
|
782
|
+
info: "#4a423c"
|
|
783
|
+
},
|
|
784
|
+
light: {
|
|
785
|
+
background: "#ebe8e3",
|
|
786
|
+
surface: "#fbfaf8",
|
|
787
|
+
surfaceElevated: "#ffffff",
|
|
788
|
+
text: "#2f2925",
|
|
789
|
+
textSecondary: "#6f655c",
|
|
790
|
+
border: "#8c8279",
|
|
791
|
+
divider: "#e6e2dc",
|
|
792
|
+
focusRing: "#4a423c"
|
|
793
|
+
},
|
|
794
|
+
dark: {
|
|
795
|
+
background: "#1c1a17",
|
|
796
|
+
surface: "#25221e",
|
|
797
|
+
surfaceElevated: "#2c2824",
|
|
798
|
+
text: "#f4efe8",
|
|
799
|
+
textSecondary: "#a59a8c",
|
|
800
|
+
border: "#80766a",
|
|
801
|
+
divider: "#3a352f",
|
|
802
|
+
focusRing: "#e8dccb",
|
|
803
|
+
brandFill: "#e8dccb",
|
|
804
|
+
onBrandFill: "#1c1a17"
|
|
805
|
+
},
|
|
806
|
+
branding: {
|
|
807
|
+
logoContentId: null,
|
|
808
|
+
faviconContentId: null,
|
|
809
|
+
presetId: "flier"
|
|
810
|
+
}
|
|
811
|
+
};
|
|
812
|
+
|
|
772
813
|
// src/presets/interviewprep.ts
|
|
773
814
|
var INTERVIEWPREP_TOKENS = {
|
|
774
815
|
primary: "#c0512d",
|
|
@@ -970,7 +1011,8 @@ var PRESETS = {
|
|
|
970
1011
|
katalogos: KATALOGOS_TOKENS,
|
|
971
1012
|
digitalkin: DIGITALKIN_TOKENS,
|
|
972
1013
|
nextgame: NEXTGAME_TOKENS,
|
|
973
|
-
interviewprep: INTERVIEWPREP_TOKENS
|
|
1014
|
+
interviewprep: INTERVIEWPREP_TOKENS,
|
|
1015
|
+
flier: FLIER_TOKENS
|
|
974
1016
|
};
|
|
975
1017
|
|
|
976
1018
|
// src/finregModules.ts
|
|
@@ -1032,6 +1074,7 @@ exports.DIGITALKIN_TOKENS = DIGITALKIN_TOKENS;
|
|
|
1032
1074
|
exports.EREVNA_TOKENS = EREVNA_TOKENS;
|
|
1033
1075
|
exports.FINREG_MODULE_COLORS = FINREG_MODULE_COLORS;
|
|
1034
1076
|
exports.FINREG_SURFACE_COLORS = FINREG_SURFACE_COLORS;
|
|
1077
|
+
exports.FLIER_TOKENS = FLIER_TOKENS;
|
|
1035
1078
|
exports.FOCUS_RING = FOCUS_RING;
|
|
1036
1079
|
exports.INTERVIEWPREP_CSS_VAR_NAMES = INTERVIEWPREP_CSS_VAR_NAMES;
|
|
1037
1080
|
exports.INTERVIEWPREP_TOKENS = INTERVIEWPREP_TOKENS;
|