Skip to content
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

Runtime Customization by CSS Variables #46

Open
shekharsom opened this issue Oct 11, 2020 · 2 comments
Open

Runtime Customization by CSS Variables #46

shekharsom opened this issue Oct 11, 2020 · 2 comments

Comments

@shekharsom
Copy link

Is there a possibility of introducing CSS Variables for the library? SCSS & its customizatoin works great but that requires compiling. If we want to introduce darkmode on runtime or custom themes at runtime, a css variable will be a great solution.

@panoply
Copy link

panoply commented Oct 11, 2020

For what it's worth, you can adjust styles by overwriting variables. If you got a little deeper you'll notice that the stylings are quite logical and very easy to adjust and everything else is prepended using cui- so you can overwrite.

@shekharsom
Copy link
Author

As I mentioned, SCSS is compiled at runtime before the app is pushed to server. It cannot be modified at runtime. This is where CSS Variables shine! They can be changed at runtime also and have cascading effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants