Improve Your CSS With Variables / Custom Properties

preview_player
Показать описание
Did you know CSS has built in support for variables (custom properties)? Start using them today to improve your CSS code!

Prepping for your frontend interviews? Use code "conner" for a discount on my course FrontendExpert:

Рекомендации по теме
Комментарии
Автор

This is a great way for doing a dark mode light mode setting on your site. Using a little bit of JS and you can create a button that can switch the variables colours from light to dark.

northernermusicuk
Автор

POV: designers discover variables 80 years after everyone else

spicynoodle
Автор

great info! Can I place the variable outside the selector?

tmoneyy
Автор

Why go through all this effort instead of using JS?

wij