Skip to content

Commit

Permalink
feat(data): adding badge component-specific tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
ljemmo committed Oct 26, 2023
1 parent 3c3844c commit 77184ed
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
1 change: 1 addition & 0 deletions data/tokens/$metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"Platforms/IOS/typography",
"Platforms/android/typography",
"Components/actionPopover",
"Components/badge",
"Components/button",
"Components/tab",
"Components/container",
Expand Down
12 changes: 8 additions & 4 deletions data/tokens/$themes.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"Global/box-shadow": "enabled",
"Modes/light": "source",
"Components/button": "enabled",
"Components/actionPopover": "enabled"
"Components/actionPopover": "enabled",
"Components/badge": "disabled"
},
"group": "Product"
},
Expand All @@ -32,7 +33,8 @@
"Global/typography": "enabled",
"Global/box-shadow": "enabled",
"Modes/dark": "source",
"Components/button": "enabled"
"Components/button": "enabled",
"Components/badge": "disabled"
},
"group": "Product"
},
Expand All @@ -51,7 +53,8 @@
"Global/border": "enabled",
"Global/box-shadow": "enabled",
"Modes/light": "source",
"Components/button": "enabled"
"Components/button": "enabled",
"Components/badge": "disabled"
},
"group": "Product"
},
Expand All @@ -70,7 +73,8 @@
"Global/border": "enabled",
"Global/box-shadow": "enabled",
"Modes/light": "source",
"Components/button": "enabled"
"Components/button": "enabled",
"Components/badge": "disabled"
},
"group": "Marketing"
}
Expand Down
12 changes: 12 additions & 0 deletions data/tokens/Components/badge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"badge": {
"bg-enabled": {
"value": "{base.color.status.notify.default}",
"type": "color"
},
"label-enabled": {
"value": "{base.color.selectable.monochrome.standard.default}",
"type": "color"
}
}
}
6 changes: 6 additions & 0 deletions data/tokens/Modes/light.json
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,12 @@
"value": "{base.color.content.standard.fgFirm}",
"type": "color"
}
},
"notify": {
"default": {
"value": "{origin.colors.brightOrange}",
"type": "color"
}
}
},
"modifiers": {
Expand Down

0 comments on commit 77184ed

Please sign in to comment.