Skip to content

Commit

Permalink
New global gradient token and new component tokens for the Appbar and…
Browse files Browse the repository at this point in the history
… Progress Bar components that use gradients
  • Loading branch information
davyd-akamai committed Aug 22, 2024
1 parent de5f3b3 commit 64192e9
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tokens/components/bars/appbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"icon": {
"value": "{alias.content.icon.primary.default}",
"type": "color"
},
"topGradient": {
"value": "{global.color.gradient.default}",
"type": "color"
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions tokens/components/progressBar/progressBar.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
"error": {
"value": "{alias.background.negative}",
"type": "color"
},
"inProgress": {
"value": "{global.color.gradient.default}",
"type": "color"
}
}
}
Expand Down
16 changes: 16 additions & 0 deletions tokens/global/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,22 @@
"value": "#3B352B",
"type": "color"
}
},
"gradient": {
"default": {
"value": "linear-gradient(270deg, {global.color.green.70} 0%, {global.color.teal.70} 51%, {global.color.brand.70} 100%)",
"type": "color",
"$extensions": {
"studio.tokens": {
"modify": {
"type": "lighten",
"value": "0",
"space": "lch"
}
}
},
"description": "Default gradient"
}
}
},
"spacing": {
Expand Down

0 comments on commit 64192e9

Please sign in to comment.