Foundation
Typography

Typography

The type system uses Inter as the primary sans-serif. All scale values are expressed in rem for accessibility (they respect the user's browser font size preference).

Font families

TokenValueUsage
--mk-font-sansInter, system-uiAll product UI text
--mk-font-monoJetBrains MonoCode, tokens, IDs
--mk-font-serifGeorgiaLong-form editorial (rare)

Install Inter from Google Fonts or bundle it locally:

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet" />

Type scale

5xl · 3rem · 48pxHeading Display
4xl · 2.25rem · 36pxHeading Large
3xl · 1.875rem · 30pxHeading Medium
2xl · 1.5rem · 24pxHeading Small
xl · 1.25rem · 20pxTitle
lg · 1.125rem · 18pxSubtitle
base · 1rem · 16pxBody — the quick brown fox jumps over the lazy dog.
sm · 0.875rem · 14pxBody Small — the quick brown fox jumps over the lazy dog.
xs · 0.75rem · 12pxCaption — metadata, labels, helper text.

Font weights

TokenValuePreview
--mk-font-weight-light300Light text sample
--mk-font-weight-regular400Regular text sample
--mk-font-weight-medium500Medium text sample
--mk-font-weight-semibold600Semibold text sample
--mk-font-weight-bold700Bold text sample
--mk-font-weight-extrabold800Extrabold text sample

Line heights

TokenValueUsage
--mk-line-height-none1Single-line UI elements (buttons)
--mk-line-height-tight1.25Headlines
--mk-line-height-snug1.375Subheadings
--mk-line-height-normal1.5Body text
--mk-line-height-relaxed1.625Long-form reading
--mk-line-height-loose2Spacious list items