How to dynamically import CSS based on server side prop?
I have a scenario whereby I must decide during runtime which global CSS file to load/import into my app.
NextJs: How to dynamically import CSS based on server side prop?
Problem statement: I have a scenario whereby I must decide during runtime which global css file to load/import into my app. Suppose following global css files which set-up BRAND specific variable values: src/css/brand-a.css src/css/brand-b.css example of contents (/src/css/brand-a.css): :root { @mixin theme-brand-a; // theme-brand-a is a mixin sourcing global variables for brand-a } Attention: Notice […]