Skip to content

Commit

Permalink
- Fixes for elevations: wrong inner-shadow value was changed to a dro…
Browse files Browse the repository at this point in the history
…p-shadow;

- Added “s-inverted” elevation token for containers that appear above the component;
- “Background-overlay” alias token for page dimming (when modal is active);
- New global token “global.borderRadius.none”;
  • Loading branch information
davyd-akamai committed Jul 31, 2024
1 parent 7388c1b commit d0aecb5
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 8 deletions.
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"
}
}
}
}

0 comments on commit d0aecb5

Please sign in to comment.