Skip to main content

consistent-font-family-casing

Require consistent font-family casing across @font-face declarations.

Rule catalog ID: R013

Targeted pattern scopeโ€‹

  • font-family values inside @font-face declarations.

What this rule reportsโ€‹

  • Casing drift for the same logical family (Inter vs inter).

Why this rule existsโ€‹

Casing drift hides duplicates and makes font-face inventory harder to audit.

โŒ Incorrectโ€‹

@font-face {
font-family: "Inter";
}

@font-face {
font-family: "inter";
}

โœ… Correctโ€‹

@font-face {
font-family: "Inter";
}

@font-face {
font-family: "Inter";
}

Further readingโ€‹