# Dark Neumorphism

> Soft UI for dark themes: a raised tile holding a pressed-in knob, both shaded from one surface color.

- Category: [CSS Box Shadows](https://copy-css.com/category/shadows)
- Tags: neumorphic, soft ui, dark mode, raised, inset
- Live preview: https://copy-css.com/snippets/dark-neumorphism
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="neu-dark">
  <span class="neu-dark-knob"></span>
</div>
```

## CSS

```css
.neu-dark {
  --surface: #1e2228;
  --shade: #121519;
  --light: #2a2f37;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 32px;
  background: var(--surface);
  box-shadow:
    10px 10px 20px var(--shade),
    -10px -10px 20px var(--light);
}

.neu-dark-knob {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow:
    inset 6px 6px 12px var(--shade),
    inset -6px -6px 12px var(--light),
    0 0 0 2px #22d3ee26;
}
```

## Notes

- This CSS Dark Neumorphism is 25 lines of pure CSS (0.5 KB) with no JavaScript and no dependencies. It uses box shadows, CSS Grid and custom properties.
- Customize with: `--surface`, `--shade`, `--light`.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
