Keep colours, spacing and type in a few named values, so a new look is a small edit.
The sites that are easiest to restyle share one habit: the design decisions live in a handful of named values, not in two thousand lines of copied colours.
Name the decisions
:root {
--surface: #0f131b;
--text: #f5f7fb;
--muted: #b3bccd;
--space: 1rem;
--radius: 12px;
}
.card {
padding: calc(var(--space) * 1.5);
border-radius: var(--radius);
background: var(--surface);
color: var(--text);
}Now a new brand colour is one line. Without the variables it is a search across every file, and one missed spot ends up on the live site.
Keep the selectors short
Long chains of nested selectors tie your styles to the page structure. A single class on the element is easier to move, delete and understand.
