Skip to content

Commit

Permalink
Add alpha Display scales for internal use (#819)
Browse files Browse the repository at this point in the history
* add alpha scales

* move files

* fix extension
  • Loading branch information
langermank authored Mar 4, 2024
1 parent 98f0759 commit 01e3daf
Show file tree
Hide file tree
Showing 3 changed files with 3,569 additions and 9 deletions.
30 changes: 21 additions & 9 deletions scripts/themes.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/shadow/light.json5`,
`src/tokens/functional/border/light.json5`,
],
include: [`src/tokens/base/color/light/light.json5`],
include: [`src/tokens/base/color/light/light.json5`, `src/tokens/base/color/light/display-light.json5`],
},
{
filename: 'light-tritanopia',
Expand All @@ -20,7 +20,7 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/border/light.json5`,
`src/tokens/functional/color/light/overrides/light.tritanopia.json5`,
],
include: [`src/tokens/base/color/light/light.json5`],
include: [`src/tokens/base/color/light/light.json5`, `src/tokens/base/color/light/display-light.json5`],
},
{
filename: 'light-colorblind',
Expand All @@ -31,7 +31,7 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/border/light.json5`,
`src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5`,
],
include: [`src/tokens/base/color/light/light.json5`],
include: [`src/tokens/base/color/light/light.json5`, `src/tokens/base/color/light/display-light.json5`],
},
{
filename: 'light-high-contrast',
Expand All @@ -42,7 +42,11 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/shadow/light.json5`,
`src/tokens/functional/border/light.json5`,
],
include: [`src/tokens/base/color/light/light.json5`, `src/tokens/base/color/light/light.high-contrast.json5`],
include: [
`src/tokens/base/color/light/light.json5`,
`src/tokens/base/color/light/light.high-contrast.json5`,
`src/tokens/base/color/light/display-light.json5`,
],
},
{
filename: 'dark',
Expand All @@ -52,7 +56,7 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/shadow/dark.json5`,
`src/tokens/functional/border/dark.json5`,
],
include: [`src/tokens/base/color/dark/dark.json5`],
include: [`src/tokens/base/color/dark/dark.json5`, `src/tokens/base/color/light/display-dark.json5`],
},
{
filename: 'dark-dimmed',
Expand All @@ -63,7 +67,11 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/shadow/dark.json5`,
`src/tokens/functional/border/dark.json5`,
],
include: [`src/tokens/base/color/dark/dark.json5`, `src/tokens/base/color/dark/dark.dimmed.json5`],
include: [
`src/tokens/base/color/dark/dark.json5`,
`src/tokens/base/color/dark/dark.dimmed.json5`,
`src/tokens/base/color/light/display-dark.json5`,
],
},
{
filename: 'dark-tritanopia',
Expand All @@ -74,7 +82,7 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/border/dark.json5`,
`src/tokens/functional/color/dark/overrides/dark.tritanopia.json5`,
],
include: [`src/tokens/base/color/dark/dark.json5`],
include: [`src/tokens/base/color/dark/dark.json5`, `src/tokens/base/color/light/display-dark.json5`],
},
{
filename: 'dark-colorblind',
Expand All @@ -85,7 +93,7 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/border/dark.json5`,
`src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5`,
],
include: [`src/tokens/base/color/dark/dark.json5`],
include: [`src/tokens/base/color/dark/dark.json5`, `src/tokens/base/color/light/display-dark.json5`],
},
{
filename: 'dark-high-contrast',
Expand All @@ -96,6 +104,10 @@ export const themes: TokenBuildInput[] = [
`src/tokens/functional/shadow/dark.json5`,
`src/tokens/functional/border/dark.json5`,
],
include: [`src/tokens/base/color/dark/dark.json5`, `src/tokens/base/color/dark/dark.high-contrast.json5`],
include: [
`src/tokens/base/color/dark/dark.json5`,
`src/tokens/base/color/dark/dark.high-contrast.json5`,
`src/tokens/base/color/light/display-dark.json5`,
],
},
]
Loading

0 comments on commit 01e3daf

Please sign in to comment.