less css variables code example
Example: less variables vs css variables
They are very different, main differences:
- CSS vars cascade
- CSS vars trigger repaint on change
- CSS vars can be manipulated with JS
- Less vars are more lightweight and will work regardless of browser