DS0
Foundations

Typography

DS0's type system uses a modular scale with Inter as the default sans-serif family.

Font Families

DS0 uses two font families:

FamilyStackUsage
SansInter, ui-sans-serif, system-ui, -apple-system, ...UI text, headings, body
MonoJetBrains Mono, ui-monospace, SFMono-Regular, ...Code, data, technical

Type Scale

xsThe quick brown fox jumps over the lazy dog12px
smThe quick brown fox jumps over the lazy dog14px
baseThe quick brown fox jumps over the lazy dog16px
lgThe quick brown fox jumps over the lazy dog18px
xlThe quick brown fox jumps over the lazy dog20px
2xlThe quick brown fox jumps over the lazy dog24px
3xlThe quick brown fox jumps over the lazy dog30px
4xlThe quick brown fox jumps over the lazy dog36px
5xlThe quick brown fox jumps over the lazy dog48px
6xlThe quick brown fox jumps over the lazy dog60px

Font Weights

WeightValueUsage
Regular400Body text, descriptions
Medium500Labels, subtle emphasis
Semibold600Headings, buttons
Bold700Strong emphasis, titles

Line Heights

NameValueUsage
none1Single-line text, badges
tight1.25Headings
snug1.375Subheadings
normal1.5Body text
relaxed1.625Long-form reading
loose2Spacious layouts

Usage

// Use the Heading component for semantic headings
<Heading as="h1" size="4xl">Page Title</Heading>
<Heading as="h2" size="2xl">Section</Heading>

// Use the Text component for body content
<Text size="base">Regular body text</Text>
<Text size="sm" className="text-muted-foreground">Caption text</Text>

// Monospace for code
<Code>npm install @ds0/tokens</Code>

On this page