New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Lightning as a code generator #728
Comments
It's not really designed for that. I'd recommend using postcss or another tool |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! First off, thanks for this library, it's really cool and has made its way into many of my side projects lately.
I'm currently building a Figma Codegen plugin to turn Figma's auto-generated CSS into usable code for our internal styling framework called RCSS. RCSS is a Typescript styling utility similar to Tailwind, where styles are applied via Emotion using a clean syntax like
rcss.p(8)
for padding on all sides,rcss.px(8)
for padding on left/right,rcss.backgroundColor(tokens.backgroundRoot)
for backgrounds, etc. RCSS code is typically an array of these function calls.I'm wondering if Lightning could be used basically to transform raw CSS into this custom syntax. Maybe via custom transforms?
The text was updated successfully, but these errors were encountered: