Typography
Eleven text styles, shared by the website, the exported design system and Figma.
Text styles
Pick a style by its role. Heading names describe size, not the HTML level — choose the level separately.
| Style | Size / line height | Weight | Purpose | Class |
|---|---|---|---|---|
| Display | ||||
| SM | 60 / 68 | 600 | Display line, small | vt-display-sm |
| MD | 72 / 80 | 600 | Display line | vt-display-md |
| LG | 96 / 104 | 600 | Display line, large | vt-display-lg |
| Heading | ||||
| SM | 20 / 28 | 600 | Card heading | vt-heading-sm |
| MD | 24 / 32 | 600 | Section heading | vt-heading-md |
| LG | 32 / 40 | 600 | Page heading | vt-heading-lg |
| XL | 48 / 56 | 600 | Hero heading | vt-heading-xl |
| Body | ||||
| SM | 14 / 20 | 400 | Compact interface text | vt-body-sm |
| MD | 16 / 24 | 400 | Body text | vt-body |
| LG | 18 / 28 | 400 | Intro paragraphs | vt-body-lg |
| Label | ||||
| SM | 12 / 16 | 500 | Small controls | vt-label-sm |
| MD | 14 / 20 | 500 | Regular buttons and labels | vt-label-md |
| LG | 16 / 24 | 500 | Large controls | vt-label-lg |
| Caption | ||||
| Caption | 12 / 16 | 400 | Supporting captions | vt-caption |
| Overline | ||||
| Overline | 12 / 16 | 400 | Group headings and eyebrows | vt-overline |
Field Label
vt-label is the label above a field (Body/SM, primary color); vt-label vt-label-sm is the small one (Caption) for small fields.
<div class="vt-field">
<label class="vt-label" for="workspace">Workspace name</label>
<input id="workspace" type="text" class="vt-input" />
</div>
<!-- Compact: a small label over a small input -->
<div class="vt-field">
<label class="vt-label vt-label-sm" for="owner">Owner</label>
<input id="owner" type="text" class="vt-input vt-input-sm" />
</div>
| Class | Type | Description |
|---|---|---|
vt-label |
Alias | Body/SM in the primary text color — the label above a control, linked by for/id |
vt-labelvt-label-sm |
Alias | Caption — a small label over a small control (vt-input-sm), in filter bars and dense panels |
vt-field |
Layout | Stacks the label, the control and the line under it, 8px apart (see Form) |
Overline
Capitals come from the style, so the markup keeps normal case and screen readers read words. vt-section-label is the muted Overline that heads a group.
New in 1.2
Themes travel to Figma
Account
- Profile
<p class="vt-overline">New in 1.2</p>
<h3 class="vt-heading-sm">Themes travel to Figma</h3>
<!-- Heading a list -->
<div class="vt-list-section">
<h3 class="vt-section-label">Account</h3>
<ul class="vt-list">…</ul>
</div>
<!-- Heading a sidebar group -->
<div class="vt-side-nav-group">
<p class="vt-section-label">Main</p>
<a href="…" class="vt-nav-item vt-active">…</a>
</div>
| Class | Type | Description |
|---|---|---|
vt-overline |
Style | Overline — 12px, set in capitals; an eyebrow above a title. Takes the color of its context |
vt-section-label |
Alias | Overline in the muted text color — the heading of a group: list sections, sidebar groups, a table of contents |
vt-list-section>vt-section-label |
Context | Above a list: 16px in from the sides, in line with the rows |
vt-side-nav-group>vt-section-label |
Context | In a sidebar group: 8px 12px padding, in line with the nav items |
Customization
Each style is four custom properties; change one and every component follows.
:root {
--vt-type-label-md-size: 0.875rem;
--vt-type-label-md-line-height: 1.25rem;
--vt-type-label-md-weight: 500;
--vt-type-label-md-tracking: 0em;
}
Code text uses vt-code and vt-code-sm, outside the fifteen styles. On a phone, below the md breakpoint, Heading/XL and the Display styles drop one step. vt-h1…vt-h6 are older names for the styles in the table.