Drop Cap
Editorial paragraph with an oversized drop cap on the first letter.
Typography sets the tone of a page before a single word is read. A drop cap pulls the eye into the opening paragraph and gives long-form content an editorial feel with no images and no extra markup. It is a small detail that makes articles feel designed rather than dumped.
<p class="text-slate-700 dark:text-slate-300 leading-relaxed first-letter:float-left first-letter:mr-3 first-letter:text-6xl first-letter:font-bold first-letter:leading-[0.85] first-letter:text-slate-900 dark:first-letter:text-white">Typography sets the tone of a page before a single word is read. A drop cap pulls the eye into the opening paragraph and gives long-form content an editorial feel with no images and no extra markup. It is a small detail that makes articles feel designed rather than dumped.</p>
Free to use in personal and commercial projects. No attribution required.
Variants
Same component, different looks. Preview each one live and copy the code you like.
Serif editorial
The serif version suits magazines and long-form essays with a classic editorial voice.
Typography sets the tone of a page before a single word is read. A drop cap pulls the eye into the opening paragraph and gives long-form content an editorial feel with no images and no extra markup. It is a small detail that makes articles feel designed rather than dumped.
Emerald accent
Tint the cap with your brand color to tie the article into the rest of the page.
Typography sets the tone of a page before a single word is read. A drop cap pulls the eye into the opening paragraph and gives long-form content an editorial feel with no images and no extra markup. It is a small detail that makes articles feel designed rather than dumped.
Compact
The compact cap fits card excerpts and teasers where a full-size cap would overwhelm.
Typography sets the tone of a page before a single word is read. A drop cap pulls the eye into the opening paragraph and gives long-form content an editorial feel with no images and no extra markup. It is a small detail that makes articles feel designed rather than dumped.
About this drop cap
A drop cap enlarges the first letter of a paragraph and floats it into the text, a centuries-old print trick that gives articles a magazine feel. It signals start reading here more elegantly than any divider or heading decoration.
Tailwind's first-letter variant does all the work. Float-left drops the letter into the paragraph flow, mr-3 adds breathing room, and text-6xl with a tight leading sizes it to roughly three lines of body text. No extra spans or wrapper markup are needed.
Reserve the effect for the opening paragraph of long-form content. Using it on every paragraph looks noisy, and it belongs in editorial layouts far more than in dashboards or dense interface text.
Long articles need a doorway, a signal that says start reading here more elegantly than a heading or a divider. The drop cap is print's oldest trick for this: one enlarged letter floating in the paragraph's opening lines, giving the page a magazine gravity that plain text cannot match. It turns the first paragraph into an event.
Tailwind's first-letter variant does all the work with no extra markup. float-left drops the letter into the paragraph flow, mr-3 gives it breathing room, and text-6xl with tight leading sizes it to roughly three lines of body text. Because it targets the real first letter, there is no duplicated decorative element for screen readers to trip over.
Set the cap's line-height to around 0.8 so it sits on the text baseline instead of floating above it; the default line-height leaves an awkward gap. Nudge it with a negative top margin on tight leading, or the cap pushes the first line down. Color the cap with your accent for brand moments, but keep it text-colored for long reads where decoration fatigues. Never combine a drop cap with a large font-size on the whole first line; pick one emphasis, not two.
Opening with a quotation mark breaks the effect: the giant letter becomes a floating quote glyph while the real first letter sits small beside it, looking like a typo at 60 points. Either strip the opening quote from drop-cap paragraphs or style the quote separately. And watch descenders: letters like Q or J with deep tails need extra bottom margin or they crash into the second line.
Where to use it
- ✓ Blog article opening paragraphs
- ✓ Magazine style feature stories
- ✓ Newsletter introductions
- ✓ Chapter and essay openings
Customization tips
Scale the cap from text-5xl to text-7xl to match your body size, and tint it with a brand color for extra character. Pair it with a serif stack like font-serif for the classic editorial look.
Design notes
When to use
Drop caps belong on long-form editorial content, like blog articles and magazine-style pages, where they mark the true start of the piece with a classic print flourish. They work best on the first paragraph of a substantial article, paired with a serif body face for the traditional feel. One drop cap per article is the right amount.
What to avoid
Never put a drop cap on short paragraphs, because an oversized letter next to two lines of text looks like a mistake. Do not repeat it on every paragraph or subheading, since the effect dies the second time. And skip it at small text sizes, where the giant letter overwhelms the line instead of accenting it.
Accessibility
Some screen readers announce the enlarged letter separately from the word, so keep the letter as part of the real paragraph text rather than a duplicated decorative element. If you tint the cap with a brand color, check its contrast against the background.
Frequently asked questions
How do I control how many lines the drop cap spans?
Adjust the size and leading together. A larger size with leading-[0.85] spans more lines, shrinking either reduces the span. There is no line-count property, it is pure sizing.
Does the first-letter variant work in all browsers?
Yes. It compiles to the ::first-letter pseudo-element, which is universally supported in every modern browser.
Can I use a drop cap on every paragraph?
You can, but you should not. The effect works because it marks a beginning. Repeating it on every paragraph turns a clear signal into visual noise.
What is the initial-letter property and should I use it?
initial-letter sizes the drop cap by line count instead of fiddly font-size and margin math, so initial-letter 3 sinks the letter exactly three lines. It works in Safari and Chrome but Firefox still does not support it. Use it as progressive enhancement over a classic ::first-letter float fallback, which this element's first-letter variant demonstrates.
Why is my drop cap misaligned with the surrounding text?
The usual culprit is line-height: set it around 0.8 on the ::first-letter so the cap sits on the baseline instead of floating. Then tune margin-top in small steps until the top of the letter aligns with the cap height of the first line. Different fonts need different values, so re-check whenever the typeface changes.
Should I use drop caps on mobile?
Yes, but shrink them: a cap spanning three lines at desktop size can eat half a narrow screen. Drop to two lines under 640px and reduce the font-size proportionally. Keep the same color and style so the article still feels like one design across devices.
Related elements
Gradient headlines that demand attention.
Gradient Text
Eye-catching gradient headline text with background-clip.
OUTLINED
Outlined Text
Large display heading with transparent fill and a crisp text stroke outline.
Build interfaces faster.
Typewriter Effect
CSS-only tailwind typewriter effect with a blinking cursor.