Typography

Typography styles for consistent and beautiful text rendering across your application. Use the prose class for rich content or individual element styles for more control.

Preview

Article Title

Your content goes here with proper typography styles applied automatically.

The prose class handles all the spacing, sizing, and styling for you.

Builder

Container
Options

Prose Class Styles

Apply the prose class to a container for automatic styling of all typography elements with proper spacing, sizing, and colors.

ElementApplied Classes
h1scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl
h2scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight
h3scroll-m-20 text-2xl font-semibold tracking-tight
h4scroll-m-20 text-xl font-semibold tracking-tight
h5scroll-m-20 text-lg font-semibold tracking-tight
h6scroll-m-20 text-base font-semibold tracking-tight
pleading-7 text-on-muted (mt-2 md:mt-3 if not first)
ul/olmy-6 ml-6 list-disc/list-decimal space-y-2
afont-medium text-primary underline underline-offset-4 hover:text-primary/80
coderelative rounded bg-muted text-on-muted px-[0.3rem] py-[0.2rem] font-mono text-sm
blockquotemy-6 border-l-4 border-muted pl-6 italic text-on-muted
strongfont-semibold

Base Typography Styles

Without the prose class, these base styles are applied globally to maintain consistent typography.

Element/ClassApplied Classes
h1text-4xl font-extrabold lg:text-5xl
h2text-3xl font-semibold
h3text-2xl font-semibold
h4text-xl font-semibold
h5text-lg font-semibold
h6text-base font-semibold
strongfont-semibold
.linkhover:text-primary underline underline-offset-4
.tinytext-xs font-medium leading-none
.leadtext-lg
.labeltext-sm select-none font-medium
blockquotemt-2 border-l-2 pl-6 italic

💡 When to use Prose

Use the prose class for rich text content like blog posts, articles, and documentation where you need consistent spacing and styling for all typography elements.

✨ Utility Classes

Use utility classes like lead, tiny, and label for specific text elements that need custom styling outside of prose containers.