Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update: fixes for elevations, new border radius and background overlay tokens #56

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 30 additions & 3 deletions tokens/alias/dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,19 @@
"value": "{global.color.neutrals.white}",
"type": "color",
"description": "Tooltip background"
},
"overlay": {
"value": "{global.color.neutrals.black}",
"type": "color",
"$extensions": {
"studio.tokens": {
"modify": {
"type": "alpha",
"value": "0.84",
"space": "lch"
}
}
}
}
},
"interaction": {
Expand Down Expand Up @@ -449,25 +462,39 @@
"blur": "6",
"spread": "0",
"color": "rgba(0,0,0,0.18)",
"type": "innerShadow"
"type": "dropShadow"
},
"type": "boxShadow"
},
"s-inverted": {
"value": {
"x": "0",
"y": "-2",
"blur": "6",
"spread": "0",
"color": "rgba(0,0,0,0.18)",
"type": "dropShadow"
},
"type": "boxShadow",
"description": "Inverted shadow for elements that appear above the component"
},
"l": {
"value": [
{
"x": "0",
"y": "16",
"blur": "32",
"spread": "0",
"color": "rgba(0,0,0,0.18)"
"color": "rgba(0,0,0,0.18)",
"type": "dropShadow"
},
{
"x": "0",
"y": "4",
"blur": "8",
"spread": "0",
"color": "rgba(0,0,0,0.08)"
"color": "rgba(0,0,0,0.08)",
"type": "dropShadow"
}
],
"type": "boxShadow"
Expand Down
40 changes: 35 additions & 5 deletions tokens/alias/light.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,20 @@
"neutralsubtle": {
"value": "{global.color.neutrals.20}",
"type": "color"
},
"overlay": {
"value": "{global.color.neutrals.black}",
"type": "color",
"$extensions": {
"studio.tokens": {
"modify": {
"type": "alpha",
"value": "0.24",
"space": "lch"
}
}
},
"description": "Page dimming when the modal component is active"
}
},
"action": {
Expand Down Expand Up @@ -352,9 +366,22 @@
"blur": "6",
"spread": "0",
"color": "rgba(58,59,63,0.18)",
"type": "innerShadow"
"type": "dropShadow"
},
"type": "boxShadow",
"description": "Default shadow for components, like notification banners, dropdowns, popups;"
},
"s-inverted": {
"value": {
"x": "0",
"y": "-2",
"blur": "6",
"spread": "0",
"color": "rgba(58,59,63,0.18)",
"type": "dropShadow"
},
"type": "boxShadow"
"type": "boxShadow",
"description": "Inverted shadow for elements that appear above the component"
},
"l": {
"value": [
Expand All @@ -363,17 +390,20 @@
"y": "16",
"blur": "32",
"spread": "0",
"color": "rgba(58,59,63,0.18)"
"color": "rgba(58,59,63,0.18)",
"type": "dropShadow"
},
{
"x": "0",
"y": "4",
"blur": "8",
"spread": "0",
"color": "rgba(58,59,63,0.08)"
"color": "rgba(58,59,63,0.08)",
"type": "dropShadow"
}
],
"type": "boxShadow"
"type": "boxShadow",
"description": "Shadow for modals"
}
},
"typography": {
Expand Down
6 changes: 6 additions & 0 deletions tokens/global/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,12 @@
"type": "textCase"
}
}
},
"borderRadius": {
"none": {
"value": "0",
"type": "borderRadius"
}
}
}
}