CSS Generators

Neumorphism

All tools

Generate the paired highlight and shadow that make soft UI elements look pressed out of the page.

How it works

Four simple steps

1

Pick theme and color

Choose light or dark and a base color that matches the page.

2

Set size and radius

Drag the element size and how rounded its corners are.

3

Tune the shadows

Raise distance and intensity for a deeper extruded look.

4

Copy the .neu rule

Copy both shadow layers or download neu.css.

Neumorphism

About Neumorphism

A designer hands over a mockup of a smart home dashboard where every control looks molded from the background. The effect comes from two shadows in opposite directions, one lighter and one darker than the surface. Set the base color and distance here and the tool works out both shades.

Controls cover element size (80 to 220 px), border radius (4 to 48 px), shadow distance (2 to 24 px) and an intensity multiplier (1 to 20). Choose a light or dark theme and a background color with the picker. The tool mixes a highlight color toward white and a shadow color toward black from your base, then writes a .neu rule with width, height, the background, the radius and a box-shadow made of two layers: a dark one offset down and right, and a light one offset up and left. Blur is set to twice the offset, which keeps the edges soft.

The element background must match the page background exactly, or the illusion breaks. That is also the main weakness of this style: there is very little contrast between controls and the surface, which makes buttons hard to spot for people with low vision. Use it for decorative cards or pair it with clear icons and labels. Neumorphism hides boundaries, so check text colors with the color contrast tool. For a regular single shadow, the CSS box shadow tool is more flexible, and the glass panel generator covers the frosted alternative.

Keyboard shortcut

Ctrl Enter - Run tool
FAQ

Frequently asked questions

See all FAQs

Answers for this tool. For site-wide help, open the FAQ hub.

Not directly. For a pressed state, copy the shadow and add the inset keyword to both layers, which flips the effect inward.

The element background has to be the same color as its container. On white or very dark backgrounds the light or dark shadow has no room to show, so pick a mid-tone base.

The final offset is the distance multiplied by intensity divided by 10, and the blur is twice that offset. Intensity 10 leaves the distance unchanged.

View more FAQs

Related tools

View all

Tailwind Class Sorter

Sort Tailwind classes and detect conflicting utilities with a winner explanation.

Open

Design System Diff Lab

Diff design tokens and inspect CSS @layer order and selector specificity locally.

Open

SVG Path Inspector

Parse SVG path commands, preview on canvas, round and minify coordinates.

Open

Flexbox Generator

Build flex layouts visually.

Open

Explore 321 free tools

Everything you need as a developer, marketer or creator - in one beautiful place.

Browse all tools