Skip to content
OddsockLocal
Local
Layers: x y blur color (one per line)1 2 3 #20213455
Layers: x y blur color (one per line)1 2 3 #20213455
ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Put one layer on each line: x, y, blur, and a hex color.
  2. Use an eight-digit hex when the shadow should be translucent.
  3. Copy the text-shadow rule onto the heading.
  4. Look at the type on the real background. Add a line if one layer is not enough.

What is Text shadow?

Text shadow has no spread. Each layer is a horizontal offset, a vertical offset, a blur, and a color. The page opens on a single soft layer, 1px 2px 3px #20213455, and the CSS is text-shadow: 1px 2px 3px #20213455. Stack lines when you want a hard comic outline or a cheap 3D extrusion: several offset copies of the same color, blur at 0, stepping down and to the right.

Read more

A transparent color, eight digits, is how the shadow stays a tint instead of a second headline. #20213455 is the ink at about a third. An opaque shadow at a large blur turns into a glow that can drop the contrast of the letters against the page. Check the word on the real background after you paste the rule. The contrast checker measures flat colors, not a blurred shadow, so a passing pair can still fail once the glow eats the edge of the glyph.

Box shadow is the cousin with a fifth number, the spread. Pasting a box-shadow line here will be rejected because this parser expects four fields.

Use cases

  • A headline on a photograph gets a soft dark shadow so it survives bright sky.
  • A poster stacks five hard layers to fake extruded type.
  • A label on a textured banner uses a tight blur and a translucent ink.
  • A designer compares one soft layer with a stack of hard 1px copies.
  • A slide title that failed on a busy image gets a shadow instead of a solid plate behind it.

A single soft shadow

One line: 1 2 3 #20213455.

text-shadow: 1px 2px 3px #20213455;

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

CSS text-shadow does not have a spread length. Box shadow does. That fifth number belongs on the box-shadow page.