Skip to content

Commit

Permalink
complete overrides for tritanopia light
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Apr 24, 2023
1 parent 95f66e9 commit 5ef152a
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/themes.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ 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/shadow/light.json5`,
`src/tokens/functional/border/light.json5`,
`src/tokens/functional/color/light/overrides/light.tritanopia.json5`,
],
include: [
`src/tokens/base/color/light/light.json5`,
Expand Down
46 changes: 46 additions & 0 deletions src/tokens/functional/color/light/overrides/light.tritanopia.json5
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,52 @@
},
},
},
button: {
primary: {
bgColor: {
hover: {
$value: '{bgColor.success.emphasis}',
$type: 'color',
mix: {
color: '{base.color.blue.6}',
weight: 0.2,
},
},
active: {
$value: '{bgColor.success.emphasis}',
$type: 'color',
mix: {
color: '{base.color.blue.6}',
weight: 0.4,
},
},
disabled: {
$value: '{base.color.blue.4}',
$type: 'color',
mix: {
color: '{base.color.blue.0}',
weight: 0.6,
},
},
},
shadow: {
selected: {
$value: [
{
color: '{base.color.blue.9}',
alpha: 0.3,
offsetX: '0px',
offsetY: '1px',
blur: '0px',
spread: '0px',
inset: true,
},
],
$type: 'shadow',
},
},
},
},
color: {
ansi: {
green: {
Expand Down

0 comments on commit 5ef152a

Please sign in to comment.