@dloizides/design-tokens 1.18.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/CHANGELOG.md +365 -357
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +129 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +126 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -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
|
*
|
|
@@ -905,6 +908,10 @@ declare const INTERVIEWPREP_TOKENS: DesignTokens;
|
|
|
905
908
|
*/
|
|
906
909
|
declare const KATALOGOS_TOKENS: DesignTokens;
|
|
907
910
|
|
|
911
|
+
declare const MOONCUBE_TOKENS: DesignTokens;
|
|
912
|
+
declare const MOONCUBE_CSS_VAR_NAMES: CssVarNames;
|
|
913
|
+
declare const MOONCUBE_CSS_VARS: string;
|
|
914
|
+
|
|
908
915
|
/**
|
|
909
916
|
* NextGame (nextgame.dloizides.com) tokens — the consumer game-recommendation app.
|
|
910
917
|
*
|
|
@@ -1097,4 +1104,4 @@ type ColorStepScale = Readonly<Record<string, string | undefined>>;
|
|
|
1097
1104
|
/** The first scale step that clears 4.5:1 on the ground (light or dark step order), else the highest-contrast one. */
|
|
1098
1105
|
declare function readableScaleInk(scale: ColorStepScale, ground: string, lightSteps: readonly string[], darkSteps: readonly string[]): string;
|
|
1099
1106
|
|
|
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 };
|
|
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
|
@@ -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
|
*
|
|
@@ -905,6 +908,10 @@ declare const INTERVIEWPREP_TOKENS: DesignTokens;
|
|
|
905
908
|
*/
|
|
906
909
|
declare const KATALOGOS_TOKENS: DesignTokens;
|
|
907
910
|
|
|
911
|
+
declare const MOONCUBE_TOKENS: DesignTokens;
|
|
912
|
+
declare const MOONCUBE_CSS_VAR_NAMES: CssVarNames;
|
|
913
|
+
declare const MOONCUBE_CSS_VARS: string;
|
|
914
|
+
|
|
908
915
|
/**
|
|
909
916
|
* NextGame (nextgame.dloizides.com) tokens — the consumer game-recommendation app.
|
|
910
917
|
*
|
|
@@ -1097,4 +1104,4 @@ type ColorStepScale = Readonly<Record<string, string | undefined>>;
|
|
|
1097
1104
|
/** The first scale step that clears 4.5:1 on the ground (light or dark step order), else the highest-contrast one. */
|
|
1098
1105
|
declare function readableScaleInk(scale: ColorStepScale, ground: string, lightSteps: readonly string[], darkSteps: readonly string[]): string;
|
|
1099
1106
|
|
|
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 };
|
|
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
|
@@ -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",
|
|
@@ -921,6 +965,84 @@ var KATALOGOS_TOKENS = {
|
|
|
921
965
|
}
|
|
922
966
|
};
|
|
923
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
|
+
|
|
924
1046
|
// src/presets/nextgame.ts
|
|
925
1047
|
var EASE_OUT = { css: "cubic-bezier(0.2,0.8,0.2,1)", bezier: [0.2, 0.8, 0.2, 1] };
|
|
926
1048
|
var EASE_IN = { css: "cubic-bezier(0.4,0,1,1)", bezier: [0.4, 0, 1, 1] };
|
|
@@ -1018,7 +1140,9 @@ var PRESETS = {
|
|
|
1018
1140
|
digitalkin: DIGITALKIN_TOKENS,
|
|
1019
1141
|
nextgame: NEXTGAME_TOKENS,
|
|
1020
1142
|
interviewprep: INTERVIEWPREP_TOKENS,
|
|
1021
|
-
flier: FLIER_TOKENS
|
|
1143
|
+
flier: FLIER_TOKENS,
|
|
1144
|
+
jinx: JINX_TOKENS,
|
|
1145
|
+
mooncube: MOONCUBE_TOKENS
|
|
1022
1146
|
};
|
|
1023
1147
|
|
|
1024
1148
|
// src/finregModules.ts
|
|
@@ -1084,7 +1208,11 @@ exports.FLIER_TOKENS = FLIER_TOKENS;
|
|
|
1084
1208
|
exports.FOCUS_RING = FOCUS_RING;
|
|
1085
1209
|
exports.INTERVIEWPREP_CSS_VAR_NAMES = INTERVIEWPREP_CSS_VAR_NAMES;
|
|
1086
1210
|
exports.INTERVIEWPREP_TOKENS = INTERVIEWPREP_TOKENS;
|
|
1211
|
+
exports.JINX_TOKENS = JINX_TOKENS;
|
|
1087
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;
|
|
1088
1216
|
exports.NEXTGAME_TOKENS = NEXTGAME_TOKENS;
|
|
1089
1217
|
exports.ON_BRAND_DARK_INK = ON_BRAND_DARK_INK;
|
|
1090
1218
|
exports.ON_BRAND_LIGHT_INK = ON_BRAND_LIGHT_INK;
|