Skip to content

Commit

Permalink
add dark colorbling
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Dec 13, 2024
1 parent a9fdca4 commit 0e18c9e
Showing 1 changed file with 23 additions and 74 deletions.
97 changes: 23 additions & 74 deletions src/tokens/component/diffBlob.json5
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@
'light-tritanopia': '{base.color.blue.1}',
'light-high-contrast': '{base.color.green.5}',
'dark-high-contrast': '{bgColor.success.emphasis}',
'dark-protanopia-deuteranopia': {},
'dark-protanopia-deuteranopia': {
$value: '{base.color.blue.4}',
alpha: 0.4,
},
'dark-tritanopia': {
$value: '{base.color.blue.4}',
alpha: 0.4,
Expand Down Expand Up @@ -105,7 +108,10 @@
'org.primer.overrides': {
'light-protanopia-deuteranopia': '{base.color.blue.1}',
'light-tritanopia': '{base.color.blue.1}',
'dark-protanopia-deuteranopia': {},
'dark-protanopia-deuteranopia': {
$value: '{base.color.blue.3}',
alpha: 0.3,
},
'dark-tritanopia': {
$value: '{base.color.blue.3}',
alpha: 0.3,
Expand Down Expand Up @@ -144,6 +150,10 @@
$value: '{bgColor.danger.muted}',
alpha: 0.2,
},
'dark-protanopia-deuteranopia': {
$value: '{base.color.orange.4}',
alpha: 0.15,
},
},
},
},
Expand All @@ -161,6 +171,10 @@
'org.primer.overrides': {
'light-high-contrast': '{fgColor.onEmphasis}',
'dark-high-contrast': '{fgColor.onEmphasis}',
'dark-protanopia-deuteranopia': {
$value: '{base.color.orange.4}',
alpha: 0.4,
},
},
},
},
Expand Down Expand Up @@ -211,9 +225,10 @@
'org.primer.overrides': {
'light-protanopia-deuteranopia': '{base.color.orange.1}',
'light-tritanopia': '{base.color.red.1}',
'light-high-contrast': {},
'dark-high-contrast': {},
'dark-protanopia-deuteranopia': {},
'dark-protanopia-deuteranopia': {
$value: '{base.color.orange.4}',
alpha: 0.3,
},
dark: {
$value: '{base.color.red.4}',
alpha: 0.3,
Expand Down Expand Up @@ -244,6 +259,7 @@
scopes: ['bgColor'],
},
'org.primer.overrides': {
'dark-protanopia-deuteranopia': '{base.color.neutral.3}',
'light-protanopia-deuteranopia': '{base.color.neutral.1}',
'light-tritanopia': '{base.color.neutral.1}',
'dark-tritanopia': '{base.color.neutral.3}',
Expand Down Expand Up @@ -297,6 +313,7 @@
$value: '{base.color.blue.4}',
alpha: 0.4,
},
'dark-protanopia-deuteranopia': '{base.color.neutral.6}',
'light-high-contrast': '{base.color.blue.1}',
'light-tritanopia': '{base.color.neutral.3}',
'light-protanopia-deuteranopia': '{base.color.neutral.3}',
Expand All @@ -313,6 +330,7 @@
scopes: ['bgColor'],
},
'org.primer.overrides': {
'dark-protanopia-deuteranopia': '{base.color.neutral.8}',
'light-protanopia-deuteranopia': '{base.color.neutral.7}',
'dark-tritanopia': '{base.color.neutral.8}',
'light-tritanopia': '{base.color.neutral.7}',
Expand Down Expand Up @@ -365,73 +383,4 @@
},
},
},
'----------': '----------',
'dark-protanopia-deuteranopia': {
additionNum: {
bgColor: {
$value: '{base.color.blue.3}',
$type: 'color',
alpha: 0.3,
},
},
additionWord: {
bgColor: {
$value: '{base.color.blue.4}',
$type: 'color',
alpha: 0.4,
},
},
deletionNum: {
bgColor: {
$value: '{base.color.orange.4}',
$type: 'color',
alpha: 0.3,
},
},
deletionLine: {
bgColor: {
$value: '{base.color.orange.4}',
$type: 'color',
alpha: 0.15,
mix: null,
},
},
deletionWord: {
bgColor: {
$value: '{base.color.orange.4}',
$type: 'color',
alpha: 0.4,
},
},
hunkNum: {
bgColor: {
rest: {
$value: '{base.color.neutral.6}',
$type: 'color',
mix: null,
$extensions: {
alpha: 1,
},
},
hover: {
$value: '{base.color.neutral.8}',
$type: 'color',
mix: null,
$extensions: {
alpha: 1,
},
},
},
},
hunkLine: {
bgColor: {
$value: '{base.color.neutral.3}',
$type: 'color',
mix: null,
$extensions: {
alpha: 1,
},
},
},
},
}

0 comments on commit 0e18c9e

Please sign in to comment.