Skip to content
loseta

Guidelines

Typography

loseta ships type tokens, not a prose plugin. Components pick from the same scale; long-form prose stays consumer CSS.

Guidelines, not a registry item. shadcn's typography page maps to this page. There is no typography class to install.

Type scale

Type tokens and their intended use
TokenSizeUse
--text-4xl2.25remMarketing display
--text-3xl1.875remPage titles
--text-2xl1.5remSection titles
--text-xl1.25remSubsections
--text-lg1.125remQuestionnaire legends
--text-base1remLong-form body and mobile inputs
--text-sm0.875remComponent text and menu items
--text-xs0.75remLabels, metadata and badges

Every token has a paired line height token: --text-sm pairs with--text-sm--line-height. Use the pair; do not set a size and leave the line height at the browser default.

Specimen

Build with native CSS

A registry of components, not a runtime

The base scale keeps long-form reading comfortable. Interface text uses the smaller sizes so controls stay compact.

Secondary text uses --muted-foreground and --text-sm.

Metadata label

Fonts

The reset reads --font-sans for body text and --font-monofor code and keyboard hints. Both fall back to the platform UI and monospace stacks, so a project without font tokens still renders correctly. The docs use Inter; the registry does not ship a font file.

css
:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

Interface rules

  • UI text defaults to --text-sm. Inputs and textareas use--text-base below 48rem and --text-sm above it, so mobile Safari does not zoom on focus.
  • Card, dialog and alert-dialog titles use --text-base; alert, popover, empty and field titles use --text-sm.
  • Badges, keyboard hints, tooltips and navigation descriptions use--text-xs. Menu headings and listbox group labels use the same size.
  • Questionnaires use --text-lg for the question legend and--text-sm for descriptions and choices.
  • Keep long-form prose near a 65–75 character measure; use your own prose layer.

Prose is consumer CSS

The registry styles component anatomy. It does not ship a .prose class, heading margins for articles or an automatic vertical rhythm. Use your site's prose styles or a content plugin, and keep the registry tokens for size and color.

css
/* Site prose, not registry CSS */
.prose :is(h2, h3) {
  margin-block-start: 2em;
  font-size: var(--text-2xl);
  line-height: var(--text-2xl--line-height);
}

Code and keys

Code uses --font-mono. Inline code inherits the surrounding size; the.code-block component owns block code and its line-height. Keyboard hints use .kbd.

Press ⌘K to open the command menu.

loseta is MIT licensed. Built with native CSS, no runtime. Inspired byshadcn/ui.