Neumorphism
新拟态
Paired soft lights and shadows make same-colored controls appear raised or pressed into the surface.
Where to use it
Give a decorative control panel a surface that resembles molded plastic. Use it on a small surface with clear outlines or icons that identify controls even when the shadows are subtle.
Practical example
A desktop timer puts its start and pause controls on a soft gray console. Pressing Pause swaps the outer light and dark shadows for inset ones, while the engraved pause icon stays distinct.
AI prompt
Style [target surface] with Neumorphism. Match the control fill to the panel, pair a light upper-left shadow with a dark lower-right shadow, and use inset shadows for the pressed state. Add distinct borders or icons so the control stays identifiable at low contrast.
Example code
Save the standalone HTML as a file and open it in your browser. It uses the same code as the preview.
View HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Neumorphism</title>
<style>
:root {
color-scheme: dark;
--demo-bg: #171629;
--demo-ink: #f8f5ff;
--demo-accent: #b9a6ff;
--demo-muted: #bfbbd3;
font-family: system-ui, sans-serif;
color: var(--demo-ink);
background: var(--demo-bg);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, input { font: inherit; }
.demo {
display: grid;
place-items: center;
align-content: center;
min-height: 100vh;
padding: 14px;
overflow: hidden;
background: radial-gradient(ellipse at 50% 24%, #28233f, var(--demo-bg) 78%);
}
.demo-button {
border: 1px solid #ffffff3d;
border-radius: 7px;
background: #ffffff12;
color: var(--demo-ink);
padding: 6px 11px;
font-size: 12px;
cursor: pointer;
}
:focus-visible {
outline: 2px solid var(--demo-accent);
outline-offset: 3px;
}
.visual-specimen {
width: min(100%, 290px);
height: 124px;
display: grid;
place-items: center;
position: relative;
isolation: isolate;
}
.molded-panel { width: min(100%, 224px); height: 104px; display: flex; align-items: center; justify-content: center; gap: 26px; background: #bbb5cd; border-radius: 15px; }
.molded-panel i {
display: grid; place-items: center; width: 49px; aspect-ratio: 1; border-radius: 50%;
box-shadow: -6px -6px 12px #e0dce9, 6px 6px 12px #817894;
}
.molded-panel i:last-child { box-shadow: inset -6px -6px 12px #ddd9e8, inset 6px 6px 12px #847a96; }
.molded-panel i::before { content: ''; width: 15px; aspect-ratio: 1; border: 2px solid #594d71; border-radius: 4px; transform: rotate(45deg); }
.molded-panel i:last-child::before { background: #76668e; border-radius: 50%; }
</style>
</head>
<body>
<main class="demo">
<div class="visual-specimen" aria-hidden="true"><div class="molded-panel"><i></i><i></i></div></div>
</main>
</body>
</html>Original example by UI Skills