FigmaToCode icon indicating copy to clipboard operation
FigmaToCode copied to clipboard

[bug]: Issues when generating tailwind classes with multiple shadows

Open cpaczek opened this issue 5 months ago • 1 comments

When you have multiple shadows on an element in figma and you generate the tailwind code it attaches 2 shadow- classes however only 1 can ever be applied to an element.

Image Image

They should be combined, like so

Before: shadow-[0px_4px_6px_0px_rgba(169,169,169,0.25)] shadow-[inset_0px_2px_0px_0px_rgba(255,255,255,0.40)]

After: shadow-[0px_4px_6px_0px_rgba(169,169,169,0.25),inset_0px_2px_0px_0px_rgba(255,255,255,0.40)]

cpaczek avatar Jul 08 '25 00:07 cpaczek

nice catch, thanks!

bernaferrari avatar Sep 11 '25 16:09 bernaferrari