Shadow Palette Generator
Josh Comeau's layered shadow generator for consistent, realistic shadows across elevations.

What it is
Shadow Palette Generator comes from front-end educator Josh W. Comeau. Instead of a single shadow, it gives you a palette: low, medium and high elevations that share one light source, each built from stacked layers so they read more like real light. Shadow color follows your background color to avoid that muddy gray look. The output is a set of CSS custom properties you can reuse across a project.
Key features
- Three elevations: Low, medium and high shadows generated together
- Light source: Move the light and every shadow follows
- Layered shadows: Stacked layers for more natural depth
- Background-aware color: Shadows tinted to match, not gray
- CSS variables: Custom properties ready for your whole site
Who it's for
Front-end developers and UI designers building a design system or component library who want shadows that follow one consistent logic. The explanations on the page are worth reading too. Free to use.
Patterns & Backgrounds
- Blobs — Generate organic blobs from a seed, fill them with color, gradients, patterns or images, and export as SVG, PNG or code.
- Cool Backgrounds — A curated set of background generators for blogs, websites and desktop or phone wallpapers.
- Fancy Border Radius — Drag handles to shape CSS border-radius into organic, blob-like forms.
- Gradient Generator by Josh Comeau — Josh Comeau's gradient tool that avoids the gray dead zone by blending in different color modes.
- WebGradients — A library of 180 ready-to-use CSS gradients for websites and UI, with copyable code and a custom gradient generator.
- Subtle Patterns — Free, quiet tileable textures for backgrounds, maintained by Toptal.