Tailwind Class Sorter
Sort Tailwind classes and detect conflicting utilities with a winner explanation.
OpenAdd a shadow that keeps headline text readable over busy backgrounds, and see it before you commit.
Type X and Y offsets in pixels; negative values move up or left.
Add blur and any CSS color, including rgba with transparency.
The large preview line updates as you type.
Copy the declaration or download text-shadow.css.
A hero heading sits on a photo, and white text disappears wherever the sky gets bright. A soft text shadow restores the edge without adding a dark overlay to the whole image. You just need to find values that help readability without looking like a 2005 WordArt effect.
Enter the horizontal offset, vertical offset and blur in pixels, plus a color. The color field is free text, so hex, rgb(), rgba() and named colors all work; the default is a translucent black. A large bold sample line shows the effect immediately, and the output is one text-shadow declaration you can copy or download.
For readability over images, keep both offsets small (0 to 2 px), raise the blur, and use a dark color around 30 to 50 percent opacity. Larger offsets with no blur give a retro, poster-style double image instead. Unlike box shadows, text-shadow has no spread value, so the only way to thicken the glow is more blur or several stacked shadows separated by commas, which you can add to the copied value by hand. For depth on the element box itself, use the box-shadow generator. If the text color is the problem rather than the edge, test it with the color contrast checker first, and see the gradient text CSS tool for filled lettering.
The preview uses your browser's own renderer, so what you see is what ships.
Keyboard shortcut
Answers for this tool. For site-wide help, open the FAQ hub.
Usually the blur is too low relative to the offset, or the color is fully opaque. Try an offset of 1 or 2 px, blur of 4 to 8 px and a color with 0.3 to 0.5 alpha.
Yes. Set both offsets to 0, raise the blur and pick a bright color. For a stronger glow, repeat the same shadow two or three times separated by commas.
A subtle shadow can improve legibility over images, but it does not replace proper contrast. Check the text and background colors against WCAG contrast ratios as well.