Skip to content

Commit 510208b

Browse files
add support to inset shadow
1 parent c3fa2d1 commit 510208b

File tree

1 file changed

+2
-1
lines changed
  • packages/figma-widget/src/widget/modules/design-tokens/extractors

1 file changed

+2
-1
lines changed

packages/figma-widget/src/widget/modules/design-tokens/extractors/effect-style.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const extractVariableAlias = async (
3030

3131
async function extractEffect(effect: Effect): Promise<ShadowValue | null> {
3232
switch (effect.type) {
33+
case 'INNER_SHADOW':
3334
case 'DROP_SHADOW': {
3435
const boundVariables = await extractVariableAlias(effect.boundVariables);
3536
return {
@@ -58,10 +59,10 @@ async function extractEffect(effect: Effect): Promise<ShadowValue | null> {
5859
},
5960
}
6061
: {}),
62+
inset: effect.type === 'INNER_SHADOW',
6163
} satisfies ShadowValue;
6264
}
6365
case 'BACKGROUND_BLUR':
64-
case 'INNER_SHADOW':
6566
case 'LAYER_BLUR':
6667
default:
6768
return null;

0 commit comments

Comments
 (0)