onlook-dev / onlook

The open source, local-first Figma for React. Design directly in your live React app and publish your changes to code.
https://onlook.dev
Apache License 2.0
3.79k stars 234 forks source link

[bug] Writing style should default to root, not instance #770

Closed Kitenite closed 1 week ago

Kitenite commented 1 week ago

Describe the bug

Styles are written to the className attributes which often is not passed to the root. Hence, it should be written to the root code block directly in most cases. Future enhancements should detect when className is passed through instance and make the determination there.

Everything else should remain the same.