Typography

Previous Next

Styles for headings, paragraphs, lists, and other text elements.

We do not ship any typography styles by default. This page shows how to use utility classes to style text.

Taxing Laughter: 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

As a result, people stopped telling jokes, and the kingdom fell into a gloom.

King's Treasury People's happiness
Empty Overflowing
Modest Satisfied
Full Ecstatic

The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax.

<div>
  <h1 class="scroll-m-20 text-4xl font-extrabold tracking-tight text-balance">
    Taxing Laughter: The Joke Tax Chronicles
  </h1>
  <p class="text-muted-foreground text-xl leading-7 [&:not(:first-child)]:mt-6">
    Once upon a time, in a far-off land...
  </p>
  <h2 class="mt-10 scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight transition-colors first:mt-0">
    The King's Plan
  </h2>
  <blockquote class="mt-6 border-l-2 pl-6 italic">
    "After all," he said...
  </blockquote>
</div>

Installation

Install the typography component using the command or manual steps.

blazor-shadcn add typography

h1

Taxing Laughter: The Joke Tax Chronicles

<h1 class="scroll-m-20 text-center text-4xl font-extrabold tracking-tight text-balance">
  Taxing Laughter: The Joke Tax Chronicles
</h1>

h2

The People of the Kingdom

<h2 class="scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0">
  The People of the Kingdom
</h2>

h3

The Joke Tax

<h3 class="scroll-m-20 text-2xl font-semibold tracking-tight">
  The Joke Tax
</h3>

h4

People stopped telling jokes

<h4 class="scroll-m-20 text-xl font-semibold tracking-tight">
  People stopped telling jokes
</h4>

p

The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax.

<p class="leading-7 [&:not(:first-child)]:mt-6">
  The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax.
</p>

blockquote

"After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."
<blockquote class="mt-6 border-l-2 pl-6 italic">
  "After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."
</blockquote>

table

King's Treasury People's happiness
Empty Overflowing
Modest Satisfied
Full Ecstatic
<div class="my-6 w-full overflow-y-auto">
  <table class="w-full">...</table>
</div>

list

  • 1st level of puns: 5 gold coins
  • 2nd level of jokes: 10 gold coins
  • 3rd level of one-liners : 20 gold coins
<ul class="my-6 ml-6 list-disc [&>li]:mt-2">
  <li>1st level of puns: 5 gold coins</li>
  <li>2nd level of jokes: 10 gold coins</li>
  <li>3rd level of one-liners : 20 gold coins</li>
</ul>

Inline code

@radix-ui/react-alert-dialog
<code class="bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold">
  @radix-ui/react-alert-dialog
</code>

Lead

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

<p class="text-muted-foreground text-xl">
  A modal dialog that interrupts the user with important content and expects a response.
</p>

Large

Are you absolutely sure?
<div class="text-lg font-semibold">Are you absolutely sure?</div>

Small

Email address
<small class="text-sm leading-none font-medium">Email address</small>

Muted

Enter your email address.

<p class="text-muted-foreground text-sm">Enter your email address.</p>