Dynamically importing global css based on the server side props
Unanswered
Rex posted this in #help-forum
RexOP
Is it possible to render different global css file based on the server side props?
3 Replies
What is the use case you're trying to achieve?
In it's current state, that doesn't exactly sound super feasible
I would potentially explore an option like:
https://github.com/pacocoursey/next-themes
Which says it's for "dark mode", but you can actually configure it to use any theme/global styles you'd like, and you could programmatically set that theme in a custom provider, and/or UI components as well
https://github.com/pacocoursey/next-themes
Which says it's for "dark mode", but you can actually configure it to use any theme/global styles you'd like, and you could programmatically set that theme in a custom provider, and/or UI components as well