New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theme using InteractiveAuto #3792
Comments
Hi @manuelelucchi , this is a common problem of SSR, that is, the corresponding theme needs to be output in the SSR stage. AntBlazor is not currently supported. You can try using JS to fix the theme. Just load different files.
|
Makes sense, thank you. Can i use the same concept for the primary color? This is more of broader question, but since we don't have the css variables yet |
We have css variables, _content/AntDesign/css/antd-design-blazor.variable.css |
Oh, is there an example somewhere? It's really an obscure topic |
Hi,
I'm experimenting with Ant and InteractiveAuto in the .NET 8 Blazor WebApp. Everything seems to work fine and fast, but I noticed that if I set the Dark Theme with the ConfigProvider (let's say it's fixed as dark), it first loads the white theme (supposedly the SSR?) and then switches to dark. This is not great to see. Is there a way to anticipate the theme loading while it's doing the SSR part?
The text was updated successfully, but these errors were encountered: