-
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.
Removing Tritanopia colorblind scale and replacing with override (#562)
* Replace tritanopia scale with overrides * add changeset
- Loading branch information
1 parent
f9f5473
commit d88095e
Showing
3 changed files
with
230 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@primer/primitives': patch | ||
--- | ||
|
||
Replaces light Tritanopia scale with overrides |
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
220 changes: 220 additions & 0 deletions
220
src/tokens/functional/color/light/overrides/light.tritanopia.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,220 @@ | ||
/** | ||
* Light tritanopia theme | ||
* @extends all functional tokens | ||
* @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', | ||
}, | ||
}, | ||
bgColor: { | ||
success: { | ||
muted: { | ||
$value: '{base.color.blue.0}', | ||
$type: 'color', | ||
}, | ||
emphasis: { | ||
$value: '{base.color.blue.4}', | ||
$type: 'color', | ||
mix: { | ||
color: '{base.color.blue.5}', | ||
weight: 0.75, | ||
}, | ||
}, | ||
}, | ||
severe: { | ||
muted: { | ||
$value: '{base.color.red.0}', | ||
$type: 'color', | ||
}, | ||
emphasis: { | ||
$value: '{base.color.red.5}', | ||
$type: 'color', | ||
}, | ||
}, | ||
}, | ||
borderColor: { | ||
success: { | ||
muted: { | ||
$value: '{base.color.blue.3}', | ||
$type: 'color', | ||
alpha: 0.4, | ||
}, | ||
emphasis: { | ||
$value: '{base.color.blue.4}', | ||
$type: 'color', | ||
}, | ||
}, | ||
severe: { | ||
muted: { | ||
$value: '{base.color.red.3}', | ||
$type: 'color', | ||
alpha: 0.4, | ||
}, | ||
emphasis: { | ||
$value: '{base.color.red.5}', | ||
$type: 'color', | ||
}, | ||
}, | ||
}, | ||
diffBlob: { | ||
addition: { | ||
bgColor: { | ||
num: { | ||
$value: '{base.color.blue.1}', | ||
$type: 'color', | ||
mix: { | ||
color: '{base.color.blue.0}', | ||
weight: 0.8, | ||
}, | ||
}, | ||
line: { | ||
$value: '{base.color.blue.0}', | ||
$type: 'color', | ||
}, | ||
word: { | ||
$value: '{base.color.blue.1}', | ||
$type: 'color', | ||
}, | ||
}, | ||
}, | ||
}, | ||
codeMirror: { | ||
syntax: { | ||
fgColor: { | ||
variable: { | ||
$value: '{base.color.red.6}', | ||
$type: 'color', | ||
}, | ||
}, | ||
}, | ||
}, | ||
button: { | ||
primary: { | ||
bgColor: { | ||
hover: { | ||
$value: '{bgColor.success.emphasis}', | ||
$type: 'color', | ||
mix: { | ||
color: '{base.color.blue.6}', | ||
weight: 0.2, | ||
}, | ||
}, | ||
active: { | ||
$value: '{bgColor.success.emphasis}', | ||
$type: 'color', | ||
mix: { | ||
color: '{base.color.blue.6}', | ||
weight: 0.4, | ||
}, | ||
}, | ||
disabled: { | ||
$value: '{base.color.blue.4}', | ||
$type: 'color', | ||
mix: { | ||
color: '{base.color.blue.0}', | ||
weight: 0.6, | ||
}, | ||
}, | ||
}, | ||
shadow: { | ||
selected: { | ||
$value: [ | ||
{ | ||
color: '{base.color.blue.9}', | ||
alpha: 0.3, | ||
offsetX: '0px', | ||
offsetY: '1px', | ||
blur: '0px', | ||
spread: '0px', | ||
inset: true, | ||
}, | ||
], | ||
$type: 'shadow', | ||
}, | ||
}, | ||
}, | ||
}, | ||
color: { | ||
ansi: { | ||
green: { | ||
$value: '{base.color.blue.6}', | ||
$type: 'color', | ||
}, | ||
'green-bright': { | ||
$value: '{base.color.blue.5}', | ||
$type: 'color', | ||
}, | ||
}, | ||
prettylights: { | ||
syntax: { | ||
'string-regexp': { | ||
$value: '{base.color.blue.6}', | ||
$type: 'color', | ||
}, | ||
variable: { | ||
$value: '{base.color.red.6}', | ||
$type: 'color', | ||
}, | ||
markup: { | ||
inserted: { | ||
text: { | ||
$value: '{base.color.blue.6}', | ||
$type: 'color', | ||
}, | ||
bg: { | ||
$value: '{base.color.blue.0}', | ||
$type: 'color', | ||
}, | ||
}, | ||
changed: { | ||
text: { | ||
$value: '{base.color.red.6}', | ||
$type: 'color', | ||
}, | ||
bg: { | ||
$value: '{base.color.red.1}', | ||
$type: 'color', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
/** | ||
* @description All overwrites for color scales | ||
*/ | ||
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}'}, | ||
}, | ||
orange: { | ||
'0': {$value: '{base.color.red.0}'}, | ||
'1': {$value: '{base.color.red.1}'}, | ||
'2': {$value: '{base.color.red.2}'}, | ||
'3': {$value: '{base.color.red.3}'}, | ||
'4': {$value: '{base.color.red.4}'}, | ||
'5': {$value: '{base.color.red.5}'}, | ||
'6': {$value: '{base.color.red.6}'}, | ||
'7': {$value: '{base.color.red.7}'}, | ||
'8': {$value: '{base.color.red.8}'}, | ||
'9': {$value: '{base.color.red.9}'}, | ||
}, | ||
}, | ||
}, | ||
} |