Switch to Vanilla Extract #949
eliasljubec
started this conversation in
Feature Request
Replies: 1 comment
-
Hey @eljubec, Currently in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hello.
I saw that you are using styled-components under the hood for glustack-ui & since the project is fairly new, I would perhaps suggest that you switch to vanilla-extract since the problem with styled-components is that they recalculate styles on runtime, that means it needs to build up the stylesheet and insert it into the document, every time a component is rendered. For small applications this is not a problem, but for larger applications it affects performance.
Problem Statement
Vanilla Extract generates the CSS at build time, which improves performance compared to styled-components, which evaluate it at runtime.
Proposed Solution or API
https://vanilla-extract.style/
Alternatives
No response
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions