# Neumorphic Inset Field

> A soft UI search field carved into the surface with paired inset shadows and a clear focus ring.

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

## HTML

```html
<label class="neu-field">
  <span>Search</span>
  <input type="search" placeholder="Find a snippet">
</label>
```

## CSS

```css
.neu-field {
  display: grid;
  gap: 8px;
  width: 230px;
  color: #475569;
  font: 600 13px system-ui, sans-serif;
}

.neu-field input {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: #e0e5ec;
  color: #1e293b;
  font: 15px system-ui, sans-serif;
  -webkit-appearance: none;
  appearance: none;
  box-shadow:
    inset 5px 5px 10px #a3b1c6,
    inset -5px -5px 10px #ffffff;
}

.neu-field input::placeholder {
  color: #64748b;
}

.neu-field input:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 3px;
}
```

## Notes

- This CSS Neumorphic Inset Field is 32 lines of pure CSS (0.6 KB) with no JavaScript and no dependencies. It uses box shadows, CSS Grid and keyboard focus styles.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
