Skip to content

Commit

Permalink
feat(data): first pass of nav tokens complete
Browse files Browse the repository at this point in the history
  • Loading branch information
ljemmo committed Dec 13, 2023
1 parent d1c18f1 commit 623b9a2
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 43 deletions.
4 changes: 2 additions & 2 deletions data/tokens/$themes.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"Components/feedback": "enabled",
"Components/focus": "enabled",
"Components/link": "enabled",
"global": "source",
"global": "enabled",
"Components/datatable": "enabled",
"Components/actionpopover": "enabled",
"Components/nav": "disabled"
"Components/nav": "enabled"
},
"group": "Product"
}
Expand Down
2 changes: 1 addition & 1 deletion data/tokens/Components/actionpopover.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"description": "previously action minor 850"
},
"bg-hover": {
"value": "{base.color.interactive.monochrome.standard.hoverAlt}",
"value": "{base.color.interactive.monochrome.inverse.hoverAlt}",
"type": "color",
"description": "was action minor 100\n"
},
Expand Down
7 changes: 3 additions & 4 deletions data/tokens/Components/datatable.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "color"
},
"bg-hover": {
"value": "{base.color.interactive.monochrome.standard.hoverAlt}",
"value": "{base.color.interactive.monochrome.inverse.hoverAlt}",
"type": "color"
},
"bgAlt-default": {
Expand Down Expand Up @@ -74,9 +74,8 @@
"description": "Zebra stripes"
},
"bg-hover": {
"value": "{base.color.interactive.monochrome.standard.hoverAlt}",
"type": "color",
"$extensions": {}
"value": "{base.color.interactive.monochrome.inverse.hoverAlt}",
"type": "color"
},
"border-default": {
"value": "{base.color.generic.fg.standard.delicate}",
Expand Down
2 changes: 1 addition & 1 deletion data/tokens/Components/form.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type": "color"
},
"bg-hover": {
"value": "{base.color.interactive.monochrome.standard.hoverAlt}",
"value": "{base.color.interactive.monochrome.inverse.hoverAlt}",
"type": "color"
},
"border-duration": {
Expand Down
56 changes: 22 additions & 34 deletions data/tokens/Components/nav.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,87 +23,75 @@
},
"border-active": {
"value": "{base.color.generic.fg.standard.soft}",
"type": "color",
"$extensions": {}
"type": "color"
},
"border-default": {
"value": "{base.color.generic.fg.standard.soft}",
"type": "color",
"$extensions": {}
"type": "color"
},
"label-active": {
"value": "{base.color.interactive.monochrome.standard.withActive}",
"type": "color",
"$extensions": {}
"type": "color"
},
"label-enabled": {
"value": "{base.color.interactive.monochrome.standard.default}",
"type": "color",
"$extensions": {}
"type": "color"
},
"label-hover": {
"value": "{base.color.interactive.monochrome.standard.withHover}",
"type": "color",
"$extensions": {}
"type": "color"
},
"label-alt": {
"value": "{base.color.interactive.monochrome.standard.defaultAlt}",
"type": "color",
"$extensions": {}
"type": "color"
}
}
},
"harsh": {
"bg-default": {
"value": "{base.color.generic.bg.standard.moderate}",
"value": "{base.color.generic.bg.inverse.faint}",
"type": "color"
},
"bg-alt": {
"value": "{base.color.generic.bg.standard.soft}",
"value": "{base.color.generic.bg.inverse.delicate}",
"type": "color"
},
"item": {
"bg-active": {
"value": "{base.color.interactive.monochrome.standard.active}",
"value": "{base.color.interactive.monochrome.inverse.active}",
"type": "color"
},
"bg-enabled": {
"value": "{origin.colors.transparent}",
"type": "color"
},
"bg-hover": {
"value": "{base.color.interactive.monochrome.standard.hoverAlt}",
"value": "{base.color.interactive.monochrome.inverse.hoverAlt}",
"type": "color"
},
"border-active": {
"value": "{base.color.generic.fg.standard.soft}",
"type": "color",
"$extensions": {}
"value": "{base.color.generic.fg.inverse.faint}",
"type": "color"
},
"border-default": {
"value": "{base.color.generic.fg.standard.soft}",
"type": "color",
"$extensions": {}
"value": "{base.color.generic.fg.inverse.faint}",
"type": "color"
},
"label-active": {
"value": "{base.color.interactive.monochrome.standard.withActive}",
"type": "color",
"$extensions": {}
"value": "{base.color.interactive.monochrome.inverse.withActive}",
"type": "color"
},
"label-enabled": {
"value": "{base.color.interactive.monochrome.standard.default}",
"type": "color",
"$extensions": {}
"value": "{base.color.interactive.monochrome.inverse.default}",
"type": "color"
},
"label-hover": {
"value": "{base.color.interactive.monochrome.standard.withHover}",
"type": "color",
"$extensions": {}
"value": "{base.color.interactive.monochrome.inverse.withHover}",
"type": "color"
},
"label-alt": {
"value": "{base.color.interactive.monochrome.standard.defaultAlt}",
"type": "color",
"$extensions": {}
"value": "{base.color.interactive.monochrome.inverse.defaultAlt}",
"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 @@ -6,7 +6,7 @@
"type": "color"
},
"bg-hover": {
"value": "{base.color.interactive.monochrome.standard.hoverAlt}",
"value": "{base.color.interactive.monochrome.inverse.hoverAlt}",
"type": "color"
},
"border-active": {
Expand Down
28 changes: 28 additions & 0 deletions data/tokens/Modes/light.json
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,19 @@
}
}
},
"defaultAlt": {
"value": "{base.color.interactive.monochrome.inverse.active}",
"type": "color",
"$extensions": {
"studio.tokens": {
"modify": {
"type": "alpha",
"value": "0.67",
"space": "lch"
}
}
}
},
"hover": {
"value": "{base.color.interactive.monochrome.inverse.active}",
"type": "color",
Expand All @@ -624,6 +637,21 @@
}
}
},
"hoverAlt": {
"value": "{base.color.interactive.monochrome.inverse.active}",
"type": "color",
"$extensions": {
"studio.tokens": {
"modify": {
"type": "alpha",
"value": "{base.color.modifiers.button.hoverAlt} ",
"space": "lch",
"color": "{base.color.modifier.contrastMore}"
}
}
},
"description": "Accordion and menu bg on hover\n"
},
"withActive": {
"value": "{base.color.generic.content.standard.extreme}",
"type": "color"
Expand Down

0 comments on commit 623b9a2

Please sign in to comment.