gooseui

Typography

Text

About

A text component with semantic variants (headings, paragraph, blockquote, code) plus gradient and highlight styles for consistent typography.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Typography to your project and fits it to your theme.

Code

How Typography is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Typography } from "@/components/ui/typography";

export default function TypographyDemo() {
  return (
    <div className="flex flex-col gap-4 p-6">
      <Typography variant="h1">The Joke Tax Chronicles</Typography>
      <Typography variant="lead">
        A modest tale of typography and taxation.
      </Typography>
      <Typography variant="gradient" as="h2" className="text-3xl font-bold">
        Gradient Heading
      </Typography>
      <Typography variant="p">
        Once upon a time, in a far-off land, there was a very lazy king who
        spent all day lounging on his throne.
      </Typography>
      <Typography variant="blockquote">
        &ldquo;After all,&rdquo; he said, &ldquo;everyone enjoys a good joke, so
        it&apos;s only fair that they should pay for the privilege.&rdquo;
      </Typography>
      <Typography variant="p">
        You can also{" "}
        <Typography as="span" variant="highlight">
          highlight
        </Typography>{" "}
        important words, or reference{" "}
        <Typography as="code" variant="code">
          const answer = 42
        </Typography>{" "}
        inline.
      </Typography>
      <Typography variant="muted">A small muted footnote.</Typography>
    </div>
  );
}

Dependencies

More by gooseui

View all
  • Border Beam

    Border Beam

    146
  • Features Grid

    Features Grid

    91

More in Text

View all
  • Motion Blur Text

    Motion Blur Text

    45
  • Rainbow Text Effect

    Rainbow Text Effect

    58
  • Text Reveal

    Text Reveal

    29
  • Blur Reveal

    Blur Reveal

    73
  • Short Slide Down

    Short Slide Down

    45
  • Apple Hello Effect

    Apple Hello Effect

    659
  • Scroll Fill Headline

    Scroll Fill Headline

    14
  • Blur Reveal

    Blur Reveal

    364