CSS variables
Problem: symplifying theme changes.
Solution: use CSS variables.
:root {
--primary-color: #3498db;
--secondary-color: #2ecc71;
}
button {
background-color: var(--primary-color);
color: var(--secondary-color);
}
Problem: symplifying theme changes.
Solution: use CSS variables.
:root {
--primary-color: #3498db;
--secondary-color: #2ecc71;
}
button {
background-color: var(--primary-color);
color: var(--secondary-color);
}