@dloizides/design-tokens 1.19.0 → 1.20.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/dist/index.d.mts CHANGED
@@ -908,6 +908,10 @@ declare const JINX_TOKENS: DesignTokens;
908
908
  */
909
909
  declare const KATALOGOS_TOKENS: DesignTokens;
910
910
 
911
+ declare const MOONCUBE_TOKENS: DesignTokens;
912
+ declare const MOONCUBE_CSS_VAR_NAMES: CssVarNames;
913
+ declare const MOONCUBE_CSS_VARS: string;
914
+
911
915
  /**
912
916
  * NextGame (nextgame.dloizides.com) tokens — the consumer game-recommendation app.
913
917
  *
@@ -1100,4 +1104,4 @@ type ColorStepScale = Readonly<Record<string, string | undefined>>;
1100
1104
  /** The first scale step that clears 4.5:1 on the ground (light or dark step order), else the highest-contrast one. */
1101
1105
  declare function readableScaleInk(scale: ColorStepScale, ground: string, lightSteps: readonly string[], darkSteps: readonly string[]): string;
1102
1106
 
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 };
1107
+ 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, MOONCUBE_CSS_VARS, MOONCUBE_CSS_VAR_NAMES, MOONCUBE_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
@@ -908,6 +908,10 @@ declare const JINX_TOKENS: DesignTokens;
908
908
  */
909
909
  declare const KATALOGOS_TOKENS: DesignTokens;
910
910
 
911
+ declare const MOONCUBE_TOKENS: DesignTokens;
912
+ declare const MOONCUBE_CSS_VAR_NAMES: CssVarNames;
913
+ declare const MOONCUBE_CSS_VARS: string;
914
+
911
915
  /**
912
916
  * NextGame (nextgame.dloizides.com) tokens — the consumer game-recommendation app.
913
917
  *
@@ -1100,4 +1104,4 @@ type ColorStepScale = Readonly<Record<string, string | undefined>>;
1100
1104
  /** The first scale step that clears 4.5:1 on the ground (light or dark step order), else the highest-contrast one. */
1101
1105
  declare function readableScaleInk(scale: ColorStepScale, ground: string, lightSteps: readonly string[], darkSteps: readonly string[]): string;
1102
1106
 
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 };
1107
+ 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, MOONCUBE_CSS_VARS, MOONCUBE_CSS_VAR_NAMES, MOONCUBE_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
@@ -965,6 +965,84 @@ var KATALOGOS_TOKENS = {
965
965
  }
966
966
  };
967
967
 
968
+ // src/presets/mooncube.ts
969
+ var MOONCUBE_TOKENS = {
970
+ primary: "#8A6012",
971
+ onBrand: "#FFFFFF",
972
+ secondary: "#1F3A5F",
973
+ accent: "#E8C36A",
974
+ semantic: {
975
+ success: "#2f7a4f",
976
+ warning: "#8A6012",
977
+ error: "#b3261e",
978
+ info: "#1F3A5F"
979
+ },
980
+ light: {
981
+ background: "#FFFFFF",
982
+ surface: "#FFFFFF",
983
+ surfaceElevated: "#FFFFFF",
984
+ surfaceMuted: "#F4EFE1",
985
+ text: "#1F3A5F",
986
+ textSecondary: "#4A5B73",
987
+ border: "#4A5B73",
988
+ divider: "#C3CCD8",
989
+ focusRing: "#8A6012",
990
+ brandFill: "#8A6012",
991
+ onBrandFill: "#FFFFFF"
992
+ },
993
+ dark: {
994
+ background: "#0F1B2D",
995
+ surface: "#0F1B2D",
996
+ surfaceElevated: "#18263B",
997
+ surfaceMuted: "#22324A",
998
+ text: "#F4EFE1",
999
+ textSecondary: "#C3CCD8",
1000
+ textTertiary: "#8C9AAE",
1001
+ border: "#8C9AAE",
1002
+ divider: "#3A4A62",
1003
+ focusRing: "#E8C36A",
1004
+ brandFill: "#E8C36A",
1005
+ onBrandFill: "#0F1B2D",
1006
+ dangerText: "#f4978e"
1007
+ },
1008
+ branding: {
1009
+ logoContentId: null,
1010
+ faviconContentId: null,
1011
+ presetId: "mooncube"
1012
+ }
1013
+ };
1014
+ var MOONCUBE_CSS_VAR_NAMES = {
1015
+ primary: "--mc-primary",
1016
+ secondary: "--mc-secondary",
1017
+ accent: "--mc-accent",
1018
+ onBrand: "--mc-on-primary",
1019
+ lightBackground: "--mc-bg",
1020
+ lightSurface: "--mc-surface",
1021
+ lightSurfaceElevated: "--mc-surface-elevated",
1022
+ lightSurfaceMuted: "--mc-surface-muted",
1023
+ lightText: "--mc-text",
1024
+ lightTextSecondary: "--mc-text-secondary",
1025
+ lightBorder: "--mc-border",
1026
+ lightDivider: "--mc-divider",
1027
+ lightFocusRing: "--mc-focus-ring",
1028
+ lightBrandFill: "--mc-brand-fill",
1029
+ lightOnBrandFill: "--mc-on-brand-fill",
1030
+ darkBackground: "--mc-dark-bg",
1031
+ darkSurface: "--mc-dark-surface",
1032
+ darkSurfaceElevated: "--mc-dark-surface-elevated",
1033
+ darkSurfaceMuted: "--mc-dark-surface-muted",
1034
+ darkText: "--mc-dark-text",
1035
+ darkTextSecondary: "--mc-dark-text-secondary",
1036
+ darkTextTertiary: "--mc-dark-text-tertiary",
1037
+ darkBorder: "--mc-dark-border",
1038
+ darkDivider: "--mc-dark-divider",
1039
+ darkFocusRing: "--mc-dark-focus-ring",
1040
+ darkBrandFill: "--mc-dark-brand-fill",
1041
+ darkOnBrandFill: "--mc-dark-on-brand-fill",
1042
+ darkDangerText: "--mc-dark-danger-text"
1043
+ };
1044
+ var MOONCUBE_CSS_VARS = toCssVars(MOONCUBE_TOKENS, MOONCUBE_CSS_VAR_NAMES, { darkSelector: ":root" });
1045
+
968
1046
  // src/presets/nextgame.ts
969
1047
  var EASE_OUT = { css: "cubic-bezier(0.2,0.8,0.2,1)", bezier: [0.2, 0.8, 0.2, 1] };
970
1048
  var EASE_IN = { css: "cubic-bezier(0.4,0,1,1)", bezier: [0.4, 0, 1, 1] };
@@ -1063,7 +1141,8 @@ var PRESETS = {
1063
1141
  nextgame: NEXTGAME_TOKENS,
1064
1142
  interviewprep: INTERVIEWPREP_TOKENS,
1065
1143
  flier: FLIER_TOKENS,
1066
- jinx: JINX_TOKENS
1144
+ jinx: JINX_TOKENS,
1145
+ mooncube: MOONCUBE_TOKENS
1067
1146
  };
1068
1147
 
1069
1148
  // src/finregModules.ts
@@ -1131,6 +1210,9 @@ exports.INTERVIEWPREP_CSS_VAR_NAMES = INTERVIEWPREP_CSS_VAR_NAMES;
1131
1210
  exports.INTERVIEWPREP_TOKENS = INTERVIEWPREP_TOKENS;
1132
1211
  exports.JINX_TOKENS = JINX_TOKENS;
1133
1212
  exports.KATALOGOS_TOKENS = KATALOGOS_TOKENS;
1213
+ exports.MOONCUBE_CSS_VARS = MOONCUBE_CSS_VARS;
1214
+ exports.MOONCUBE_CSS_VAR_NAMES = MOONCUBE_CSS_VAR_NAMES;
1215
+ exports.MOONCUBE_TOKENS = MOONCUBE_TOKENS;
1134
1216
  exports.NEXTGAME_TOKENS = NEXTGAME_TOKENS;
1135
1217
  exports.ON_BRAND_DARK_INK = ON_BRAND_DARK_INK;
1136
1218
  exports.ON_BRAND_LIGHT_INK = ON_BRAND_LIGHT_INK;