Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

fontFamilyNames

Control the layout of font names in font-family declaration.

Possible values:

  • "consistent": If all font names can be put on a single line, there won’t be line breaks; otherwise, there will be line breaks after each comma.
  • "wrap": Font names will be put on one line as possible. Once it exceeds printWidth, line break will be inserted where the code exceeds printWidth.

Default value is "consistent".

Example for "consistent"

Playground

main {
  font-family:
    Inter,
    Roboto,
    "Helvetica Neue",
    "Arial Nova",
    "Nimbus Sans",
    Arial,
    sans-serif;
}

Example for "wrap"

Playground

main {
  font-family:
    Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial,
    sans-serif;
}