CSS Variables 101

CSS Variables 101 Introduction CSS variables are values that are defined in a CSS document with the goal of reusability and reducing redundancy in CSS values. Here is a basic example. .section { border: 2px solid #235ad1; } .section-title { color: #235ad1; } .section-title::before { content: “”; display: inline-block; width: 20px; height: 20px; background-color: #235ad1; …

CSS Variables 101 Read More »