CSS variables (also called custom properties) allow you to store values that can be reused throughout your stylesheet. They are defined with -- prefix and accessed with var().
:root { --primary: #1572B6; }
.element { color: var(--primary); }Edit the code below and click Run to see the result live.