Most of what people do in Beehexa is read: order numbers, statuses, error messages, settings. Clear type makes that reading fast and less tiring, in English and in Vietnamese.
Typefaces
Two typefaces cover everything: Inter for interface and reading text, JetBrains Mono for code.
Aa
Aa
Why Inter:
- Its tall x-height keeps small interface text legible.
- It covers Vietnamese in full, the ₫ sign included.
- It has OpenType features that tell look-alike characters apart, such as l, I and 1, which matters in a product full of order numbers and API keys.
- It is open source under the SIL Open Font License, so it can be self-hosted and embedded.
- It is the typeface of the Beehexa wordmark, so product text and logo belong to one family.
Inter has an optical size axis: from 32 px up it draws as Inter Display, with tighter spacing for headings. Browsers apply it on their own; leave font-optical-sizing at auto.
Text styles
Text is set with text styles, not loose sizes. Each style is one token that carries size, line height, weight and typeface together, named for its role. Fourteen styles in five groups cover every Beehexa product, document and page.
Display
Marketing hero. Below 768 px, use display.small. Vietnamese: 72/108.
Marketing section opener. Below 768 px, use display.small. Vietnamese: 60/88.
Marketing headline. Below 768 px, use heading.xlarge. Vietnamese: 48/72.
Heading
Large title: empty states, onboarding, docs and landing sections. Vietnamese: 32/48.
Page title, one per page. Vietnamese: 24/40.
Section and dialog titles. Vietnamese: 20/32.
Card, panel and drawer titles. Vietnamese: same line height.
Group titles in forms, lists and menus; banner titles. Vietnamese: 14/24.
Body
Reading text: descriptions, help, documents, email. Vietnamese: same line height.
Default UI text: table cells, inputs, messages. Vietnamese: 14/24.
Secondary text: helper text, meta, timestamps, tooltips. Vietnamese: 12/20.
Label
Buttons, form labels, tabs, menu and nav items. Vietnamese: 14/24.
Badges, tags, small buttons, table headers. Vietnamese: 12/20.
Code
Code blocks, IDs, keys, JSON. Same size as body.default: JetBrains Mono and Inter have the same x-height. Vietnamese: same line height.
- Display is for marketing pages only. Product screens start at
heading.xlarge. - Heading styles title pages, sections, cards and groups. Use one
heading.largeper page, as its title. - Body is for running text.
body.default(14 px) is the default in product UI;body.large(16 px) is for text people read rather than scan. - Label is for text on or beside controls: buttons, form labels, tabs, menus, badges.
- Code is for code, IDs and keys.
Weights
| Weight | Token | Use |
|---|---|---|
| 400 | font.weight.regular |
Body text |
| 500 | font.weight.medium |
Labels |
| 600 | font.weight.semibold |
Headings |
| 700 | font.weight.bold |
Display only |
Don’t go lighter than 400: thin strokes break up on small text. Bold body text is not a heading; for emphasis that matters to the meaning, use <strong> or <em>, so the meaning is in the text itself, not only in how it looks.
Letter spacing
Leave it at 0. Inter’s optical size axis already tightens large text, so headings need no negative tracking, and small text stays at its default spacing.
Line height
Line heights are part of each text style and sit on the 4 px grid: every one is a multiple of 4 px, so text lines up with spacing and components.
- Body and label styles use 1.3–1.5 times the size (14/20, 12/16, 16/24), which leave room between lines of interface text without spreading a paragraph apart.
- Headings tighten as they grow, to about 1.1–1.25 for display sizes, so large type stays one block.
- Vietnamese text uses taller values; see Vietnamese.
In this section
| Page | What is in it |
|---|---|
| Usage | The text style for each part of a screen, hierarchy, readability and long text. |
| Vietnamese | Taller line heights that keep Vietnamese marks whole. |
| Code | Font stacks, getting the fonts, OpenType features and the type tokens. |