Skip to content

Commit

Permalink
Component tokens update (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
davyd-akamai committed Jun 5, 2024
1 parent a61aeaf commit 99fa01f
Show file tree
Hide file tree
Showing 10 changed files with 149 additions and 87 deletions.
1 change: 1 addition & 0 deletions tokens/$metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"components/search/search",
"components/sideNavigation/sideNavigation",
"components/select/select",
"components/select/linkSelect",
"components/sidePanel/sidePanel",
"components/stepper/stepper",
"components/switch/switch",
Expand Down
65 changes: 14 additions & 51 deletions tokens/$themes.json

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions tokens/components/calendar/calendar.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@
"value": "{alias.border.normal}",
"type": "color"
},
"text": {
"value": "{alias.content.text.primary.default}",
"type": "color"
},
"icon": {
"value": "{alias.content.icon.primary.default}",
"type": "color"
},
"text": {
"default": {
"value": "{alias.content.text.primary.default}",
"type": "color"
},
"disabled": {
"value": "{alias.content.text.primary.disabled}",
"type": "color"
}
},
"selectedItem": {
"text": {
"value": "{alias.content.text.base}",
Expand Down
14 changes: 7 additions & 7 deletions tokens/components/groupSelect/groupSelect.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -50,7 +50,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -76,7 +76,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -102,7 +102,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -120,7 +120,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -146,7 +146,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -172,7 +172,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
}
Expand Down
4 changes: 4 additions & 0 deletions tokens/components/label/label.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"icon": {
"value": "{alias.content.icon.primary.default}",
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
}
}
Expand Down
62 changes: 62 additions & 0 deletions tokens/components/select/linkSelect.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"component": {
"linkSelect": {
"default": {
"text": {
"value": "{alias.content.text.link.default}",
"type": "color"
},
"icon": {
"value": "{alias.content.icon.primary.default}",
"type": "color"
}
},
"hover": {
"text": {
"value": "{alias.content.text.link.hover}",
"type": "color"
},
"icon": {
"value": "{alias.content.icon.primary.hover}",
"type": "color"
}
},
"filled": {
"text": {
"value": "{alias.content.text.link.default}",
"type": "color"
},
"icon": {
"value": "{alias.content.icon.primary.default}",
"type": "color"
}
},
"disabled": {
"text": {
"value": "{alias.content.text.primary.disabled}",
"type": "color"
},
"icon": {
"value": "{alias.content.icon.primary.disabled}",
"type": "color"
}
},
"focus": {
"text": {
"value": "{alias.content.text.link.default}",
"type": "color"
},
"icon": {
"value": "{alias.content.icon.primary.default}",
"type": "color"
}
},
"readOnly": {
"text": {
"value": "{alias.content.text.primary.default}",
"type": "color"
}
}
}
}
}
24 changes: 17 additions & 7 deletions tokens/components/select/select.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -49,7 +49,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -75,7 +75,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -101,7 +101,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -127,7 +127,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -153,7 +153,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -179,7 +179,17 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
"readOnly": {
"background": {
"value": "{alias.interaction.background.primary}",
"type": "color"
},
"text": {
"value": "{alias.content.text.primary.default}",
"type": "color"
}
}
Expand Down
16 changes: 16 additions & 0 deletions tokens/components/tabs/tabs.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"value": "{alias.content.text.primary.default}",
"type": "color"
},
"icon": {
"value": "{alias.content.icon.primary.default}",
"type": "color"
},
"border": {
"value": "{alias.interaction.border.disabled}",
"type": "color"
Expand All @@ -16,6 +20,10 @@
"value": "{alias.content.text.link.hover}",
"type": "color"
},
"icon": {
"value": "{alias.content.icon.primary.hover}",
"type": "color"
},
"border": {
"value": "{alias.interaction.border.disabled}",
"type": "color"
Expand All @@ -26,6 +34,10 @@
"value": "{alias.content.text.link.default}",
"type": "color"
},
"icon": {
"value": "{alias.content.icon.primary.active}",
"type": "color"
},
"border": {
"value": "{alias.interaction.border.focus}",
"type": "color"
Expand All @@ -36,6 +48,10 @@
"value": "{alias.content.text.primary.disabled}",
"type": "color"
},
"icon": {
"value": "{alias.content.icon.primary.disabled}",
"type": "color"
},
"border": {
"value": "{alias.interaction.border.disabled}",
"type": "color"
Expand Down
18 changes: 9 additions & 9 deletions tokens/components/textArea/textArea.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -37,7 +37,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -63,7 +63,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -85,7 +85,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -107,7 +107,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
},
"icon": {
Expand Down Expand Up @@ -143,7 +143,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
}
},
Expand All @@ -165,7 +165,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
},
"icon": {
Expand Down Expand Up @@ -197,7 +197,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
},
"icon": {
Expand Down Expand Up @@ -233,7 +233,7 @@
"type": "color"
},
"infoIcon": {
"value": "{alias.content.icon.primary.default}",
"value": "{alias.content.icon.secondary.default}",
"type": "color"
},
"icon": {
Expand Down
Loading

0 comments on commit 99fa01f

Please sign in to comment.