Make your AI a shadcn expert

Shadcn Typography

React typography for headings, paragraphs, and lists. Built with TypeScript and Tailwind CSS for Next.js using Base UI — utility classes, no extra component file.

There is no Typography export. These are Tailwind classes on native elements. Use them for a docs page, a marketing block, or any long read.

Scroll to load preview...

Looking for a neobrutalism version for shadcn?

Same typography, thicker borders. The NeoBrutalism typography is the kit if you want that look.

Usage

<h1 className="scroll-m-20 text-4xl font-extrabold tracking-tight text-balance">
  Taxing Laughter
</h1>

Copy the class string onto h1h4, p, blockquote, ul, or table. Edit it in place.

Composition

h1
h2
p
blockquote

No component file. The page is the source.

h1

The page title. One per view.

Scroll to load preview...

h2

A section. Border under the line.

Scroll to load preview...

h3

A subsection.

Scroll to load preview...

h4

The smallest heading.

Scroll to load preview...

p

Body copy. leading-7 and a top margin after the first.

Scroll to load preview...

blockquote

A quoted line. Border on the start edge.

Scroll to load preview...

table

A simple HTML table. Not Table.

Scroll to load preview...

list

Disc bullets. Indent with ms-6.

Scroll to load preview...

Inline code

A short token in a sentence.

Scroll to load preview...

Lead

The first paragraph under a title. Muted, larger.

Scroll to load preview...

Large

A callout line. Semibold.

Scroll to load preview...

Small

Fine print. Semibold, compact.

Scroll to load preview...

Muted

Secondary copy. text-muted-foreground.

Scroll to load preview...

RTL

Wrap with DirectionProvider and dir="rtl". Logical classes (ms-6, border-s) flip.

Scroll to load preview...

API

There is no component API. Change the class names on the element.

Notes

Do not add a Typography.tsx

These are utilities. A wrapper component would fight every heading that already has its own size.

With other components

Questions

Was this page helpful?

Sign in to leave feedback.