Figma designs to Solar2D (Lua)

Hello everyone!

The question is in the title - has anyone tried to draw application designs in Figma (or similar UI making soft) and output them to valid Solar2D Lua code?

As far as I understand (after fast digging), there is no direct way. But it is probably possible to output to another language code and convert it through an AI chat?

I tried to create a plugin that exports some figma elements to lua files, it’s not 100%, but I think it helps.