ui-kit
ui-kit copied to clipboard
Make `<ThemeProvider>` compatible with SSR
The <ThemeProvider>
uses useLayoutEffect
to inject the css variables to the <html>
element.
While this works client-side, running effects on the server does not really work.
We should make the component compatible with SSR and/or find a way to configure theming for SSR.