
CSS Custom Properties are not Variables
12/10/20About 1 minCSSArticle(s)blogbram.uscss
CSS Custom Properties are not Variables êŽë š
CSS > Article(s)
Article(s)
CSS Custom Properties are not Variables
When mentioning CSS Custom Properties here on bram.us I do tend to name them like that â and not CSS Variables â as thatâs their official name. I always thought the terms could be used interchangeably â with CSS Variables simply being the unofficial name â but as detailed by Ć ime Vidas on Web Platform ⊠Continue reading âCSS Custom Properties are not Variablesâ

When mentioning CSS Custom Properties here on bram.us I do tend to name them like that â and not CSS Variables â as thatâs their official name.
I always thought the terms could be used interchangeably â with CSS Variables simply being the unofficial name â but as detailed by Ć ime Vidas (simevidas) on Web Platform News thatâs not the case:
Sime Vidas, Twitter (x.com)
The spec distinguishes the two terms: A custom property is not a variable, but it defines a variable. Any property can use variables with the
var()function whose values are defined by their associated custom properties.
Aha!
CSS Custom Properties are not Variables
When mentioning CSS Custom Properties here on bram.us I do tend to name them like that â and not CSS Variables â as thatâs their official name. I always thought the terms could be used interchangeably â with CSS Variables simply being the unofficial name â but as detailed by Ć ime Vidas on Web Platform ⊠Continue reading âCSS Custom Properties are not Variablesâ