CSS Variables
CSS custom properties store reusable values. Define with --name: value and read with var(--name). Define globals on :root.
CSS custom properties store reusable values. Define with --name: value and read with var(--name). Define globals on :root.
:root { --primary: #0d6efd; --space: 1rem; --radius: 8px; }
.btn { background: var(--primary); padding: var(--space); border-radius: var(--radius); }
Define global variables on :root so they cascade to every element.