Kaiyichen xp — Visual Designer

For the best experience
Enter Full Screen (F11)

Portfolio®︎

Kaiyichen XP

繁體中文 English 简体中文 한국어 日本語 ภาษาไทย

Shadow Palette Generator

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

Preview image of the Shadow Palette Generator website

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

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.

Visit site ›

Patterns & Backgrounds