Skip to content

Commit

Permalink
feat(data): decoupling interactive tokens with passive tokens.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljemmo committed Nov 1, 2023
1 parent 8ce5288 commit 8c06478
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 78 deletions.
22 changes: 11 additions & 11 deletions data/tokens/Components/container.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@
"container": {
"standard": {
"bgAlt-default": {
"value": "{base.color.inert.standard.bgFirm}",
"value": "{base.color.passive.standard.bgFirm}",
"type": "color"
},
"bg-default": {
"value": "{base.color.inert.standard.bgExtreme}",
"value": "{base.color.passive.standard.bgExtreme}",
"type": "color"
},
"bgFooter-default": {
"value": "{base.color.inert.standard.bgFirm}",
"value": "{base.color.passive.standard.bgFirm}",
"type": "color",
"description": "tile footer bg color\n"
},
"border-default": {
"value": "{base.color.inert.standard.bgDelicate}",
"value": "{base.color.passive.standard.bgDelicate}",
"type": "color"
}
},
"interactive": {
"bgFooter-default": {
"value": "{base.color.inert.standard.bgFirm}",
"value": "{base.color.passive.standard.bgFirm}",
"type": "color",
"description": "tile footer bg color\n"
},
"bg-enabled": {
"value": "{base.color.inert.standard.bgExtreme}",
"value": "{base.color.passive.standard.bgExtreme}",
"type": "color"
},
"bg-inactive": {
Expand All @@ -51,27 +51,27 @@
"type": "color"
},
"border-enabled": {
"value": "{base.color.inert.standard.fgDelicate}",
"value": "{base.color.passive.standard.fgDelicate}",
"type": "color"
},
"labelFooter-active": {
"value": "{base.color.inert.inverse.fgExtreme}",
"value": "{base.color.passive.inverse.fgExtreme}",
"type": "color"
},
"text-active": {
"value": "{base.color.inert.standard.fgExtreme}",
"value": "{base.color.passive.standard.fgExtreme}",
"type": "color"
},
"text-default": {
"value": "{base.color.inert.standard.fgFirm}",
"value": "{base.color.passive.standard.fgFirm}",
"type": "color"
},
"text-disabled": {
"value": "{base.color.interactive.inactive.content}",
"type": "color"
},
"text-hover": {
"value": "{base.color.inert.standard.fgExtreme}",
"value": "{base.color.passive.standard.fgExtreme}",
"type": "color"
}
}
Expand Down
14 changes: 7 additions & 7 deletions data/tokens/Components/form.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"type": "color"
},
"icon-default": {
"value": "{base.color.inert.standard.fgFirm}",
"value": "{base.color.passive.standard.fgFirm}",
"type": "color"
},
"icon-disabled": {
Expand All @@ -43,15 +43,15 @@
"type": "color"
},
"text-default": {
"value": "{base.color.inert.standard.fgModerate}",
"value": "{base.color.passive.standard.fgModerate}",
"type": "color"
},
"text-disabled": {
"value": "{base.color.interactive.inactive.content}",
"type": "color"
},
"text-readOnly": {
"value": "{base.color.inert.standard.fgFirm}",
"value": "{base.color.passive.standard.fgFirm}",
"type": "color"
}
},
Expand Down Expand Up @@ -85,20 +85,20 @@
"type": "color"
},
"label-default": {
"value": "{base.color.inert.standard.fgFirm}",
"value": "{base.color.passive.standard.fgFirm}",
"type": "color"
},
"label-alt": {
"value": "{base.color.inert.standard.fgModerate}",
"value": "{base.color.passive.standard.fgModerate}",
"type": "color",
"description": "used for '(optional)' text and hint text."
},
"label-disabled": {
"value": "{base.color.inert.standard.fgDelicate}",
"value": "{base.color.passive.standard.fgDelicate}",
"type": "color"
},
"label-readOnly": {
"value": "{base.color.inert.standard.fgFirm}",
"value": "{base.color.passive.standard.fgFirm}",
"type": "color"
}
}
Expand Down
2 changes: 1 addition & 1 deletion data/tokens/Components/tab.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type": "color"
},
"border-enabled": {
"value": "{base.color.inert.standard.fgDelicate}",
"value": "{base.color.passive.standard.fgDelicate}",
"type": "color"
},
"icon-disabled": {
Expand Down
Loading

0 comments on commit 8c06478

Please sign in to comment.