@dloizides/design-tokens 1.17.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,13 @@
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
+
7
+ ## 1.18.0
8
+
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.
10
+
3
11
  ## 1.16.0
4
12
 
5
13
  - 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).
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
@@ -202,6 +202,7 @@ var DEFAULT_CSS_VAR_NAMES = {
202
202
  darkTextSecondary: "--text-secondary",
203
203
  darkBorder: "--border",
204
204
  darkDivider: "--divider",
205
+ darkDangerText: "--error",
205
206
  radiusXs: "--radius-xs",
206
207
  radiusSm: "--radius-sm",
207
208
  radiusMd: "--radius",
@@ -612,7 +613,8 @@ var AML_TOKENS = {
612
613
  text: "#e8edf6",
613
614
  textSecondary: "#95a3bb",
614
615
  border: "rgba(255, 255, 255, .09)",
615
- divider: "rgba(255, 255, 255, .09)"
616
+ divider: "rgba(255, 255, 255, .09)",
617
+ dangerText: "#f08a85"
616
618
  },
617
619
  typography: {
618
620
  fontFamily: '"IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
@@ -707,7 +709,8 @@ var DIGITALKIN_TOKENS = {
707
709
  textSecondary: "#BFC7BF",
708
710
  border: "#6B7D71",
709
711
  divider: "#2C3A30",
710
- surfaceMuted: "#1A241D"
712
+ surfaceMuted: "#1A241D",
713
+ dangerText: "#F2B8B5"
711
714
  },
712
715
  typography: {
713
716
  // Geologica Variable ships via @fontsource-variable/geologica on the public tier.
@@ -760,7 +763,8 @@ var EREVNA_TOKENS = {
760
763
  text: "#e9d8a6",
761
764
  textSecondary: "#a8a090",
762
765
  border: "#053f40",
763
- divider: "#053f40"
766
+ divider: "#053f40",
767
+ dangerText: "#f4978e"
764
768
  },
765
769
  branding: {
766
770
  logoContentId: null,
@@ -801,7 +805,8 @@ var FLIER_TOKENS = {
801
805
  divider: "#3a352f",
802
806
  focusRing: "#e8dccb",
803
807
  brandFill: "#e8dccb",
804
- onBrandFill: "#1c1a17"
808
+ onBrandFill: "#1c1a17",
809
+ dangerText: "#e8826f"
805
810
  },
806
811
  branding: {
807
812
  logoContentId: null,
@@ -879,6 +884,50 @@ var INTERVIEWPREP_TOKENS = {
879
884
  }
880
885
  };
881
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
+
882
931
  // src/presets/katalogos.ts
883
932
  var KATALOGOS_TOKENS = {
884
933
  primary: "#005f73",
@@ -906,7 +955,8 @@ var KATALOGOS_TOKENS = {
906
955
  text: "#e9d8a6",
907
956
  textSecondary: "#a8a090",
908
957
  border: "#053f40",
909
- divider: "#053f40"
958
+ divider: "#053f40",
959
+ dangerText: "#f4978e"
910
960
  },
911
961
  branding: {
912
962
  logoContentId: null,
@@ -1012,7 +1062,8 @@ var PRESETS = {
1012
1062
  digitalkin: DIGITALKIN_TOKENS,
1013
1063
  nextgame: NEXTGAME_TOKENS,
1014
1064
  interviewprep: INTERVIEWPREP_TOKENS,
1015
- flier: FLIER_TOKENS
1065
+ flier: FLIER_TOKENS,
1066
+ jinx: JINX_TOKENS
1016
1067
  };
1017
1068
 
1018
1069
  // src/finregModules.ts
@@ -1078,6 +1129,7 @@ exports.FLIER_TOKENS = FLIER_TOKENS;
1078
1129
  exports.FOCUS_RING = FOCUS_RING;
1079
1130
  exports.INTERVIEWPREP_CSS_VAR_NAMES = INTERVIEWPREP_CSS_VAR_NAMES;
1080
1131
  exports.INTERVIEWPREP_TOKENS = INTERVIEWPREP_TOKENS;
1132
+ exports.JINX_TOKENS = JINX_TOKENS;
1081
1133
  exports.KATALOGOS_TOKENS = KATALOGOS_TOKENS;
1082
1134
  exports.NEXTGAME_TOKENS = NEXTGAME_TOKENS;
1083
1135
  exports.ON_BRAND_DARK_INK = ON_BRAND_DARK_INK;