Skip to Content

Fonts

Clover sets no font and no base size. It takes both from your page.

Font
/* Clover sets no font: its text takes your page's. */
html {
  font-family: "Google Sans", sans-serif;
}

Your page’s size

Clover sizes its text, spaces and controls on a golden scale from your page’s 1rem. That’s the root’s font size, 16px unless your page or the browser sets another. Change it, and Clover scales with it:

html { font-size: 112.5%; }

Text sizes

Clover’s text inherits your page’s font size, or takes one of four sizes a little above or below your 1rem. Each is a custom property you can set. Change your 1rem in the table: the text sizes follow, and so does the Viewer above it.

VariableSizeAt 16pxWhat it sizes
Your page
HTML page1rempxYour page’s root font-size
Text
--clover-text-xs0.764rem12.2pxA badge: a duration on a thumbnail
--clover-text-s0.854rem13.7pxSecondary text: times, formats, legends
Automatically inherited1rem16pxBaseline text content
--clover-text-m1.146rem18.3pxA section’s heading
--clover-text-l1.236rem19.8pxAn error’s headline, a sound Canvas’s label beside others, captions in a wide Body

Headings

Every title in Clover is a heading at its headingLevelheading-level, with the class .clover-title, such as a template’s title or the resource’s label in About. Its size is your page’s for that level. Clover gives it only a regular weight, no margin and lines a little closer than running text’s, and lets a long word wrap, all with no specificity, so your rule for that level, or for .clover-title, wins:

.clover-title:is(h2, h3) { font-size: 1.25rem; }

Set --clover-title-weight to change every title’s weight. Clover styles the Panel’s headings itself: each section’s, and those of the groups in it, such as Search’s pages.