variables

CSS Variables in the Homebrewery

An abstract graphic with a gradient background. In the foreground rounded rectangles stand in for lines for code.

Recently someone on Discord was asking about how CSS Variables work which seemed like a good topic to cover on the blog. CSS Variables are a way to carry a defined property value to other properties across your style sheet. You define your variable with a value, and then you can use that variable elsewhere. CSS Variables in the Homebrewery