An Interest In:
Web News this Week
- May 1, 2024
- April 30, 2024
- April 29, 2024
- April 28, 2024
- April 27, 2024
- April 26, 2024
- April 25, 2024
October 25, 2016 12:30 pm GMT
Original Link: https://css-tricks.com/difference-between-types-of-css-variables/
What is the difference between CSS variables and preprocessor variables?
Variables are one of the major reasons CSS preprocessors exist at all. The ability to set a variable for something like a color, use that variable throughout the CSS you write, and know that it will be consistent, DRY, and easy to change is useful. You can use native CSS variables ("CSS Custom Properties") for the same reasons. But there are also some important differences that should be made clear.
A simple example of preprocessor variable usage is like this:…
What is the difference between CSS variables and preprocessor variables? is a post from CSS-Tricks
Original Link: https://css-tricks.com/difference-between-types-of-css-variables/
Share this article:
Tweet
View Full Article