Skip to content

Commit

Permalink
rm most scales from output
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Apr 1, 2024
1 parent 614961d commit 3358c2d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion scripts/buildTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}),
Expand Down
9 changes: 0 additions & 9 deletions scripts/themes.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
],
Expand All @@ -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`,
Expand All @@ -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`,
Expand All @@ -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`,
Expand All @@ -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`,
],
Expand All @@ -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`,
Expand All @@ -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`,
Expand All @@ -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`,
Expand All @@ -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`,
Expand Down
File renamed without changes.

0 comments on commit 3358c2d

Please sign in to comment.