Tailwind Class Sorter
Sort Tailwind classes and detect conflicting utilities with a winner explanation.
OpenFind the shadow that gives a card believable depth, then copy the exact values.
Move the shadow horizontally and vertically between -40 and 40 px.
Soften the edge and grow or shrink the shadow footprint.
Choose a hue and tick Inset for a pressed-in look.
Copy the .elevated rule or download shadow.css.
Your cards look flat on a white page, but the first shadow you try makes them look like they float an inch above it. Small changes to blur and offset make that difference, and adjusting them on a live box is quicker than guessing in DevTools.
Sliders set the horizontal offset and vertical offset (both -40 to 40 px), blur (0 to 60 px) and spread (-20 to 40 px). A color picker chooses the hue, the Inset shadow checkbox moves the shadow inside the element, and a sample box shows the result. The output is a single .elevated rule. The shadow color is written as rgba with a fixed alpha of 0.25, which is a sensible default for most interfaces; change the last number in the copied value if you need it lighter or darker.
For a natural look, keep the horizontal offset at 0, use a positive vertical offset and a blur roughly two to three times that offset. Negative spread tightens the shadow under the element and avoids a grey halo on the sides. Real interfaces often stack two shadows (a tight one plus a wide one); copy the value twice, separate the layers with a comma and adjust each. For soft, extruded controls look at the neumorphic shadow tool, and for shadows on headings use the text-shadow generator.
The shadow is rendered by your own browser, so the preview matches what you will ship.
Keyboard shortcut
Answers for this tool. For site-wide help, open the FAQ hub.
The color is always written with 0.25 alpha. Edit the fourth value of the rgba() in the copied CSS to make the shadow stronger or fainter.
The tool produces one layer at a time. Generate each layer, then join them in one box-shadow declaration with commas. The first value listed is painted on top.
No. Shadows are painted outside the box model, so they never push neighbouring elements. They can be clipped by a parent with overflow: hidden, though.