Skip to content

Commit

Permalink
move diffBlob tritanopia into diffBlob component file (#1139)
Browse files Browse the repository at this point in the history
* diffB;ob tritanopia

* fix
  • Loading branch information
lukasoppermann authored Dec 18, 2024
1 parent 0be97d5 commit 1c0288d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 108 deletions.
19 changes: 19 additions & 0 deletions src/tokens/component/diffBlob.json5
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@
},
'light-high-contrast': '{base.color.green.5}',
'dark-high-contrast': '{bgColor.success.emphasis}',
'light-tritanopia': '{base.color.blue.1}',
'dark-tritanopia': {
$value: '{base.color.blue.4}',
alpha: 0.4,
},
},
},
},
Expand Down Expand Up @@ -103,6 +108,11 @@
alpha: 0.3,
},
'light-protanopia-deuteranopia': '{base.color.blue.1}',
'light-tritanopia': '{base.color.blue.1}',
'dark-tritanopia': {
$value: '{base.color.blue.3}',
alpha: 0.3,
},
'dark-protanopia-deuteranopia': {
$value: '{base.color.blue.3}',
alpha: 0.3,
Expand Down Expand Up @@ -184,6 +194,7 @@
},
'light-high-contrast': '{base.color.red.5}',
'dark-high-contrast': '{bgColor.danger.emphasis}',
'light-tritanopia': '{base.color.red.1}',
},
},
},
Expand Down Expand Up @@ -214,6 +225,7 @@
$value: '{base.color.red.4}',
alpha: 0.3,
},
'light-tritanopia': '{base.color.red.1}',
'light-protanopia-deuteranopia': '{base.color.orange.1}',
'dark-protanopia-deuteranopia': {
$value: '{base.color.orange.4}',
Expand All @@ -234,6 +246,8 @@
scopes: ['bgColor'],
},
'org.primer.overrides': {
'light-tritanopia': '{base.color.neutral.1}',
'dark-tritanopia': '{base.color.neutral.3}',
'light-protanopia-deuteranopia': '{base.color.neutral.1}',
'dark-protanopia-deuteranopia': '{base.color.neutral.3}',
'dark-high-contrast': {
Expand Down Expand Up @@ -279,6 +293,7 @@
},
'org.primer.overrides': {
'light-protanopia-deuteranopia': '{fgColor.default}',
'light-tritanopia': '{fgColor.default}',
},
},
},
Expand All @@ -295,8 +310,10 @@
},
'org.primer.overrides': {
dark: '{base.color.blue.8}',
'light-tritanopia': '{base.color.neutral.3}',
'light-protanopia-deuteranopia': '{base.color.neutral.3}',
'dark-protanopia-deuteranopia': '{base.color.neutral.6}',
'dark-tritanopia': '{base.color.neutral.6}',
'dark-high-contrast': {
$value: '{base.color.blue.4}',
alpha: 0.4,
Expand All @@ -314,6 +331,8 @@
scopes: ['bgColor'],
},
'org.primer.overrides': {
'light-tritanopia': '{base.color.neutral.7}',
'dark-tritanopia': '{base.color.neutral.8}',
'light-protanopia-deuteranopia': '{base.color.neutral.7}',
'dark-protanopia-deuteranopia': '{base.color.neutral.8}',
},
Expand Down
37 changes: 0 additions & 37 deletions src/tokens/functional/color/dark/overrides/dark.tritanopia.json5
Original file line number Diff line number Diff line change
Expand Up @@ -121,43 +121,6 @@
},
},
},
diffBlob: {
additionNum: {
bgColor: {
$value: '{base.color.blue.3}',
$type: 'color',
alpha: 0.3,
},
},
additionWord: {
bgColor: {
$value: '{base.color.blue.4}',
$type: 'color',
alpha: 0.4,
},
},
hunkNum: {
bgColor: {
rest: {
$value: '{base.color.neutral.6}',
$type: 'color',
alpha: 1,
},
hover: {
$value: '{base.color.neutral.8}',
$type: 'color',
alpha: 1,
},
},
},
hunkLine: {
bgColor: {
$value: '{base.color.neutral.3}',
$type: 'color',
alpha: 1,
},
},
},
codeMirror: {
syntax: {
fgColor: {
Expand Down
71 changes: 0 additions & 71 deletions src/tokens/functional/color/light/overrides/light.tritanopia.json5
Original file line number Diff line number Diff line change
Expand Up @@ -110,77 +110,6 @@
},
},
},
diffBlob: {
additionNum: {
bgColor: {
$value: '{base.color.blue.1}',
$type: 'color',
},
},
additionWord: {
bgColor: {
$value: '{base.color.blue.1}',
$type: 'color',
},
},
deletionNum: {
bgColor: {
$value: '{base.color.red.1}',
$type: 'color',
},
},
deletionWord: {
bgColor: {
$value: '{base.color.red.1}',
$type: 'color',
},
},
hunkLine: {
bgColor: {
$value: '{base.color.neutral.1}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component',
scopes: ['bgColor'],
},
},
},
},
hunkNum: {
bgColor: {
rest: {
$value: '{base.color.neutral.3}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component',
scopes: ['bgColor'],
},
},
},
hover: {
$value: '{base.color.neutral.7}',
$type: 'color',
$extensions: {
'org.primer.figma': {
collection: 'mode',
group: 'component',
scopes: ['bgColor'],
},
},
},
},
fgColor: {
hover: {
$value: '{fgColor.default}',
$type: 'color',
},
},
},
},
codeMirror: {
syntax: {
fgColor: {
Expand Down

0 comments on commit 1c0288d

Please sign in to comment.