Skip to content

Commit

Permalink
update themes config
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Oct 31, 2023
1 parent 0d06f8b commit d4de9c2
Show file tree
Hide file tree
Showing 9 changed files with 395 additions and 2,479 deletions.
16 changes: 0 additions & 16 deletions docs/storybook/stories/Color/Base/Scales.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default {
const bgColors = [
'color-scale-black',
'color-scale-white',
'color-scale-grayWhite',
'color-scale-gray-0',
'color-scale-gray-1',
'color-scale-gray-2',
Expand Down Expand Up @@ -122,7 +121,6 @@ export const AllScales = () => {
<Coral />
<Black />
<White />
<GrayWhite />
</div>
)
}
Expand Down Expand Up @@ -280,17 +278,3 @@ export const White = () => {
)
}
White.tags = ['excludeSnapshot']

export const GrayWhite = () => {
const grayWhiteColors = bgColors.filter(color => color.includes('grayWhite'))
return (
<div>
{grayWhiteColors.map(color => (
<>
<ColorScale color={color} border key={color} />
</>
))}
</div>
)
}
GrayWhite.tags = ['excludeSnapshot']
29 changes: 4 additions & 25 deletions scripts/themes.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/color/scales.json5`,
`src/tokens/functional/shadow/light.json5`,
`src/tokens/functional/border/light.json5`,
`src/tokens/functional/color/presentational.json5`,
],
include: [`src/tokens/base/color/light/light.json5`],
},
Expand All @@ -20,12 +19,8 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/shadow/light.json5`,
`src/tokens/functional/border/light.json5`,
`src/tokens/functional/color/light/overrides/light.tritanopia.json5`,
`src/tokens/functional/color/presentational.json5`,
],
include: [
`src/tokens/base/color/light/light.json5`,
// `src/tokens/base/color/light/light.tritanopia.json5`
],
include: [`src/tokens/base/color/light/light.json5`],
},
{
filename: 'light-colorblind',
Expand All @@ -35,12 +30,8 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/shadow/light.json5`,
`src/tokens/functional/border/light.json5`,
`src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5`,
`src/tokens/functional/color/presentational.json5`,
],
include: [
`src/tokens/base/color/light/light.json5`,
// `src/tokens/base/color/light/light.protanopia-deuteranopia.json5`,
],
include: [`src/tokens/base/color/light/light.json5`],
},
{
filename: 'light-high-contrast',
Expand All @@ -50,7 +41,6 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/color/light/overrides/light.high-contrast.json5`,
`src/tokens/functional/shadow/light.json5`,
`src/tokens/functional/border/light.json5`,
`src/tokens/functional/color/presentational.json5`,
],
include: [`src/tokens/base/color/light/light.json5`, `src/tokens/base/color/light/light.high-contrast.json5`],
},
Expand All @@ -61,7 +51,6 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/color/scales.json5`,
`src/tokens/functional/shadow/dark.json5`,
`src/tokens/functional/border/dark.json5`,
`src/tokens/functional/color/presentational.json5`,
],
include: [`src/tokens/base/color/dark/dark.json5`],
},
Expand All @@ -73,7 +62,6 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/color/dark/overrides/dark.dimmed.json5`,
`src/tokens/functional/shadow/dark.json5`,
`src/tokens/functional/border/dark.json5`,
`src/tokens/functional/color/presentational.json5`,
],
include: [`src/tokens/base/color/dark/dark.json5`, `src/tokens/base/color/dark/dark.dimmed.json5`],
},
Expand All @@ -85,12 +73,8 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/shadow/dark.json5`,
`src/tokens/functional/border/dark.json5`,
`src/tokens/functional/color/dark/overrides/dark.tritanopia.json5`,
`src/tokens/functional/color/presentational.json5`,
],
include: [
`src/tokens/base/color/dark/dark.json5`,
// `src/tokens/base/color/dark/dark.tritanopia.json5`,
],
include: [`src/tokens/base/color/dark/dark.json5`],
},
{
filename: 'dark-colorblind',
Expand All @@ -100,12 +84,8 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/shadow/dark.json5`,
`src/tokens/functional/border/dark.json5`,
`src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5`,
`src/tokens/functional/color/presentational.json5`,
],
include: [
`src/tokens/base/color/dark/dark.json5`,
// , `src/tokens/base/color/dark/dark.protanopia-deuteranopia.json5`
],
include: [`src/tokens/base/color/dark/dark.json5`],
},
{
filename: 'dark-high-contrast',
Expand All @@ -115,7 +95,6 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/color/dark/overrides/dark.high-contrast.json5`,
`src/tokens/functional/shadow/dark.json5`,
`src/tokens/functional/border/dark.json5`,
`src/tokens/functional/color/presentational.json5`,
],
include: [`src/tokens/base/color/dark/dark.json5`, `src/tokens/base/color/dark/dark.high-contrast.json5`],
},
Expand Down
Loading

0 comments on commit d4de9c2

Please sign in to comment.