@LeviKuhaulua
Posted
Heyo, something that saves me a lot of time and headaches because I tend to mistype stuff is to define a CSS Custom Property in the :root
element of my style or in the class name. You can define a custom property in CSS by doing the following:
:root {
--fw-large: 32px;
}
OR...
.some-class-name {
--clr-blue: hsl(178, 100%, 50%);
}
Then you can reference it by using var(name of custom property)
.
The MDN Article goes more in-depth on using CSS Custom Properties.
Have a good one!
Marked as helpful
@julianesilvac75
Posted
@LeviKuhaulua that's very helpful! Thanks for the tip :)