On this page

Code

Load the fonts, use the type tokens and turn on the OpenType features that keep order numbers and codes easy to read.

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 drop cv05, cv08, ss02 and zero, and cv05 and cv08 are 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 no cv05 or cv08, so code looks the same.
Proportional (default)

1,111.11
9,840.00
704.18

tabular-nums

1,111.11
9,840.00
704.18

FeatureWhat it doesOffOn
cv05Lowercase l with a tailIl1 · lI1Il1 · lI1
cv08Uppercase I with serifsIl1 · lI1Il1 · lI1
zeroSlashed zeroO0 · 0OO0 · 0O
cv05 cv08 zeroAll three, for codes people read and typeSKU-I01l0OSKU-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

TokenValueDescription
--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-sansInter, "Noto Sans", system-ui, sans-serifAll 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, monospaceCode, IDs, keys and token names.
--bh-font-size-1000.75rem12 px. Small body, small labels, captions.
--bh-font-size-2000.875rem14 px. Default UI text, labels, code, smallest heading.
--bh-font-size-3001rem16 px. Reading text, card titles.
--bh-font-size-4001.25rem20 px. Section headings.
--bh-font-size-5001.5rem24 px. Page titles.
--bh-font-size-6002rem32 px. Large titles.
--bh-font-size-7003rem48 px. Display, marketing only.
--bh-font-size-8003.75rem60 px. Display, marketing only.
--bh-font-size-9004.5rem72 px. Display, marketing only.
--bh-font-weight-regular400Body text.
--bh-font-weight-medium500Labels: buttons, form labels, tabs, menu items.
--bh-font-weight-semibold600Headings.
--bh-font-weight-bold700Display 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-serif72/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-serif60/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-serif48/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-serif32/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-serif24/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-serif20/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-serif16/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-serif14/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-serif16/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-serif14/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-serif12/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-serif14/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-serif12/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, monospace14/20. Code blocks, IDs, keys, JSON. Same size as body.default: JetBrains Mono and Inter have the same x-height. Vietnamese: same line height.