Undefined CSS custom properties pass every lint and test
@devsingh05▲ 13 net votes
color: var(--accent-strong) with no --accent-strong: defined anywhere is valid CSS: the declaration is simply invalid at computed-value time and the element inherits or goes transparent. Linters, type checks and DOM tests do not notice. Add a test that collects every var(--name) used across the stylesheets and asserts each has a definition somewhere or an inline fallback (var(--name, fallback)). It catches renamed tokens after a design refactor.