Skip to content

font-family-name-quotes

Reports a quoted font family name that is also valid without quotes ("Arial", "Open Sans").

A family name that is a sequence of identifiers (Open Sans) needs no quotes, and quoted and unquoted names then mean the same. Quotes stay for the names that are not identifiers, such as one that starts with a digit.

To fix, delete the quotes.

Reported
...
font-family: "Arial", 'Lucida Grande', "Font 2", sans-serif;
}
css:
lint:
rules:
font-family-name-quotes: warn # off (default), warn, error
less:
lint:
rules:
font-family-name-quotes: warn # off (default), warn, error
scss:
lint:
rules:
font-family-name-quotes: warn # off (default), warn, error

Enabled by the presets: css/stylelint-standard.

Suppress one line with sudsy-disable-next-line font-family-name-quotes in a comment of the file’s language.

The same check in other tools. full: Sudsy reports what the upstream rule reports; partial: only part of it, as the last column says.

Tool Rule Match What differs
stylelint font-family-name-quotes partial does not report a name that is missing a quote it needs (always-where-required)