background
Real physical buttons are so satisfying to press, and I wanted to try to bring that feeling to the web. The key feature of this stylesheet is a soft divot around the button that keeps its face flush with the surface.
It’s a simple, no-frills skeuomorphic style that mimics light catching the edges of the cut. The result is a page that feels tangible and makes you want to click things.
gallery
Add one modifier to .divot to change its style. Every variant keeps the same size, so they line up in any layout.
elevation
customize
Every wall on the page takes its light from one value. Drag the lamp around the ring to move it. The button inside is a real .divot: see the cut up close at 2×, or switch to 1× for actual size.
:root { --divot-light-angle: 315deg; }
reference
paddinginstall
<link rel="stylesheet" href="divot.css"> <button class="divot">Edit</button>
<div class="ground-surface"> <button class="divot">Edit</button> </div>