Skip to content

Zero runtime CSS solution #504

Answered by rtivital
pstachula-dev asked this question in Q&A
Discussion options

You must be logged in to vote

Mantine is designed to be dynamic, this allows us to support many dynamic props like styles, sx, mx, etc. I'm happy with current styles performance and not planning to rewrite the whole library to gain an unnoticeable performance boost. Zero-runtime does not provide any real benifits, see performance comparison between styled components (built with the same styles processor as emotion – stylis) and linaria – https://pustelto.com/blog/css-vs-css-in-js-perf/ – charts are almost identical.

In your applications, you can use any styling solution, Mantine components support styles overrides with anything via className and classNames props.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rtivital
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants