Skip to content

Typography and density

Compact product controls, readable prose, and coordinated geometry.

Use Inter for interface text. Use JetBrains Mono for code and values where character identity or alignment matters, such as an invoice number, SKU, or job identifier.

Type roles

RoleSizeWeight
Metadata and captions12px400–500
Table headers12px600
Product body and table cells14px400
Controls and labels12–16px by size500
Product section titles16–18px600
Product page titles20–24px600
Important operational values20–28px500–600
Documentation prose15–16px400

Choose the reading profile for guides and long explanations. Keep product workflows at the compact operational baseline. Use sentence case for labels; preserve uppercase in identifiers that require it.

Spacing

Use the 4px rhythm. Common intervals are 4, 8, 12, and 16px. Use 20px for focused setup and larger gaps when the composition needs separation.

Treat control density, information density, and page composition as separate decisions. A broad data table can contain compact controls. A focused form can have breathing room around the same compact controls.

Control sizes

The control vocabulary is xs, sm, md, lg, and xl. Size coordinates height, padding, text, line height, radius, icon dimensions, and gaps. Use the live controls and recipe in a component guide to inspect its scale.

The primary Button defaults to sm. Overlay width and the sidebar's numeric width are different APIs; they do not inherit a control height.

Geometry profiles

With the default 10px radius token and a 16px browser root, use these control measurements:

SizeControl heightControl radiusGroup or sized surface radius
xs24px5px9px
sm28px6px10px
md32px8px12px
lg36px10px14px
xl40px12px16px

Button, Input, Select, and their related field controls share the control profile. Tabs and Toggle Group use that profile for their items, with 4px inset padding and an outer radius 4px larger. Match the sliding tab indicator to the tab's radius. Toolbars and calendar containers follow the group radius. Hints and notifications use the sized surface radius while their text and padding follow size.

Cards, tables, menus, popovers, documentation previews, and code blocks use rounded-lg, or 10px with the default token. Dialogs use rounded-xl, or 14px. Overlay width changes the available space; it does not change the surface radius.

Disclosure headers use the same control scale. Keep expanded content aligned with its header padding and use the matching text size. Selectable list highlights inset 1px vertically, leaving a 2px visual gap between adjacent rows. This spacing changes the painted highlight rather than the hit area or virtualized row height. Selection marks sit at the inline end.

Use fully round geometry for avatars, radio indicators, step markers, tracks, and knobs. An explicit icon or consumer shape override can use a different radius. The line tab variant uses square corners for its underline. Keep ordinary panels and fields planar.

Icons and exact data

Use Tabler for structural icons, Feather where a fallback is needed, and Simple Icons for brand marks. Give icons distinct meanings and keep one family within a visual group. Ordinary control icons are around 16px and follow their component's size recipe.

Align quantities and amounts for comparison. Use monospace only where it helps read the value. Keep totals, destructive impact counts, and quantities visible; offer a way to recover truncated labels.

Touch targets

Provide at least a 44px effective target for frequent actions on coarse pointers. Choose that behavior by pointer modality as well as viewport width. A large tablet can still require touch spacing. For a small checkbox or switch, expand the hit area around its compact visual instead of stretching the indicator or track. Keep adjacent targets from overlapping.