Skip to content

Commit

Permalink
update dark tritanopia
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Dec 20, 2024
1 parent 9ca750f commit 74ff916
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 47 deletions.
32 changes: 31 additions & 1 deletion src/tokens/functional/color/borderColor.json5
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@
$value: '{base.color.green.4}',
alpha: 1,
},
'dark-tritanopia': {
$value: '{base.color.blue.4}',
alpha: 0.4,
},
'dark-protanopia-deuteranopia': {
$value: '{base.color.blue.4}',
},
Expand All @@ -240,6 +244,12 @@
web: 'var(--borderColor-success-emphasis) /* utility class: .color-border-success-emphasis */',
},
},
'org.primer.overrides': {
'dark-tritanopia': {
$value: '{base.color.blue.5}',
$type: 'color',
},
},
},
},
},
Expand All @@ -256,6 +266,12 @@
web: 'var(--borderColor-open-muted) /* utility class: .color-border-open */',
},
},
'org.primer.overrides': {
'dark-tritanopia': {
$value: '{base.color.red.4}',
alpha: 0.4,
},
},
},
},
emphasis: {
Expand All @@ -270,6 +286,9 @@
web: 'var(--borderColor-open-emphasis) /* utility class: .color-border-open-emphasis */',
},
},
'org.primer.overrides': {
'dark-tritanopia': '{base.color.red.5}',
},
},
},
},
Expand Down Expand Up @@ -338,6 +357,9 @@
$value: '{base.color.orange.4}',
alpha: 1,
},
'dark-tritanopia': {
$value: '{base.color.red.4}',
},
},
},
alpha: 0.4,
Expand All @@ -354,6 +376,9 @@
web: 'var(--borderColor-severe-emphasis) /* utility class: .color-border-severe-emphasis */',
},
},
'org.primer.overrides': {
'dark-tritanopia': '{base.color.red.5}',
},
},
},
},
Expand Down Expand Up @@ -432,6 +457,10 @@
$value: '{borderColor.default}',
alpha: 0.4,
},
'dark-tritanopia': {
$value: '{borderColor.default}',
alpha: 0.4,
},
},
},
},
Expand All @@ -449,6 +478,7 @@
},
'org.primer.overrides': {
'light-protanopia-deutranopia': '{borderColor.emphasis}',
'dark-tritanopia': '{borderColor.emphasis}',
},
},
},
Expand Down Expand Up @@ -544,7 +574,7 @@
$value: '{base.color.pink.3}',
alpha: 1,
},
'light-high-contrast': {
'dark-high-contrast': {
$value: '{base.color.pink.4}',
alpha: 1,
},
Expand Down
46 changes: 0 additions & 46 deletions src/tokens/functional/color/dark/overrides/dark.tritanopia.json5
Original file line number Diff line number Diff line change
Expand Up @@ -75,52 +75,6 @@
},
},
},
borderColor: {
success: {
muted: {
$value: '{base.color.blue.4}',
$type: 'color',
alpha: 0.4,
},
emphasis: {
$value: '{base.color.blue.5}',
$type: 'color',
},
},
severe: {
muted: {
$value: '{base.color.red.4}',
$type: 'color',
alpha: 0.4,
},
emphasis: {
$value: '{base.color.red.5}',
$type: 'color',
},
},
open: {
muted: {
$value: '{base.color.red.4}',
$type: 'color',
alpha: 0.4,
},
emphasis: {
$value: '{base.color.red.5}',
$type: 'color',
},
},
closed: {
muted: {
$value: '{borderColor.default}',
$type: 'color',
alpha: 0.4,
},
emphasis: {
$value: '{borderColor.emphasis}',
$type: 'color',
},
},
},
codeMirror: {
syntax: {
fgColor: {
Expand Down

0 comments on commit 74ff916

Please sign in to comment.