Problem Statement
Explain how CSS variables improve maintainability and theming.
Explanation
CSS variables store reusable values, making design updates easier. For example, changing `--primary-color` in one place updates it across the project. They also enable light/dark themes dynamically via JavaScript or user preferences.
Code Solution
SolutionRead Only
:root { --primary-color: #2196f3; } body { color: var(--primary-color); }Practice Sets
This question appears in the following practice sets:
