Selectors and variables
#Set reusable colors and style elements with a class.
:root { --accent: #3fe6d0; --ink: #f3f8ff; }
.demo-link { color: var(--accent); }
body { color: var(--ink); background: #050b14; }Practical useKeep a demo interface aligned with your project’s colors.
Common mistakesSpecificity and source order affect which rule wins. Variables are inherited unless overridden.