@dloizides/design-tokens 1.18.0 → 1.19.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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.19.0
4
+
5
+ - New `JINX_TOKENS` preset (BEAD-1 "Bead pattern app: requirements gathering", palette B ColorChecker, round 3): light page `#FFFFFF`, plate `#C8C8C8` in `surfaceMuted`; dark page `#343434`, plate `#5A5A5A`. Registered in `PRESETS` as `jinx`. The palette defines no status or accent roles: `semantic` and `dark.dangerText` reuse existing fleet values and `accent` is the quiet-text grey `#555555`; its dark `semantic.error` joins the known unsplit-error gaps (1.91:1).
6
+
3
7
  ## 1.18.0
4
8
 
5
9
  - Dark error text for every preset that lacked one (FLIER-2 "Flier Studio follow-ups" AC-35): `dark.dangerText` on flier `#e8826f` (5.47:1 on `#2c2824`), aml `#f08a85`, erevna and katalogos `#f4978e`, digitalkin `#F2B8B5`; each reaches 4.5:1 on every dark surface (new fleet test). `DEFAULT_CSS_VAR_NAMES` maps `darkDangerText` to `--error`, so the dark block overrides the light-tuned `--error`. `semantic.error` is unchanged.
package/dist/index.d.mts CHANGED
@@ -887,6 +887,9 @@ declare const FLIER_TOKENS: DesignTokens;
887
887
  */
888
888
  declare const INTERVIEWPREP_TOKENS: DesignTokens;
889
889
 
890
+ /** Jinx Bead Patterns tokens: palette B "ColorChecker" round 3; `surfaceMuted` is the chart plate (BEAD-1 "Bead pattern app"). */
891
+ declare const JINX_TOKENS: DesignTokens;
892
+
890
893
  /**
891
894
  * Katalogos (online menus — realm `onlinemenu`) tokens.
892
895
  *
@@ -1097,4 +1100,4 @@ type ColorStepScale = Readonly<Record<string, string | undefined>>;
1097
1100
  /** The first scale step that clears 4.5:1 on the ground (light or dark step order), else the highest-contrast one. */
1098
1101
  declare function readableScaleInk(scale: ColorStepScale, ground: string, lightSteps: readonly string[], darkSteps: readonly string[]): string;
1099
1102
 
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 };
1103
+ 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, JINX_TOKENS, 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
@@ -887,6 +887,9 @@ declare const FLIER_TOKENS: DesignTokens;
887
887
  */
888
888
  declare const INTERVIEWPREP_TOKENS: DesignTokens;
889
889
 
890
+ /** Jinx Bead Patterns tokens: palette B "ColorChecker" round 3; `surfaceMuted` is the chart plate (BEAD-1 "Bead pattern app"). */
891
+ declare const JINX_TOKENS: DesignTokens;
892
+
890
893
  /**
891
894
  * Katalogos (online menus — realm `onlinemenu`) tokens.
892
895
  *
@@ -1097,4 +1100,4 @@ type ColorStepScale = Readonly<Record<string, string | undefined>>;
1097
1100
  /** The first scale step that clears 4.5:1 on the ground (light or dark step order), else the highest-contrast one. */
1098
1101
  declare function readableScaleInk(scale: ColorStepScale, ground: string, lightSteps: readonly string[], darkSteps: readonly string[]): string;
1099
1102
 
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 };
1103
+ 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, JINX_TOKENS, 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
@@ -884,6 +884,50 @@ var INTERVIEWPREP_TOKENS = {
884
884
  }
885
885
  };
886
886
 
887
+ // src/presets/jinx.ts
888
+ var JINX_TOKENS = {
889
+ primary: "#343434",
890
+ onBrand: "#F3F3F3",
891
+ secondary: "#555555",
892
+ accent: "#555555",
893
+ semantic: {
894
+ success: "#2f7a4f",
895
+ warning: "#9a5b00",
896
+ error: "#b3261e",
897
+ info: "#343434"
898
+ },
899
+ light: {
900
+ background: "#FFFFFF",
901
+ surface: "#FFFFFF",
902
+ surfaceElevated: "#FFFFFF",
903
+ surfaceMuted: "#C8C8C8",
904
+ text: "#343434",
905
+ textSecondary: "#555555",
906
+ border: "#7A7A7A",
907
+ divider: "#C8C8C8",
908
+ focusRing: "#343434"
909
+ },
910
+ dark: {
911
+ background: "#343434",
912
+ surface: "#343434",
913
+ surfaceElevated: "#343434",
914
+ surfaceMuted: "#5A5A5A",
915
+ text: "#F3F3F3",
916
+ textSecondary: "#C8C8C8",
917
+ border: "#A0A0A0",
918
+ divider: "#7A7A7A",
919
+ focusRing: "#F3F3F3",
920
+ brandFill: "#F3F3F3",
921
+ onBrandFill: "#343434",
922
+ dangerText: "#f4978e"
923
+ },
924
+ branding: {
925
+ logoContentId: null,
926
+ faviconContentId: null,
927
+ presetId: "jinx"
928
+ }
929
+ };
930
+
887
931
  // src/presets/katalogos.ts
888
932
  var KATALOGOS_TOKENS = {
889
933
  primary: "#005f73",
@@ -1018,7 +1062,8 @@ var PRESETS = {
1018
1062
  digitalkin: DIGITALKIN_TOKENS,
1019
1063
  nextgame: NEXTGAME_TOKENS,
1020
1064
  interviewprep: INTERVIEWPREP_TOKENS,
1021
- flier: FLIER_TOKENS
1065
+ flier: FLIER_TOKENS,
1066
+ jinx: JINX_TOKENS
1022
1067
  };
1023
1068
 
1024
1069
  // src/finregModules.ts
@@ -1084,6 +1129,7 @@ exports.FLIER_TOKENS = FLIER_TOKENS;
1084
1129
  exports.FOCUS_RING = FOCUS_RING;
1085
1130
  exports.INTERVIEWPREP_CSS_VAR_NAMES = INTERVIEWPREP_CSS_VAR_NAMES;
1086
1131
  exports.INTERVIEWPREP_TOKENS = INTERVIEWPREP_TOKENS;
1132
+ exports.JINX_TOKENS = JINX_TOKENS;
1087
1133
  exports.KATALOGOS_TOKENS = KATALOGOS_TOKENS;
1088
1134
  exports.NEXTGAME_TOKENS = NEXTGAME_TOKENS;
1089
1135
  exports.ON_BRAND_DARK_INK = ON_BRAND_DARK_INK;