Skip to content

Commit

Permalink
Fix shadow colors
Browse files Browse the repository at this point in the history
  • Loading branch information
taysea committed Nov 21, 2024
1 parent 921adbe commit 6b2c78c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion design-tokens/src/token_export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export function tokenFilesFromLocalVariables(

let obj: any = tokenFiles[fileName];

if (variable.name.includes('outline')) {
// specific to "outline" but not something like "outlineOffset"
if (/outline\//.test(variable.name)) {
const parts = variable.name.split('/');
const keyPath = parts.slice(0, -1);
const property = parts[parts.length - 1];
Expand Down
2 changes: 1 addition & 1 deletion design-tokens/tokens/semantic/color.dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@
"offsetY": "{base.dimension.100}",
"blur": "{base.dimension.100}",
"spread": 0,
"color": "{base.color.black.opacity12}"
"color": "{base.color.black.opacity24}"
}
],
"$description": "",
Expand Down
4 changes: 2 additions & 2 deletions design-tokens/tokens/semantic/color.light.json
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@
"offsetY": "{base.static.spacing.xsmall}",
"blur": "{base.static.spacing.small}",
"spread": "{base.static.spacing.none}",
"color": "{base.color.black.opacity36}"
"color": "{base.color.black.opacity12}"
}
],
"$description": "",
Expand All @@ -1314,7 +1314,7 @@
"offsetY": "{base.static.spacing.small}",
"blur": "{base.static.spacing.medium}",
"spread": "{base.static.spacing.none}",
"color": "{base.color.black.opacity36}"
"color": "{base.color.black.opacity24}"
}
],
"$description": "",
Expand Down
8 changes: 4 additions & 4 deletions design-tokens/tokens/semantic/global.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@
"$type": "shadow",
"$value": [
{
"color": "{base.color.white.100}",
"offsetX": 0,
"offsetY": 0,
"blur": 0,
"spread": "{focusIndicator.outlineOffset}"
"spread": "{focusIndicator.outlineOffset}",
"color": "{base.color.white.100}"
}
],
"$description": "",
"$extensions": {
"com.figma": {
"hiddenFromPublishing": true,
"scopes": [],
"hiddenFromPublishing": false,
"scopes": ["ALL_SCOPES"],
"codeSyntax": {}
}
}
Expand Down

0 comments on commit 6b2c78c

Please sign in to comment.