create a variables css custom code example
Example 1: variables css
:root {
--main-bg-color: brown;
}
.uno {
color: white;
background-color: var(--main-bg-color);
margin: 10px;
width: 50px;
height: 50px;
display: inline-block;
}
Example 2: how to use variables in css
:root {
--clr-primary-1: hsl(205, 86%, 17%);
}
.container{
background-color: var(--clr-primary-3);
}