diff --git a/scripts/buildTokens.ts b/scripts/buildTokens.ts index afdb2cca2..f3e79788a 100644 --- a/scripts/buildTokens.ts +++ b/scripts/buildTokens.ts @@ -55,7 +55,7 @@ export const buildDesignTokens = (buildOptions: ConfigGeneratorOptions): void => for (const {filename, source, include} of themes) { // build functional scales PrimerStyleDictionary.extend({ - source: [...source, ...include], // build the special formats + source: [...source, ...include, `src/tokens/functional/color/internal.scales.json5`], // build the special formats include, platforms: { css: css(`internalCss/${filename}.css`, buildOptions.prefix, buildOptions.buildPath, {themed: true}), diff --git a/scripts/themes.config.ts b/scripts/themes.config.ts index 93b783072..5aa1a709b 100644 --- a/scripts/themes.config.ts +++ b/scripts/themes.config.ts @@ -5,7 +5,6 @@ export const themes: TokenBuildInput[] = [ filename: 'light', source: [ `src/tokens/functional/color/light/*.json5`, - `src/tokens/functional/color/scales.json5`, `src/tokens/functional/shadow/light.json5`, `src/tokens/functional/border/light.json5`, ], @@ -15,7 +14,6 @@ export const themes: TokenBuildInput[] = [ filename: 'light-tritanopia', source: [ `src/tokens/functional/color/light/*.json5`, - `src/tokens/functional/color/scales.json5`, `src/tokens/functional/shadow/light.json5`, `src/tokens/functional/border/light.json5`, `src/tokens/functional/color/light/overrides/light.tritanopia.json5`, @@ -26,7 +24,6 @@ export const themes: TokenBuildInput[] = [ filename: 'light-colorblind', source: [ `src/tokens/functional/color/light/*.json5`, - `src/tokens/functional/color/scales.json5`, `src/tokens/functional/shadow/light.json5`, `src/tokens/functional/border/light.json5`, `src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5`, @@ -37,7 +34,6 @@ export const themes: TokenBuildInput[] = [ filename: 'light-high-contrast', source: [ `src/tokens/functional/color/light/*.json5`, - `src/tokens/functional/color/scales.json5`, `src/tokens/functional/color/light/overrides/light.high-contrast.json5`, `src/tokens/functional/shadow/light.json5`, `src/tokens/functional/border/light.json5`, @@ -52,7 +48,6 @@ export const themes: TokenBuildInput[] = [ filename: 'dark', source: [ `src/tokens/functional/color/dark/*.json5`, - `src/tokens/functional/color/scales.json5`, `src/tokens/functional/shadow/dark.json5`, `src/tokens/functional/border/dark.json5`, ], @@ -62,7 +57,6 @@ export const themes: TokenBuildInput[] = [ filename: 'dark-dimmed', source: [ `src/tokens/functional/color/dark/*.json5`, - `src/tokens/functional/color/scales.json5`, `src/tokens/functional/color/dark/overrides/dark.dimmed.json5`, `src/tokens/functional/shadow/dark.json5`, `src/tokens/functional/border/dark.json5`, @@ -77,7 +71,6 @@ export const themes: TokenBuildInput[] = [ filename: 'dark-tritanopia', source: [ `src/tokens/functional/color/dark/*.json5`, - `src/tokens/functional/color/scales.json5`, `src/tokens/functional/shadow/dark.json5`, `src/tokens/functional/border/dark.json5`, `src/tokens/functional/color/dark/overrides/dark.tritanopia.json5`, @@ -88,7 +81,6 @@ export const themes: TokenBuildInput[] = [ filename: 'dark-colorblind', source: [ `src/tokens/functional/color/dark/*.json5`, - `src/tokens/functional/color/scales.json5`, `src/tokens/functional/shadow/dark.json5`, `src/tokens/functional/border/dark.json5`, `src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5`, @@ -99,7 +91,6 @@ export const themes: TokenBuildInput[] = [ filename: 'dark-high-contrast', source: [ `src/tokens/functional/color/dark/*.json5`, - `src/tokens/functional/color/scales.json5`, `src/tokens/functional/color/dark/overrides/dark.high-contrast.json5`, `src/tokens/functional/shadow/dark.json5`, `src/tokens/functional/border/dark.json5`, diff --git a/src/tokens/functional/color/scales.json5 b/src/tokens/functional/color/internal.scales.json5 similarity index 100% rename from src/tokens/functional/color/scales.json5 rename to src/tokens/functional/color/internal.scales.json5