Sourceful Energy

Typography

Font families, sizes, and weights for consistent text styling.

Font families

Sans (Satoshi)

font-sans

UI text, headings, body copy

The quick brown fox jumps over the lazy dog

Mono (JetBrains Mono)

font-mono

Code, technical values, data

const energy = 42.5 kWh

Font sizes

ClassSizeLine heightUsagePreview
text-xs12px16pxCaptions, badgesAa
text-sm14px20pxSecondary text, labelsAa
text-base16px24pxBody text (default)Aa
text-lg18px28pxLead paragraphsAa
text-xl20px28pxSection titlesAa
text-2xl24px32pxCard headingsAa
text-3xl30px36pxPage sectionsAa
text-4xl36px40pxPage titlesAa

Font weights

ClassWeightUsagePreview
font-normal400Body textThe quick brown fox
font-medium500Labels, emphasisThe quick brown fox
font-semibold600Headings, buttonsThe quick brown fox
font-bold700Strong headingsThe quick brown fox

Heading scale

Heading 1 (text-4xl)

Heading 2 (text-3xl)

Heading 3 (text-2xl)

Heading 4 (text-xl)

Body text using default text-base size. This is how regular paragraph content appears in the design system with proper line height for readability.

Secondary text using text-sm with muted foreground color.

Usage

{/* Headings */}
<h1 className="text-4xl font-bold tracking-tight">Page Title</h1>
<h2 className="text-2xl font-semibold">Section</h2>

{/* Body text */}
<p className="leading-7">Paragraph content...</p>
<p className="text-sm text-muted-foreground">Secondary text</p>

{/* Code/technical */}
<code className="font-mono text-sm">42.5 kWh</code>