Skip to content

Commit

Permalink
adding tritanopia overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Apr 21, 2023
1 parent e3d5658 commit 5c90135
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/themes.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export const themes: TokenBuildInput[] = [
source: [
`src/tokens/functional/color/light/*.json5`,
`src/tokens/functional/color/scales.json5`,
// `src/tokens/functional/color/light/overrides/light.tritanopia.json5`,
`src/tokens/functional/color/light/overrides/light.tritanopia.json5`,
`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.tritanopia.json5`],
include: [`src/tokens/base/color/light/light.json5`],
},
{
filename: 'light-colorblind',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@
},
},
color: {
prettylights: {
syntax: {
stringRegexp: {
$value: '{base.color.blue.6}',
$type: 'color',
},
variable: {
$value: '{base.color.red.6}',
$type: 'color',
},
}
},
/**
* @description All overwrites for color scales
*/
scale: {
green: {
"0": { $value: '{base.color.blue.0}' },
Expand Down

0 comments on commit 5c90135

Please sign in to comment.