1 slot open this monthBy the makers of shadcnregistryWe built shadcnregistry. Now we build your product.Book a callCheck availability
1 slot open this monthAI features?We build AI features into your product.Book a callCheck availability
1 slot open this month๐Ÿšจ Slop police๐Ÿšจ Slop police: we clean up vibe-coded apps.Report itReport your app
shadcnregistry
shadcnregistry
RegistryHealthInspect
Terms of ServicePrivacy Policy
  1. Registries
  2. fluid
  3. Type Scale

Type Scale

item

Six type roles (display, title, subtitle, body, caption, micro), each a font size and a line height, at the default and compact steps of the size ladder. Adds text-<role> utilities and the --fs-* / --lh-* variables components read.

pnpm dlx shadcn@latest add "https://www.fluidfunctionalism.com/r/type-scale.json"
Premium blocks for shadcn/uiShadcnblocks.com ยท AffiliateExplore

Light Mode

--fs-display:

28px

--lh-display:

34px

--fs-display-compact:

24px

--lh-display-compact:

30px

--fs-title:

16px

--lh-title:

22px

--fs-title-compact:

15px

--lh-title-compact:

20px

--fs-subtitle:

14px

--lh-subtitle:

20px

--fs-subtitle-compact:

13px

--lh-subtitle-compact:

18px

--fs-body:

13px

--lh-body:

20px

--fs-body-compact:

12px

--lh-body-compact:

18px

--fs-caption:

12px

--lh-caption:

16px

--fs-caption-compact:

11px

--lh-caption-compact:

14px

--fs-micro:

11px

--lh-micro:

14px

--fs-micro-compact:

10px

--lh-micro-compact:

12px

Theme

--text-display:

var(--fs-display)

--text-display--line-height:

var(--lh-display)

--text-title:

var(--fs-title)

--text-title--line-height:

var(--lh-title)

--text-subtitle:

var(--fs-subtitle)

--text-subtitle--line-height:

var(--lh-subtitle)

--text-body:

var(--fs-body)

--text-body--line-height:

var(--lh-body)

--text-caption:

var(--fs-caption)

--text-caption--line-height:

var(--lh-caption)

--text-micro:

var(--fs-micro)

--text-micro--line-height:

var(--lh-micro)