randomseeds logo
Random Design System

Typography

Type scale, weights, and suggested usages for headings (h1–h6), body text, links, button and form labels. Built on Tailwind's default scale with Inter as the primary typeface.

Font Family

The primary typeface is Inter, loaded via next/font/google. It provides excellent legibility at all sizes and supports variable weights.

Inter Light

Inter Regular

Inter Semibold

Inter Bold

Type Scale

text-xs0.75rem / 12pxline-height: 1rem

The quick brown fox jumps over the lazy dog

text-sm0.875rem / 14pxline-height: 1.25rem

The quick brown fox jumps over the lazy dog

text-base1rem / 16pxline-height: 1.5rem

The quick brown fox jumps over the lazy dog

text-lg1.125rem / 18pxline-height: 1.75rem

The quick brown fox jumps over the lazy dog

text-xl1.25rem / 20pxline-height: 1.75rem

The quick brown fox jumps over the lazy dog

text-2xl1.5rem / 24pxline-height: 2rem

The quick brown fox jumps over the lazy dog

text-3xl1.875rem / 30pxline-height: 2.25rem

The quick brown fox jumps

text-4xl2.25rem / 36pxline-height: 2.5rem

The quick brown fox

text-5xl3rem / 48pxline-height: 1

Quick brown fox

text-6xl3.75rem / 60pxline-height: 1

Brown fox

Suggested usage

Map semantic roles to the type scale and weights below. Use these patterns across pages, cards, dialogs, and forms for consistency.

Headings (h1–h6)

ElementSuggested classesUse for
h1text-3xl font-bold tracking-tightPage title, hero headline
h2text-2xl font-semibold tracking-tightSection title, major break
h3text-xl font-semiboldSubsection, card title (large)
h4text-lg font-semiboldDialog/sheet title, card title
h5text-base font-semiboldSmall section, list heading
h6text-sm font-semiboldOverline, compact heading

Heading preview

Page title (h1)

Section title (h2)

Subsection (h3)

Dialog or card title (h4)

Small section (h5)
Overline or compact heading (h6)

Body and supporting text

TypeSuggested classesUse for
Lead / introtext-lg text-muted-foregroundFirst paragraph under a hero, intro blurb
Bodytext-baseParagraphs, article content
Body (compact)text-smCards, dialogs, lists, tables
Description / secondarytext-sm text-muted-foregroundCard description, dialog subtitle, form hint
Caption / metadatatext-xs text-muted-foregroundTimestamps, labels, footnotes

Body and supporting preview

Lead or intro paragraph under a hero. Slightly larger, muted.

Default body paragraph for articles and long-form content.

Compact body used in cards, dialogs, and tables.

Description or secondary text (e.g. card subtitle, form hint).

Caption or metadata: date, label, footnote.

Interactive and form text

TypeSuggested classesUse for
Button labeltext-sm font-mediumButton component (default)
Form labeltext-sm font-medium leading-noneLabel component, input labels
Linktext-primary underline-offset-4 hover:underlineInline and standalone links
Nav / breadcrumbtext-sm text-muted-foreground hover:text-foregroundNavigation items, breadcrumbs

Interactive and form preview

Button label

Form label

Nav / breadcrumb

Projects / Design system

Usage

Use tracking-tight on h1 and h2 for a cleaner headline look. Use text-muted-foreground for secondary and description text so hierarchy is clear. Button and Label components in this design system already use text-sm font-medium; keep link and nav styles consistent with the table above.

Font Weights

font-normal400The quick brown fox jumps over the lazy dog
font-medium500The quick brown fox jumps over the lazy dog
font-semibold600The quick brown fox jumps over the lazy dog
font-bold700The quick brown fox jumps over the lazy dog
font-extrabold800The quick brown fox jumps over the lazy dog