# Inner Shadow

> A subtle inset shadow for pressed states, wells and input fields.

- Category: [CSS Box Shadows](https://copy-css.com/category/shadows)
- Tags: inset, pressed, well, box-shadow
- Live preview: https://copy-css.com/snippets/inset-shadow
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="shadow-inset"></div>
```

## CSS

```css
.shadow-inset {
  background: #f1f5f9;
  border-radius: 20px;
  box-shadow:
    inset 0 2px 6px rgba(15, 23, 42, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.8);
}
```

## Notes

- This CSS Inner Shadow is 7 lines of pure CSS (0.2 KB) with no JavaScript and no dependencies. It uses box shadows.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
