Market
Pricing
Sign inStart
Field GuideType and text
Type and text

Text shadow: when it helps and the better alternatives

The drop shadow is the most common fix for unreadable text and one of the quickest ways to make a design look dated. Here is when a shadow is the right call, and what to reach for the rest of the time.

GradientlyVerified Gradiently account·October 1, 2026·5 min read
Cover: Seafoam Vessel · GR·EJYR·VV

The short version

  • A text shadow works best as a deliberate style, such as a hard offset shadow with no blur, rather than as a fix for poor contrast.
  • Soft glows and blurry halos behind letters blur their edges and tend to make a design look cheap and dated.
  • A thin, tight shadow is a reasonable choice for captions on moving video, where the background can't be controlled.
  • To make text readable, placement, a gradient scrim, a tinted background and a heavier weight usually beat any shadow.
  • In CSS, text-shadow takes a horizontal offset, a vertical offset, an optional blur radius and a colour, and accepts several shadows separated by commas.
On this page
Types of text shadow effectWhen a text shadow helpsWhen a text shadow hurtsBetter alternatives to a text shadowText shadow in CSSHow Gradiently handles legibility

A text shadow helps in two situations: as a deliberate style, usually a hard shadow offset a few pixels with no blur, and as a thin safety edge on captions over moving video. As a rescue for words that won't read on a photo or gradient, it usually hurts: soft shadows and glows blur the very edges your eye uses to recognise letters, and they date a design instantly. For readability, move the words to a calmer area, add a gradient scrim, tint the background or choose a heavier weight.

Types of text shadow effect

Hard offset

What it looks like

A solid copy of the letters shifted down and right, no blur

Verdict

A strong style: retro, playful, poster like
Long shadow

What it looks like

Many offset copies forming a diagonal block

Verdict

A style, close to 3D extrusion; use on a few words
Subtle drop

What it looks like

Small offset, small blur, low opacity

Verdict

Barely visible on most screens; often pointless
Tight caption edge

What it looks like

Little or no offset, short blur, dark

Verdict

Fine for subtitles over unpredictable video
Soft glow or halo

What it looks like

A wide, blurry cloud of colour around each letter

Verdict

Avoid: smudges the letters and looks cheap
TypeWhat it looks likeVerdict
Hard offsetA solid copy of the letters shifted down and right, no blurA strong style: retro, playful, poster like
Long shadowMany offset copies forming a diagonal blockA style, close to 3D extrusion; use on a few words
Subtle dropSmall offset, small blur, low opacityBarely visible on most screens; often pointless
Tight caption edgeLittle or no offset, short blur, darkFine for subtitles over unpredictable video
Soft glow or haloA wide, blurry cloud of colour around each letterAvoid: smudges the letters and looks cheap
Only the first two are design choices. The middle two are utilities. The last one is a habit worth breaking.

When a text shadow helps

As a hard, offset style

A shadow with no blur, offset a few percent of the letter height and set in a contrasting colour from the palette, is a typographic style with a long history on posters, packaging and signage. It reads as confident and a little nostalgic. Treat it like any effect: one per design, a few large words, a heavy face. Text effects compares it with the other treatments. Retro text effects shows its close cousins, the double and the trail.

Behind captions on video

Subtitles and captions sit over footage that changes every frame, so you can't choose a calm area. A tight, dark shadow or a thin outline keeps white captions legible when a bright window passes behind them. Keep it close to the letters: a short blur and little or no offset. Video captions design covers size and placement.

When a text shadow hurts

The problem with using a shadow to fix contrast is that it treats the symptom. The background is still busy; you've just added a smudge around the letters. Soft glows are the worst offender, because they spread a blurred cloud beyond each letter and soften the edge that defines its shape. On social posts they also compress badly, turning into blotchy bands.

Shadow as a crutch

  • Soft black glow on white text over a photo
  • Coloured halo around a headline
  • Shadow on small body text
  • Several different shadows on one design
  • Shadow plus outline plus glow on one word

Better choice

  • Move the words to the calmest area
  • A gradient scrim on one edge of the image
  • Larger, heavier type for the small line
  • One consistent style across the set
  • One treatment, chosen on purpose

Better alternatives to a text shadow

  1. 1

    Move the words

    Find the calmest, most even area of the background and put the text there. This fixes most problems before they start.

  2. 2

    Add a gradient scrim

    A soft fade from dark to clear along one edge gives contrast without a visible shape. Readable text on photos has scrim codes.

  3. 3

    Calm the background

    Tint a photo in one or two colours, lower its highlights, or choose a gradient with a quieter region.

  4. 4

    Strengthen the type

    Go up a weight and a size. A bold sans at a generous size needs no help on most backgrounds.

  5. 5

    Change the ink

    Sometimes dark text on a light area beats white text with a shadow. Pick the ink per line rather than for the whole design.

Fridays
Open late.
Kitchen until midnight
Gradiently · @gradiently

Words over a busy stretch of background: this is the moment people reach for a glow.

Fridays
Open late.
Kitchen until midnight
Gradiently · @gradiently

The same words with the background calmed behind them. No shadow needed, and the letters stay crisp.

On gradients specifically, the ground often gets lighter or darker across the frame, so one ink colour won't suit every line. Text on a gradient shows how to plan for that, and type on busy backgrounds covers patterns and textures.

Text shadow in CSS

The CSS text-shadow property takes a horizontal offset, a vertical offset, an optional blur radius and a colour. Separate several shadows with commas; the first one listed sits on top. Use em units so the shadow scales with the font size. The full reference is on MDN.

css
/* Hard offset style: no blur, colour from the palette */
.headline-offset {
  color: #fff7ed;
  text-shadow: 0.06em 0.06em 0 #9a3412;
}

/* Tight caption edge for text over video */
.caption {
  color: #ffffff;
  text-shadow: 0 0 0.12em rgb(0 0 0 / 0.9), 0 0.04em 0.08em rgb(0 0 0 / 0.8);
}

/* Preferred fix for readability: a scrim, not a shadow */
.hero {
  background:
    linear-gradient(0deg, rgb(15 23 42 / 0.8) 0%, rgb(15 23 42 / 0) 55%),
    url("/images/hero.jpg") center / cover;
}
Two shadows worth having, and the scrim that replaces the rest.

Automated contrast checkers compare the text colour with the background colour and ignore the shadow. If a tool flags your text as low contrast, a shadow may make it look better on your screen but won't change the measurement. Fix the background or the ink instead. CSS text shadow has more recipes for the web.

How Gradiently handles legibility

Gradiently was built on the idea that words shouldn't need rescuing. A Mark knows where the words are: its calmest, best contrasting region moves behind the text, colours near the letters deepen or lift, and busy detail relaxes. Auto ink then picks light or dark type for each line from the Mark's own palette. There are no boxes, shadows or blur involved, and you choose how strongly the Mark responds. If you want depth as a style, the Extrude Lettering treatment gives deep letters in the Mark's colours and Double draws open letters twice, both crisp and free of blur.

Find a gradient that’s only yours

Browse thousands of Marks, design with any of them for free, and claim the one that feels like you.

Browse the Market

Questions people ask

Should I use a text shadow to make text readable?

Usually not. Placement, a gradient scrim, a calmer background or a heavier weight make text readable without blurring the letters.

What is a hard shadow on text?

A copy of the letters offset down and to one side with no blur, usually in a contrasting colour. It's a deliberate style seen on posters and packaging.

How do I add a text shadow in CSS?

Use text-shadow: 0.06em 0.06em 0 #9a3412; where the values are horizontal offset, vertical offset, blur radius and colour.

Does a text shadow improve contrast for accessibility?

Automated checkers compare the text colour with the background and ignore the shadow, so a shadow won't fix a failing ratio. Fix the background or the ink.

Why do glowing text effects look cheap?

A glow spreads a blurred cloud around each letter, softening its edges and often banding when the image is compressed.

Share this guide

Written by GradientlyVerified Gradiently account

The team behind Gradiently, a design tool built around Marks: living gradients that make everything you design look like yours.

See our profile

On this page

Types of text shadow effectWhen a text shadow helpsWhen a text shadow hurtsBetter alternatives to a text shadowText shadow in CSSHow Gradiently handles legibility

Share this guide

Next in Type and text

Outline text effect: hollow lettering that still reads

Keep reading

All Type and text guides
Type and text

How to make text readable on photos without a box

6 min read

A solid box behind the headline works, but it makes every post look like a meme. These techniques keep the photo whole and the words clear, with code for the web and settings for social posts.

Type and text

Text effects that don’t look dated: outline, extrude, echo

5 min read

Most text effects look dated because they are applied to everything, at full strength, with no reason. Used on one word, in the right weight and colour, they are some of the most expressive tools in type.

Type and text

Text on gradient background: how to make it read every time

5 min read

A gradient changes under every letter, so a colour that reads at one end can vanish at the other. Here is the method that keeps words readable across the whole blend.

Find the look that’s only yours.

Every Mark is a living background with one owner. Try an unclaimed Mark, and claim yours when it feels right.

Start designing

Check a certificate

Type a certificate number or a Mark’s code to see who owns it.

Works with ChatGPT and Claude

Ask your AI for a design. It makes it in your Mark, ready to edit.

ChatGPTClaude
How to connect

Product

  • Market
  • Explore
  • Pricing
  • Certificates

Learn

  • Field Guide
  • Help centre
  • What’s new

Developers

  • Overview
  • ChatGPT and Claude
  • API reference
  • API keys

Company

  • About
  • Contact us
  • Sign in

Legal

  • Terms
  • Privacy
  • Refunds
  • Mark protection
  • Cookies
  • All policies
Move through the letters. Each one wears a real Mark.Touch a letter to see its Mark.One name. Ten Marks inside it.
© 2026 Gradiently