How to use the text shadow generator
- Pick a preset: soft, bold, glow, emboss or blur.
- Type your own text and set its color, size, weight and the background it will sit on.
- Edit layers. Select a layer, drag its offset on the pad (arrow keys work too), and set blur, color and opacity. Add or duplicate layers for richer effects.
- Paste an existing
text-shadowvalue to continue editing it. - Check contrast and legibility, then copy the code.
Recipes
- Soft lift:
0 2px 4pxat 25% opacity plus0 8px 16pxat 15%. - Neon: a small white glow, then two colored glows with 12px and 32px blur. Works best on dark backgrounds.
- Letterpress: one light shadow 1px below the text, on a mid-grey background, makes letters look pressed into paper.
- Emboss: a light shadow up-left and a dark one down-right.
- Retro: two or more hard shadows (0 blur) in different colors, offset diagonally.
- Long shadow: many 1px hard steps in one direction. Try the Long preset, or the dedicated long-shadow style in the text effects studio.
Performance and accessibility
Text shadows are painted with the text, so a few layers cost very little. Dozens of layers on large paragraphs can slow scrolling. Keep heavy stacks for headings. Shadows never count towards contrast: the text color itself must contrast with the background.
How it works
text-shadow takes one or more shadows separated by commas. Each has a horizontal offset, a vertical offset, an optional blur radius and a color, and the first shadow is drawn on top. Several small shadows with no blur, offset in different directions, create outlines and long shadows; large blurs in a bright color create glows. The generator builds that list from your layers and checks how readable the text stays against the background.
Worked examples
Example 1: a hero headline over a photo
Load On photo. It combines a tight dark shadow (1px offset, 3px blur, 60% opacity) with a wide 12px halo at 40%. White headline text keeps its edges crisp while the halo separates it from bright parts of the image. For long subtitles, add a dark overlay on the photo as well, because shadows only help so much with small text.
Example 2: a neon sign for a dark landing page
Load Neon pink and change the text to your product name. Set the size to 96px and keep the background near black. The white inner glow makes the letters look lit from inside, while the two pink glows spread the light. To make it calmer, lower the opacity of the widest layer to around 0.5.
Example 3: a vintage label
Load Retro, then pick two colors from your brand palette for the stacked shadows. Hard shadows with no blur, offset 3px and 6px diagonally, give a screen-printed look that suits badges, menus and posters. Increase the offsets for bigger headings so the steps stay visible.
Common mistakes
- Glow on long paragraphs: keep effects for headings and short labels.
- Low opacity on light backgrounds: dark shadows at 10% barely show; use 20–30%.
- Forgetting the base contrast: the text color itself must pass, with or without the shadow.
Import CSS from your site
Already have a style you like? Open Import CSS (copy from a site), paste a rule or just its declarations from your stylesheet or your browser’s developer tools, and press Import into the controls. This tool reads text-shadow layers, color, font-size and font-weight. Everything else, and rules for states such as :hover or media queries, is listed as skipped, and the import can be undone in one step.