Skip to main content

no-whitespace-in-unquoted-family

Disallow unquoted multi-word font-family names.

Rule catalog ID: R014

Targeted pattern scopeโ€‹

  • font-family declaration values in regular rules and @font-face.

What this rule reportsโ€‹

  • Unquoted family tokens containing whitespace.

Why this rule existsโ€‹

Quoted multi-word names are clearer and avoid parser/tooling ambiguity.

โŒ Incorrectโ€‹

.title {
font-family: Open Sans, system-ui;
}

โœ… Correctโ€‹

.title {
font-family: "Open Sans", system-ui;
}

Further readingโ€‹