-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
abe8e5d
commit 464e439
Showing
3 changed files
with
137 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
134 changes: 134 additions & 0 deletions
134
src/tokens/functional/color/light/overrides/dis.light.protanopia-deuteranopia.json5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}'}, | ||
}, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters