Skip to content

Customise SSR - How to integrate Mantine Component library #8959

Answered by slorber
zac-az asked this question in General
Discussion options

You must be logged in to vote

@zac-az Indeed we don't have a good way for you to wire the createStylesServer thing from Mantine, that's part of the issue #3236

Similarly, we don't support Material UI and other similar frameworks based on runtime CSS-in-JS, and you'll find various issues related to MUI in particular in this repo.


In general, I'd advise you not to use any runtime CSS-in-JS lib in Docusaurus, or at least if you want to do so, SSR won't work.

The industry trend is also to progressively abandon this kind of lib in favor of no-runtime CSS-in-JS libs.

Note that collecting critical stylesheets during SSR to inline them in the final html is not really supported by React Server Components atm, and we do plan t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zac-az
Comment options

Answer selected by zac-az
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants