Library
Things I like and keep coming back to.
Type 10
Weighted 6
Retro desktops 9
Web 2.0 and early iPhone 4
Flat and Material 3
Modern 5
Soft and glass 4
Mine 1
Weighted
Seen on exa.ai
Feels like it has weight when you press it.
- A darker lip under the face gives it weight.
- A thin light line along the top catches the light.
- Pressing drops the lip and sinks it by a pixel.
.weighted {
padding: 10px 18px;
border-radius: 12px;
border: 1px solid #1a2fb8;
background: linear-gradient(180deg, #3a55ff 0%, #2340f0 100%);
color: #fff;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
inset 0 -3px 0 rgba(0, 0, 60, 0.28),
0 2px 4px rgba(20, 30, 120, 0.35);
}
.weighted:active {
transform: translateY(1px);
box-shadow: inset 0 2px 4px rgba(0, 0, 60, 0.35);
}11 of 42