Neumorphism (Soft UI) Generator

Runs in your browserDesign Tools#CSS#UI

Generate soft UI (neumorphism) shadows with shape, light direction and presets. Copy CSS or Tailwind.

/* Give the parent the same background: #e0e0e0 */
border-radius: 50px;
background: #e0e0e0;
box-shadow: 20px 20px 60px #bebebe,
            -20px -20px 60px #ffffff;

Presets

Style

Mid-tone colours work best; pure white or black leaves one shadow invisible.

Shape
Light source

Size and shadow

How much lighter and darker the two shadows are

Low contrast is part of the style. Soft shadows alone don't make a button or input easy to see. Give controls a visible label, a focus outline and a 3:1 contrast edge or icon (WCAG 1.4.11).

How to use, limits & privacy

About Neumorphism (Soft UI) Generator

Generate soft UI (neumorphism) CSS: a pair of light and dark shadows that make an element look raised from, or pressed into, its background. Choose the colour, shape (flat, concave, convex or pressed), light direction, size, distance, intensity and blur, or start from a button, toggle or card preset. The maths matches neumorphism.io, and it runs in your browser.

How to Use

1

Pick a colour and preset

Set the Colour, which is also the background of the preview, and click a preset such as Button, Pressed, Toggle or Card.

2

Shape the effect

Choose Flat, Concave, Convex or Pressed and the Light source corner, then adjust Distance, Intensity and Blur.

3

Copy the CSS

Click Copy under CSS or Tailwind. Give the parent element the same background colour, or the effect falls apart.

Privacy & Processing

  • Mode: local
  • Files Leave Browser: Local tool processing; review details below
  • Max Input Size: Device memory limits
  • Account Required: No
  • Data Stored Locally: Nothing is saved; settings reset when you reload or leave the page.
  • Network Processing: Assets or models may require an initial download

Everything runs in your browser. Nothing is uploaded.

Rules & Limitations

  • The element and its parent must share the same background colour.
  • Pure white or very dark colours leave one of the two shadows invisible; mid-tones work best.
  • Corner radius is limited to half the shorter side.
  • Width and height shape the preview only; the code covers radius, background and shadows.
  • Low contrast is part of the style, so add labels and focus outlines to real controls.

Top Suggestions

  • Soft UI buttons, toggles and cards for app mock-ups
  • Dashboard widgets and music player controls
  • Pressed and raised states for the same button
  • Learning how light direction changes a shadow pair

Neumorphism (Soft UI) Generator FAQ

What is neumorphism in UI design?

Neumorphism, or soft UI, makes elements look extruded from the same material as the background. It uses one light shadow on the side facing the light and one dark shadow on the opposite side, usually on a light grey or pastel colour.

What is the difference between concave and convex?

Convex bulges out like a dome: its gradient runs from light on the side facing the light to dark on the far side. Concave dips in like a bowl, so the gradient is reversed. Pressed uses inset shadows instead of a gradient, for the active state of a button.

Why does my neumorphism shadow not show up?

Most often the parent has a different background colour from the element; both must match, such as #e0e0e0 on both. With white or near-black colours the light or dark shadow cannot get any lighter or darker, so pick a mid-tone.

Is neumorphism accessible?

Not on its own. Soft shadows give low contrast, so buttons and inputs can be hard to spot, which conflicts with WCAG 1.4.11 (3:1 contrast for control edges). Add a visible label or icon, a clear focus outline and a stronger edge for anything people need to click.

How do I make a pressed state for a neumorphic button?

Use the Button preset for the normal state and Pressed for the active state; Pressed swaps the shadows to inset. Put the second box-shadow in a :active rule, and the button will look pushed in while it is held down.

Is anything uploaded or saved?

No. The CSS is calculated in your browser and nothing is sent anywhere or kept after you leave the page.