Skip to content

Commit

Permalink
feat(data): various inverse colour tokens added for jade green in ori…
Browse files Browse the repository at this point in the history
…gin, base, and link
  • Loading branch information
clairedenning committed Jan 9, 2024
1 parent 37ea521 commit 41ce987
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 19 deletions.
6 changes: 3 additions & 3 deletions data/tokens/Components/link.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"type": "color"
},
"label-hover": {
"value": "{base.color.interactive.primary.hoverAlt}",
"value": "{base.color.interactive.inverse.hoverAlt}",
"type": "color"
}
},
Expand All @@ -51,11 +51,11 @@
},
"typical": {
"label-default": {
"value": "{base.color.interactive.primary.defaultAlt}",
"value": "{base.color.interactive.inverse.defaultAlt}",
"type": "color"
},
"label-hover": {
"value": "{base.color.interactive.primary.hoverAlt}",
"value": "{base.color.interactive.inverse.hoverAlt}",
"type": "color"
}
},
Expand Down
50 changes: 36 additions & 14 deletions data/tokens/Modes/light.json
Original file line number Diff line number Diff line change
Expand Up @@ -753,20 +753,6 @@
}
}
},
"hoverAlt": {
"value": "{base.color.interactive.primary.defaultAlt}",
"type": "color",
"$extensions": {
"studio.tokens": {
"modify": {
"type": "mix",
"value": "{base.color.modifiers.button.hoverAlt} ",
"space": "lch",
"color": "{base.color.modifier.contrastMore}"
}
}
}
},
"withActive": {
"value": "{base.color.generic.content.inverse.extreme}",
"type": "color"
Expand All @@ -779,6 +765,42 @@
"value": "{base.color.generic.content.inverse.extreme}",
"type": "color"
}
},
"inverse": {
"default": {
"value": "{origin.inverse.jade}",
"type": "color"
},
"defaultAlt": {
"value": "{base.color.interactive.inverse.default}",
"type": "color",
"$extensions": {
"studio.tokens": {
"modify": {
"type": "mix",
"value": "0.12",
"space": "lch",
"color": "{base.color.modifier.contrastLess} "
}
}
},
"description": "for links in datatables\n"
},
"hoverAlt": {
"value": "{base.color.interactive.inverse.defaultAlt}",
"type": "color",
"$extensions": {
"studio.tokens": {
"modify": {
"type": "mix",
"value": "{base.color.modifiers.button.hoverAlt} ",
"space": "lch",
"color": "{base.color.modifier.contrastLess} "
}
}
},
"description": "for links in datatables"
}
}
},
"status": {
Expand Down
4 changes: 2 additions & 2 deletions data/tokens/origin.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@
},
"inverse": {
"jade": {
"value": "#00a15a",
"value": "#008F4F",
"type": "color",
"description": "origin BASE (has 4.5 to 1 ratio against 262626)"
"description": "origin BASE (has AAA 5 to 1 ratio against 000000)"
}
},
"size": {
Expand Down

0 comments on commit 41ce987

Please sign in to comment.