M
M
McThinker2020-06-16 11:17:46
Sass
McThinker, 2020-06-16 11:17:46

How to make a color theme on cass?

Hello. Please tell me how to implement a color theme on the site?
As far as I understand, I create variables in sass with colors, I switch js on button click. But what's next? How will this happen when the compressed css flies to the prod?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-06-16
@McThinker

https://css-tricks.com/css-custom-properties-theming/
https://itnext.io/theming-with-css-custom-properti...
https://habr.com/en/post/ 496768/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question