geek out on Monospace

Blog

One family, one cell

Kernel Mono sets everything in Martian Mono, headings and code included. Weight, width and size do the work a second family would.

Most kits pair a text face with a monospace for code. Kernel Mono has one family: Martian Mono, under the SIL Open Font License. Headings, body text, labels and code all sit in the same grid of equal cells.

With one family, three things tell the levels apart:

  • Weight. 400 for reading, 600 for labels and names, 800 for headings. No fourth weight.
  • Width. Martian Mono has a width axis. Every big heading is set at 112.5%, its widest, so a title reads as a block. Body text stays at 100%.
  • Size. The scale runs from 14px, the floor, to the hero’s display size.

Code needs no second face, and no tint behind it either. In running text, code is set in the text’s own size and stands apart by weight alone.

:root {
  --font-sans: "Martian Mono", ui-monospace, monospace;
  --font-mono: var(--font-sans);
}