Skip to content
Ballpoint

Typography

Headings, paragraphs, quotes, lists and small print in the hand, with the pen rules drawn under and beside them.

From shadcn/ui

The Joke Tax Chronicles

Once upon a time, in a far-off land, there was a very lazy king who spent all day lounging on his throne. One day, his advisors came to him with a problem: the kingdom was running out of money.

The King's Plan

The king thought long and hard, and finally came up with a brilliant plan: he would tax the jokes in the kingdom.

"After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."

The Joke Tax

The king's subjects were not amused. They grumbled and complained, but the king was firm:

  • 1st level of puns: 5 gold coins
  • 2nd level of jokes: 10 gold coins
  • 3rd level of one-liners: 20 gold coins

Installation

pnpm dlx shadcn@latest add @ballpoint/typography

Usage

tsx
import { TypographyH1, TypographyH2, TypographyP } from "@/components/ui/typography"

<TypographyH1>Field notes</TypographyH1>
<TypographyP>The first page of a new notebook.</TypographyP>
<TypographyH2>Materials</TypographyH2>

Examples

Lead, large, small and muted

The quieter text styles for the margins of a page.

A modal dialog that interrupts the user with important content and expects a response.

Are you absolutely sure?
Email address

Enter your email address.

API reference

TypographyH1 … H4
h1 … h4

Headings. H2 is ruled off with a pen line.

TypographyP
p

Body text, with space above every paragraph but the first.

TypographyBlockquote
blockquote

A quotation with a pen line drawn down its side.

TypographyList / InlineCode
ul / code

A bulleted list, and a snippet of code in a line of text.

TypographyLead / Large / Small / Muted
p / div / small / p

Introductory text, emphasis, fine print and quiet hints.