diff --git a/src/transformer/shadow-css.ts b/src/transformer/shadow-css.ts index dc2c3d0..d04a170 100644 --- a/src/transformer/shadow-css.ts +++ b/src/transformer/shadow-css.ts @@ -15,6 +15,8 @@ export const shadowCss: StyleDictionary.Transform = { type: `value`, transitive: true, matcher: isShadow, - transformer: ({ value }: { value: TokenShadow }) => - `${value.offsetX || 0} ${value.offsetY || 0} ${value.blur || 0} ${value.spread || 0} ${value.color}` -} \ No newline at end of file + transformer: ({ value }: { value: string | TokenShadow }) => + typeof value === 'string' + ? value + : `${value.offsetX || 0} ${value.offsetY || 0} ${value.blur || 0} ${value.spread || 0} ${value.color}`, +}