Foundations
Typography
Inter for text and JetBrains Mono for code, self-hosted in the kit. An application scale for screens of work, a fluid display scale for websites, and .kui-prose for long reading.
Examples
Headings and display text
Use a real heading element for structure and a class for size: <h2 class="kui-h1"> is right when the visual size and the outline differ. The display sizes grow from a phone to a wide screen.
Eyebrow · section label
Display
Heading one
Heading two
Heading three
Heading four
Heading five
A lead paragraph introduces a page in one or two sentences, in the muted colour and a size between body and heading.
<div class="kui-stack kui-gap-3">
<p class="kui-eyebrow">Eyebrow · section label</p>
<p class="kui-display">Display</p>
<h2 class="kui-h1">Heading one</h2>
<h3 class="kui-h2">Heading two</h3>
<h4 class="kui-h3">Heading three</h4>
<h5 class="kui-h4">Heading four</h5>
<h6 class="kui-h5">Heading five</h6>
<p class="kui-lead">A lead paragraph introduces a page in one or two sentences, in the muted colour and a size between body and heading.</p>
</div>
A public site: the first screen heading, the label and a large figure
A business site sets its first heading bigger than an application does: .kui-h1--hero is 34 pixels on a phone and 64 on a wide screen. The label over a heading, .kui-eyebrow--brand, is in the body font and the theme’s label colour, a brand tone. .kui-figure sets a phone number or a price big in the display font; add --tabular to line figures up in a column. A theme may name its own fonts and the heading colour: see Themes.
<div class="kui-stack kui-gap-3" lang="sr-Latn">
<p class="kui-eyebrow kui-eyebrow--brand">Pekara u Žablju</p>
<p class="kui-h1 kui-h1--hero">Hleb iz peći na drva, svako jutro</p>
<a class="kui-figure" href="tel:+381211234567">021 123 4567</a>
</div>
Text helpers
Body text is 16 pixels on a website and 14 in dense application screens (--kui-text-md).
Muted text for secondary information.
Faint, small text for metadata: updated 27 November 2026.
Tabular numbers line up: 1 284,50 · 96,00 · 12 450,75
Press Ctrl + K to open the commands, or read the section on links.
<div class="kui-stack kui-gap-2">
<p>Body text is 16 pixels on a website and 14 in dense application screens (<code class="kui-code">--kui-text-md</code>).</p>
<p class="kui-text-muted">Muted text for secondary information.</p>
<p class="kui-text-faint kui-text-sm">Faint, small text for metadata: updated 27 November 2026.</p>
<p class="kui-nums">Tabular numbers line up: 1 284,50 · 96,00 · 12 450,75</p>
<p>Press <kbd class="kui-kbd">Ctrl</kbd> + <kbd class="kui-kbd">K</kbd> to open the commands, or read <a class="kui-link" href="#typography-links">the section on links</a>.</p>
</div>
Prose for articles
One class on the container styles every element inside it, with an even rhythm and a measure of about 68 characters.
Kako da registrujete preduzetničku radnju
Registracija se podnosi Agenciji za privredne registre. Prijava je besplatna za preduzetnike koji je podnose elektronski, a rešenje stiže u roku od pet radnih dana. Više u vodiču korak po korak.
- lična karta ili pasoš;
- adresa sedišta i šifra delatnosti;
- poslovno ime, na primer „Đorđević i Šćepanović“.
Die Datenschutzgrundverordnung gilt auch für Kleinunternehmen.
Rokovi
| Korak | Dani |
|---|---|
| Prijava | 1 |
| Rešenje | 5 |
curl -s https://example.rs/api/status
<div class="kui-prose" id="typography-links">
<h2>Kako da registrujete preduzetničku radnju</h2>
<p>Registracija se podnosi Agenciji za privredne registre. Prijava je besplatna za <strong>preduzetnike</strong> koji je podnose elektronski, a rešenje stiže u roku od pet radnih dana. Više u <a href="#typography-links">vodiču korak po korak</a>.</p>
<ul><li>lična karta ili pasoš;</li><li>adresa sedišta i šifra delatnosti;</li><li>poslovno ime, na primer „Đorđević i Šćepanović“.</li></ul>
<blockquote><p>Die Datenschutzgrundverordnung gilt auch für Kleinunternehmen.</p><footer>Bundesbeauftragter für den Datenschutz</footer></blockquote>
<h3>Rokovi</h3>
<table><thead><tr><th>Korak</th><th class="kui-num">Dani</th></tr></thead><tbody><tr><td>Prijava</td><td class="kui-num">1</td></tr><tr><td>Rešenje</td><td class="kui-num">5</td></tr></tbody></table>
<pre tabindex="0"><code>curl -s https://example.rs/api/status</code></pre>
</div>
Every script the products use
Čačak, Šabac, Đakovica, Žitište, Ćuprija
Чачак, Шабац, Ђаковица, Житиште, Ћуприја
Größe, Straße, Übermäßig, Ärger
Åtta älgar på ön
Ça, être, où, Noël, cœur
Ação, coração, pão, avó
设计系统让每个产品看起来一致。
<div class="kui-grid kui-grid--sm">
<p lang="sr-Latn">Čačak, Šabac, Đakovica, Žitište, Ćuprija</p>
<p lang="sr-Cyrl">Чачак, Шабац, Ђаковица, Житиште, Ћуприја</p>
<p lang="de">Größe, Straße, Übermäßig, Ärger</p>
<p lang="sv">Åtta älgar på ön</p>
<p lang="fr">Ça, être, où, Noël, cœur</p>
<p lang="pt">Ação, coração, pão, avó</p>
<p lang="zh">设计系统让每个产品看起来一致。</p>
</div>
Classes and attributes
.kui-display, .kui-h1 … .kui-h5- Heading sizes. Display and h1 to h3 are fluid.
.kui-lead, .kui-eyebrow- The introduction of a page; the small label above a heading.
.kui-h1--hero- The first heading of a public site: 34 pixels on a phone, 64 on a wide screen (--kui-text-display-hero).
.kui-eyebrow--brand- The label of a public site: the body font in the theme’s label colour (--kui-color-label). Keep it to three words.
.kui-figure, --tabular- A large figure, a phone number or a price, in the display font (--kui-text-figure). Proportional figures unless --tabular.
--kui-color-heading, --kui-weight-heading, --kui-tracking-heading- The colour, weight and letter spacing of headings. A product theme may set them; by default they are the strong text colour, bold and tight.
.kui-text-muted, -faint, -sm, -xs, .kui-mono, .kui-nums- Colour, size, the monospace face and tabular numbers.
.kui-link, --quiet- An inline link: underlined, in the accent text colour.
.kui-code, .kui-kbd- Inline code and a keyboard key.
.kui-prose, --lg, --wide- Long text: every element inside it is styled. --wide drops the measure.
--kui-text-*, --kui-leading-*, --kui-weight-*, --kui-measure- The tokens behind all of it.
Accessibility
- Headings follow the outline of the page; never skip from h1 to h4 for the look, use a class instead.
- Links inside text are underlined, so they do not rely on colour.
- Text keeps 4.5:1 contrast in every theme; faint text is only for the page and surfaces 1 and 2.
- Set
langon the page and on any passage in another language; Chinese gets a taller line from it.
Do and do not
Do
- Keep body text at 16 pixels on a website and 14 or more in an application.
- Use one heading size step per level.
- Use tabular numbers in tables and totals.
Do not
- Do not set text in a series colour or the accent fill colour.
- Do not justify text; ragged right reads better.
- Do not use all capitals for more than a short label.