Skip to content

Commit

Permalink
add missing light overrides for fgColor
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Jan 16, 2025
1 parent 1798859 commit b187283
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 42 deletions.
24 changes: 18 additions & 6 deletions src/tokens/functional/color/fgColor.json5
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
},
'org.primer.overrides': {
dark: '#4493F8',
"light-high-contrast": "{base.color.blue.6}",
'light-high-contrast': '{base.color.blue.6}',
},
},
},
Expand All @@ -169,6 +169,8 @@
'org.primer.overrides': {
dark: '{base.color.green.3}',
'light-high-contrast': '{base.color.green.6}',
'light-protanopia-deuteranopia': '{base.color.blue.5}',
"light-tritanopia": '{base.color.blue.5}',
},
},
},
Expand All @@ -184,6 +186,10 @@
web: 'var(--fgColor-open) /* utility class: .color-fg-open */',
},
},
'org.primer.overrides': {
'light-protanopia-deuteranopia': '{base.color.blue.5}',
"light-tritanopia": '{base.color.red.5}',
},
},
},
attention: {
Expand All @@ -200,7 +206,7 @@
},
'org.primer.overrides': {
dark: '{base.color.yellow.3}',
"light-high-contrast": "{base.color.yellow.6}",
'light-high-contrast': '{base.color.yellow.6}',
},
},
},
Expand All @@ -218,7 +224,8 @@
},
'org.primer.overrides': {
dark: '{base.color.orange.4}',
"light-high-contrast": "{base.color.orange.6}",
'light-high-contrast': '{base.color.orange.6}',
"light-tritanopia": '{base.color.red.5}',
},
},
},
Expand All @@ -236,7 +243,8 @@
},
'org.primer.overrides': {
dark: '{base.color.red.4}',
"light-high-contrast": "{base.color.red.6}",
'light-high-contrast': '{base.color.red.6}',
'light-protanopia-deuteranopia': '{base.color.orange.5}',
},
},
},
Expand All @@ -252,6 +260,10 @@
web: 'var(--fgColor-closed) /* utility class: .color-fg-closed */',
},
},
'org.primer.overrides': {
'light-protanopia-deuteranopia': '{fgColor.muted}',
"light-tritanopia": '{fgColor.muted}',
},
},
},
done: {
Expand All @@ -268,7 +280,7 @@
},
'org.primer.overrides': {
dark: '{base.color.purple.4}',
"light-high-contrast": "{base.color.purple.6}",
'light-high-contrast': '{base.color.purple.6}',
},
},
},
Expand Down Expand Up @@ -300,7 +312,7 @@
},
'org.primer.overrides': {
dark: '{base.color.pink.4}',
"light-high-contrast": "{base.color.pink.6}",
'light-high-contrast': '{base.color.pink.6}',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,6 @@
* @description All overwrites for functional color tokens for light protanopia and deuteranopia color mode are in this file
*/
{
fgColor: {
success: {
$value: '{base.color.blue.5}',
$type: 'color',
},
open: {
$value: '{base.color.blue.5}',
$type: 'color',
},
closed: {
$value: '{fgColor.muted}',
$type: 'color',
},
danger: {
$value: '{base.color.orange.5}',
$type: 'color',
},
},
bgColor: {
success: {
muted: {
Expand Down
18 changes: 0 additions & 18 deletions src/tokens/functional/color/light/overrides/light.tritanopia.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,6 @@
* @description All overwrites for functional color tokens for this theme are in this file
*/
{
fgColor: {
success: {
$value: '{base.color.blue.5}',
$type: 'color',
},
severe: {
$value: '{base.color.red.5}',
$type: 'color',
},
open: {
$value: '{base.color.red.5}',
$type: 'color',
},
closed: {
$value: '{fgColor.muted}',
$type: 'color',
},
},
bgColor: {
success: {
muted: {
Expand Down

0 comments on commit b187283

Please sign in to comment.