Neumorphic Pressed 4 is a soft CSS box shadow from the Neumorphism collection, built from 2 stacked layers with an inner (inset) shadow and a colored tint. The largest blur radius is 12px. Copy the code below and paste it into any element.
box-shadow: inset 6px 6px 12px 0px rgba(146, 152, 161, 0.75), inset -6px -6px 12px 0px rgba(246, 247, 250, 0.9);
Shadow values
| # | Type | X | Y | Blur | Spread | Color | Opacity |
|---|---|---|---|---|---|---|---|
| 1 | inset | 6px | 6px | 12px | 0px | #9298A1 | 0.75 |
| 2 | inset | -6px | -6px | 12px | 0px | #F6F7FA | 0.9 |
How to use it
.card {
background: #D1D9E6;
border-radius: 20px;
box-shadow: inset 6px 6px 12px 0px rgba(146, 152, 161, 0.75), inset -6px -6px 12px 0px rgba(246, 247, 250, 0.9);
}
More Neumorphism examples
Frequently Asked Questions
Copy the box-shadow line and paste it into the CSS rule of the element you want to style, for example a card, button or image wrapper. The example is shown on a #D1D9E6 background with a #D1D9E6 element and 20px rounded corners.
Yes. This shadow has 2 layers separated by commas. Change the pixel values or the rgba() color of any layer directly in your CSS to tune it.
This example is designed for light backgrounds. On very dark backgrounds a black shadow becomes hard to see, so raise the opacity or switch to a glow style.
