You most likely already know about CSS variables. If not, go ahead and DuckDuckGo it (seriously trying to make that a thing) and then come back.
Great.
So you know about this
:root {
--my-var: 42
}.nice {
var(--my-var)
}
You most likely already know about CSS variables. If not, go ahead and DuckDuckGo it (seriously trying to make that a thing) and then come back.
Great.
So you know about this
:root {
--my-var: 42
}.nice {
var(--my-var)
}