Base

A reset that follows the theme, and the .prose class that styles plain HTML tags.

On this page

The base is the part of the UI you never call. It is a reset: plain tags such as h1, a, ul and pre have no size, margin or markers of their own, and take only what the theme gives them. Text is styled where you ask for it, with the .prose class.

Zero specificity

Every base rule sits inside :where(), which has no specificity. Any class, utility or element rule wins over it, whatever the order, so there is nothing to fight. A .button link keeps its own colour, and a class="text-sm" on a heading just works.

What the reset sets

  • Headings keep the heading font (--font-heading) and inherit their size and weight from the text around them.
  • Links inherit their colour and have no underline.
  • Lists have no markers or indent.
  • hr is a 1px line in the border colour.
  • code, kbd, samp and pre use the mono font (--font-mono).
  • The body takes the background and text colours, and every border takes --border.

Forms and tables are elements, because a control needs a label, a hint and an error around it, and a bare input or table is left plain on purpose.

Prose

The .prose class is for rendered markdown or a page of plain HTML. Inside it, headings get a size, blocks get space between them, links are underlined in --primary, lists get markers, and quotes, rules and code are styled. It styles only direct children, so a component placed among them keeps its own look.

The pages below show each tag in prose, a whole page written without classes, and the utility classes for the one-off look.