Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Apr 19, 2023
1 parent abe8e5d commit 464e439
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/themes.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ 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/color/light/overrides/light.tritanopia.json5`,
`src/tokens/functional/shadow/light.json5`,
`src/tokens/functional/border/light.json5`,
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
/**
* Light protanopia and deuteranopia (colorblind)
* @extends all functional tokens
* @description All overwrites for functional color tokens for light protanopia and deuteranopia color mode are in this file
*/
{
fgColor: {
open: {
$value: '{base.color.orange.5}',
$type: 'color',
},
closed: {
$value: '{base.color.gray.5}',
$type: 'color',
},
},
bgColor: {
open: {
muted: {
$value: '{base.color.orange.3}',
$type: 'color',
alpha: 0.4,
},
emphasis: {
$value: '{base.color.orange.4}',
$type: 'color',
},
},
closed: {
muted: {
$value: '{base.color.gray.3}',
$type: 'color',
alpha: 0.4,
},
emphasis: {
$value: '{base.color.gray.5}',
$type: 'color',
},
},
},
borderColor: {
open: {
muted: {
$value: '{base.color.orange.3}',
$type: 'color',
alpha: 0.4,
},
emphasis: {
$value: '{base.color.orange.4}',
$type: 'color',
},
},
closed: {
muted: {
$value: '{base.color.gray.3}',
$type: 'color',
alpha: 0.4,
},
emphasis: {
$value: '{base.color.gray.5}',
$type: 'color',
},
},
},
diffBlob: {
addition: {
bgColor: {
num: {
$value: '{base.color.green.3}',
$type: 'color',
mix: null,
alpha: 0.4,
},
line: {
$value: '{base.color.green.0}',
$type: 'color',
alpha: 0.5,
},
word: {
$value: '{base.color.green.3}',
$type: 'color',
alpha: 0.4,
},
},
},
deletion: {
bgColor: {
num: {
$value: '{base.color.red.3}',
$type: 'color',
alpha: 0.4,
},
line: {
$value: '{base.color.red.0}',
$type: 'color',
alpha: 0.5,
},
word: {
$value: '{base.color.orange.2}',
$type: 'color',
alpha: 0.5,
},
},
},
},
color: {
scale: {
green: {
'0': {$value: '{base.color.blue.0}'},
'1': {$value: '{base.color.blue.1}'},
'2': {$value: '{base.color.blue.2}'},
'3': {$value: '{base.color.blue.3}'},
'4': {$value: '{base.color.blue.4}'},
'5': {$value: '{base.color.blue.5}'},
'6': {$value: '{base.color.blue.6}'},
'7': {$value: '{base.color.blue.7}'},
'8': {$value: '{base.color.blue.8}'},
'9': {$value: '{base.color.blue.9}'},
},
red: {
'0': {$value: '{base.color.orange.0}'},
'1': {$value: '{base.color.orange.1}'},
'2': {$value: '{base.color.orange.2}'},
'3': {$value: '{base.color.orange.3}'},
'4': {$value: '{base.color.orange.4}'},
'5': {$value: '{base.color.orange.5}'},
'6': {$value: '{base.color.orange.6}'},
'7': {$value: '{base.color.orange.7}'},
'8': {$value: '{base.color.orange.8}'},
'9': {$value: '{base.color.orange.9}'},
},
},
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
},
},
},
base: {
color: {
color: {
scale: {
green: {
"0": { $value: '{base.color.blue.0}' },
"1": { $value: '{base.color.blue.1}' },
Expand Down

0 comments on commit 464e439

Please sign in to comment.