Files
supabase/apps/design-system/registry/default/example/typography-demo.tsx
Ivan VasilovandJordi Enric 56de26fe22 chore: Migrate the monorepo to use Tailwind v4 (#45318)
This PR migrates the whole monorepo to use Tailwind v4:
- Removed `@tailwindcss/container-queries` plugin since it's included by
default in v4,
- Bump all instances of Tailwind to v4. Made minimal changes to the
shared config to remove non-supported features (`alpha` mentions),
- Migrate all apps to be compatible with v4 configs,
- Fix the `typography.css` import in 3 apps,
- Add missing rules which were included by default in v3,
- Run `pnpm dlx @tailwindcss/upgrade` on all apps, which renames a lot
of classes
- Rename all misnamed classes according to
https://tailwindcss.com/docs/upgrade-guide#renamed-utilities in all
apps.

---------

Co-authored-by: Jordi Enric <jordi.err@gmail.com>
2026-04-30 10:53:24 +00:00

113 lines
5.2 KiB
TypeScript

export default function TypographyDemo() {
return (
<div>
<h1 className="scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl">
The Joke Tax Chronicles
</h1>
<p className="leading-7 not-first:mt-6">
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.
</p>
<h2 className="mt-10 scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight transition-colors first:mt-0">
The King&apos;s Plan
</h2>
<p className="leading-7 not-first:mt-6">
The king thought long and hard, and finally came up with{' '}
<a href="#" className="font-medium text-primary underline underline-offset-4">
a brilliant plan
</a>
: he would tax the jokes in the kingdom.
</p>
<blockquote className="mt-6 border-l-2 pl-6 italic">
&quot;After all,&quot; he said, &quot;everyone enjoys a good joke, so it&apos;s only fair
that they should pay for the privilege.&quot;
</blockquote>
<h3 className="mt-8 scroll-m-20 text-2xl font-semibold tracking-tight">The Joke Tax</h3>
<p className="leading-7 not-first:mt-6">
The king&apos;s subjects were not amused. They grumbled and complained, but the king was
firm:
</p>
<ul className="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>
<p className="leading-7 not-first:mt-6">
As a result, people stopped telling jokes, and the kingdom fell into a gloom. But there was
one person who refused to let the king&apos;s foolishness get him down: a court jester named
Jokester.
</p>
<h3 className="mt-8 scroll-m-20 text-2xl font-semibold tracking-tight">
Jokester&apos;s Revolt
</h3>
<p className="leading-7 not-first:mt-6">
Jokester began sneaking into the castle in the middle of the night and leaving jokes all
over the place: under the king&apos;s pillow, in his soup, even in the royal toilet. The
king was furious, but he couldn&apos;t seem to stop Jokester.
</p>
<p className="leading-7 not-first:mt-6">
And then, one day, the people of the kingdom discovered that the jokes left by Jokester were
so funny that they couldn&apos;t help but laugh. And once they started laughing, they
couldn&apos;t stop.
</p>
<h3 className="mt-8 scroll-m-20 text-2xl font-semibold tracking-tight">
The People&apos;s Rebellion
</h3>
<p className="leading-7 not-first:mt-6">
The people of the kingdom, feeling uplifted by the laughter, started to tell jokes and puns
again, and soon the entire kingdom was in on the joke.
</p>
<div className="my-6 w-full overflow-y-auto">
<table className="w-full">
<thead>
<tr className="m-0 border-t p-0 even:bg-muted">
<th className="border px-4 py-2 text-left font-bold [[align=center]]:text-center [[align=right]]:text-right">
King&apos;s Treasury
</th>
<th className="border px-4 py-2 text-left font-bold [[align=center]]:text-center [[align=right]]:text-right">
People&apos;s happiness
</th>
</tr>
</thead>
<tbody>
<tr className="m-0 border-t p-0 even:bg-muted">
<td className="border px-4 py-2 text-left [[align=center]]:text-center [[align=right]]:text-right">
Empty
</td>
<td className="border px-4 py-2 text-left [[align=center]]:text-center [[align=right]]:text-right">
Overflowing
</td>
</tr>
<tr className="m-0 border-t p-0 even:bg-muted">
<td className="border px-4 py-2 text-left [[align=center]]:text-center [[align=right]]:text-right">
Modest
</td>
<td className="border px-4 py-2 text-left [[align=center]]:text-center [[align=right]]:text-right">
Satisfied
</td>
</tr>
<tr className="m-0 border-t p-0 even:bg-muted">
<td className="border px-4 py-2 text-left [[align=center]]:text-center [[align=right]]:text-right">
Full
</td>
<td className="border px-4 py-2 text-left [[align=center]]:text-center [[align=right]]:text-right">
Ecstatic
</td>
</tr>
</tbody>
</table>
</div>
<p className="leading-7 not-first:mt-6">
The king, seeing how much happier his subjects were, realized the error of his ways and
repealed the joke tax. Jokester was declared a hero, and the kingdom lived happily ever
after.
</p>
<p className="leading-7 not-first:mt-6">
The moral of the story is: never underestimate the power of a good laugh and always be
careful of bad ideas.
</p>
</div>
)
}