Neumorphism Generator

Generate neumorphic, soft-UI CSS from a single base color. Pick flat, concave, convex or pressed, adjust size, radius, distance, blur and intensity, and the matching light and dark shadows are calculated for you. The preview sits on the same color, as the effect requires, and the tool reports the edge contrast so you know when a control needs extra cues. It's free, runs in your browser, and nothing leaves your device.

Shapes

ShapeBackgroundShadows
FlatSolid baseOuter light + dark
ConcaveGradient, dark to lightOuter light + dark
ConvexGradient, light to darkOuter light + dark
PressedSolid baseInset light + dark

When to use it

  1. Prototype a soft-UI dashboard or music player.
  2. Make a pressed state for a toggle button.
  3. Create subtle raised cards on a light gray page.
  4. Check whether a neumorphic control has enough contrast.

How to Use

  1. Pick a base color — it becomes the page background too.
  2. Choose flat, concave, convex or pressed.
  3. Adjust size, radius, distance, blur and intensity.
  4. Check the contrast note, then copy the CSS.

Features

  1. Light and dark shadows derived from one color
  2. Flat, concave, convex and pressed
  3. Contrast ratio reported
  4. Matching background in the output
  5. 100% client-side

FAQs

What is neumorphism?

A style where elements share their background color and are shaped only by a light and a dark shadow, so they look extruded from the surface.

Why must the background match the element?

The illusion depends on the element being made of the same material as the surface. On a different color it just looks like a card with two shadows.

Is neumorphism accessible?

Often not by itself. Soft shadows rarely reach the 3:1 contrast that buttons and inputs need. Add a border, a clear icon or a colored label.

What's the difference between concave and convex?

Concave adds a gradient that makes the surface look dipped in; convex makes it look domed. Pressed uses inset shadows.

Is anything uploaded?

No. The CSS is generated in your browser.

Technical Details

Neumorphism makes an element look extruded from or pressed into the surface it sits on. It works by giving the element the same color as its background and casting two shadows from an imagined light source at the top left: a darker one offset down and right, and a lighter one offset up and left. The generator derives both shadow colors from the base by moving its HSL lightness up and down by an amount set by the intensity slider, so they always harmonize with the base instead of being gray. Distance sets the shadow offsets, blur their softness. Concave and convex shapes add a subtle 145-degree gradient that implies a dip or a dome; pressed turns both shadows inset. Because the element and background are the same color, the only thing defining its edge is a soft shadow, which typically fails the 3:1 non-text contrast WCAG requires for controls — the tool reports the actual ratio so you can compensate with borders, icons or labels.

Web & CSS Tools

Web & CSS Tools

  • CSS Filter Generator
  • CSS Loading Spinner Generator
  • CSS Toggle Switch Generator
  • CSS Checkbox Generator
  • CSS Background Pattern Generator
  • CSS Scrollbar Generator
  • CSS Triangle Generator
  • CSS Text Glitch Generator