Skip to content
← writing

Elevation in dark mode: when drop shadows stop working

css
dark-mode
box-shadow
frontend

Ask your agent to implement this

Read the full writeup at https://seangeng.com/writing/dark-mode-elevation.md and implement it in my project.

It covers: Elevation in dark mode: when drop shadows stop working. A single drop shadow vanishes on a dark background. Here's the layered box-shadow system that reads as real depth in dark UIs: a top light line, an inner hairline, an edge ring, and ambient shadows that double with negative spread.

Requirements:
- Follow the technique/approach exactly as described in the writeup.
- Adapt names, colors, and styling to my project's existing conventions.
- If it's a component, make it reusable with sensible props and TypeScript types.
- Keep it accessible: semantic HTML, keyboard support, and respect prefers-reduced-motion.
- When done, tell me which files you created or changed and how to use it.

Paste into Claude Code, Codex, Cursor, or any agent. view raw .md download source .zip