Everything you need to set Beehexa type in code. Use the tokens, and the fonts, fallbacks and features come with them.
Font stacks
Use the tokens, not your own lists.
/* font.family.sans */
font-family: Inter, "Noto Sans", system-ui, sans-serif;
/* font.family.mono */
font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
Noto Sans is the fallback because it covers Vietnamese and ₫ and is almost the same size as Inter, so a page that falls back keeps its layout.
Getting the fonts
- On the web, self-host the fonts. Use the Inter build from the Google Fonts repository (
github.com/google/fonts,ofl/inter): it is hinted for small text on Windows and keeps every OpenType feature. Don’t link the Google Fonts API: its files dropcv05,cv08,ss02andzero, andcv05andcv08are on by default (see Numbers and codes). This site serves those files, cut into Latin, Latin Extended and Vietnamese subsets. Each file carries weights 400 to 700 only, the range of the weight tokens, so it is about 30% smaller; a weight outside that range draws at the nearest one. - On your computer, for Figma, slides and documents, install Inter from Google Fonts and JetBrains Mono from JetBrains. The Google Fonts build of Inter also avoids clipped accents in older Windows apps such as Office.
- Both licences allow use in products, documents and logos.
Numbers and codes
cv05 and cv08 are on for all Inter text. They give lowercase l a tail and uppercase I serifs, so l, I and 1 never look alike in names, IDs and keys. Turn the rest on where they help; leave body text as it is.
- Tables and changing values: use tabular figures (
font-variant-numeric: tabular-nums), so digits line up in columns and counters don’t jitter. - Codes people read or type, such as order numbers, SKUs and API keys: add the slashed zero (
zero) to Inter, or set them in JetBrains Mono (code.default). JetBrains Mono has nocv05orcv08, so code looks the same.
1,111.11
9,840.00
704.18
tabular-nums1,111.11
9,840.00
704.18
| Feature | What it does | Off | On |
|---|---|---|---|
cv05 | Lowercase l with a tail | Il1 · lI1 | Il1 · lI1 |
cv08 | Uppercase I with serifs | Il1 · lI1 | Il1 · lI1 |
zero | Slashed zero | O0 · 0O | O0 · 0O |
cv05 cv08 zero | All three, for codes people read and type | SKU-I01l0O | SKU-I01l0O |
Every text style is applied with the font shorthand, and the shorthand resets font-feature-settings. So the features are set on every element from one variable, --bh-font-features; to add a feature, change the variable, not the property.
/* Base: on every element */
:root { --bh-font-features: "cv05", "cv08"; }
*, ::before, ::after { font-feature-settings: var(--bh-font-features) !important; }
/* Opt in where needed */
.table-number { font-variant-numeric: tabular-nums; }
.code-value { --bh-font-features: "cv05", "cv08", "zero"; }
Tokens
| Token | Value | Description |
|---|---|---|
--bh-font-features | "cv05", "cv08" | Inter character variants, on everywhere (decided 27/10/2026): cv05 gives lowercase l a tail and cv08 gives uppercase I serifs, so l, I and 1 never look alike in names, IDs and keys. The font shorthand resets font-feature-settings, so the token CSS sets them on every element. JetBrains Mono has no cv05 or cv08, so code is not affected. |
--bh-font-family-sans | Inter, "Noto Sans", system-ui, sans-serif | All interface and reading text. Noto Sans is the fallback: it covers Vietnamese and ₫ and is close to Inter in size. |
--bh-font-family-mono | "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace | Code, IDs, keys and token names. |
--bh-font-size-100 | 0.75rem | 12 px. Small body, small labels, captions. |
--bh-font-size-200 | 0.875rem | 14 px. Default UI text, labels, code, smallest heading. |
--bh-font-size-300 | 1rem | 16 px. Reading text, card titles. |
--bh-font-size-400 | 1.25rem | 20 px. Section headings. |
--bh-font-size-500 | 1.5rem | 24 px. Page titles. |
--bh-font-size-600 | 2rem | 32 px. Large titles. |
--bh-font-size-700 | 3rem | 48 px. Display, marketing only. |
--bh-font-size-800 | 3.75rem | 60 px. Display, marketing only. |
--bh-font-size-900 | 4.5rem | 72 px. Display, marketing only. |
--bh-font-weight-regular | 400 | Body text. |
--bh-font-weight-medium | 500 | Labels: buttons, form labels, tabs, menu items. |
--bh-font-weight-semibold | 600 | Headings. |
--bh-font-weight-bold | 700 | Display text only. |
--bh-font-display-large | {font.weight.bold} {font.size.900}/5rem {font.family.sans}700 4.5rem/5rem Inter, "Noto Sans", system-ui, sans-serifVietnamese (lang="vi"): 700 4.5rem/6.75rem Inter, "Noto Sans", system-ui, sans-serif | 72/80. Marketing hero. Below 768 px, use display.small. Vietnamese: 72/108. |
--bh-font-display-medium | {font.weight.bold} {font.size.800}/4.25rem {font.family.sans}700 3.75rem/4.25rem Inter, "Noto Sans", system-ui, sans-serifVietnamese (lang="vi"): 700 3.75rem/5.5rem Inter, "Noto Sans", system-ui, sans-serif | 60/68. Marketing section opener. Below 768 px, use display.small. Vietnamese: 60/88. |
--bh-font-display-small | {font.weight.bold} {font.size.700}/3.5rem {font.family.sans}700 3rem/3.5rem Inter, "Noto Sans", system-ui, sans-serifVietnamese (lang="vi"): 700 3rem/4.5rem Inter, "Noto Sans", system-ui, sans-serif | 48/56. Marketing headline. Below 768 px, use heading.xlarge. Vietnamese: 48/72. |
--bh-font-heading-xlarge | {font.weight.semibold} {font.size.600}/2.5rem {font.family.sans}600 2rem/2.5rem Inter, "Noto Sans", system-ui, sans-serifVietnamese (lang="vi"): 600 2rem/3rem Inter, "Noto Sans", system-ui, sans-serif | 32/40. Large title: empty states, onboarding, docs and landing sections. Vietnamese: 32/48. |
--bh-font-heading-large | {font.weight.semibold} {font.size.500}/2rem {font.family.sans}600 1.5rem/2rem Inter, "Noto Sans", system-ui, sans-serifVietnamese (lang="vi"): 600 1.5rem/2.5rem Inter, "Noto Sans", system-ui, sans-serif | 24/32. Page title, one per page. Vietnamese: 24/40. |
--bh-font-heading-medium | {font.weight.semibold} {font.size.400}/1.75rem {font.family.sans}600 1.25rem/1.75rem Inter, "Noto Sans", system-ui, sans-serifVietnamese (lang="vi"): 600 1.25rem/2rem Inter, "Noto Sans", system-ui, sans-serif | 20/28. Section and dialog titles. Vietnamese: 20/32. |
--bh-font-heading-small | {font.weight.semibold} {font.size.300}/1.5rem {font.family.sans}600 1rem/1.5rem Inter, "Noto Sans", system-ui, sans-serif | 16/24. Card, panel and drawer titles. Vietnamese: same line height. |
--bh-font-heading-xsmall | {font.weight.semibold} {font.size.200}/1.25rem {font.family.sans}600 0.875rem/1.25rem Inter, "Noto Sans", system-ui, sans-serifVietnamese (lang="vi"): 600 0.875rem/1.5rem Inter, "Noto Sans", system-ui, sans-serif | 14/20. Group titles in forms, lists and menus; banner titles. Vietnamese: 14/24. |
--bh-font-body-large | {font.weight.regular} {font.size.300}/1.5rem {font.family.sans}400 1rem/1.5rem Inter, "Noto Sans", system-ui, sans-serif | 16/24. Reading text: descriptions, help, documents, email. Vietnamese: same line height. |
--bh-font-body-default | {font.weight.regular} {font.size.200}/1.25rem {font.family.sans}400 0.875rem/1.25rem Inter, "Noto Sans", system-ui, sans-serifVietnamese (lang="vi"): 400 0.875rem/1.5rem Inter, "Noto Sans", system-ui, sans-serif | 14/20. Default UI text: table cells, inputs, messages. Vietnamese: 14/24. |
--bh-font-body-small | {font.weight.regular} {font.size.100}/1rem {font.family.sans}400 0.75rem/1rem Inter, "Noto Sans", system-ui, sans-serifVietnamese (lang="vi"): 400 0.75rem/1.25rem Inter, "Noto Sans", system-ui, sans-serif | 12/16. Secondary text: helper text, meta, timestamps, tooltips. Vietnamese: 12/20. |
--bh-font-label-default | {font.weight.medium} {font.size.200}/1.25rem {font.family.sans}500 0.875rem/1.25rem Inter, "Noto Sans", system-ui, sans-serifVietnamese (lang="vi"): 500 0.875rem/1.5rem Inter, "Noto Sans", system-ui, sans-serif | 14/20. Buttons, form labels, tabs, menu and nav items. Vietnamese: 14/24. |
--bh-font-label-small | {font.weight.medium} {font.size.100}/1rem {font.family.sans}500 0.75rem/1rem Inter, "Noto Sans", system-ui, sans-serifVietnamese (lang="vi"): 500 0.75rem/1.25rem Inter, "Noto Sans", system-ui, sans-serif | 12/16. Badges, tags, small buttons, table headers. Vietnamese: 12/20. |
--bh-font-code-default | {font.weight.regular} {font.size.200}/1.25rem {font.family.mono}400 0.875rem/1.25rem "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace | 14/20. Code blocks, IDs, keys, JSON. Same size as body.default: JetBrains Mono and Inter have the same x-height. Vietnamese: same line height. |