CSS Variables
CSS variables allow you to define reusable values that can be used throughout your CSS code. Here's an example of using CSS variables:
:root {
--primary-color: #007bff;
--secondary-color: #6c757d;
}
.header {
background-color: var(--primary-color);
color: var(--secondary-color);
}
No comments:
Post a Comment