All styles
3D & Tactile

Mech Key CSS Button

Free26 lines · no JS
Open in Studio
Theme

A real <button> carrying .btn-mech-key — the preview is the stylesheet, not a picture of it.

States
default
hover
focus-visible
active
disabled
not declared
.btn-mech-key {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid #b6c0cf;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff, #e8ecf3);
  color: #334155;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 5px 0 #9aa8bd, 0 6px 10px rgba(15, 23, 42, 0.35), inset 0 1px 0 #ffffff;
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease;
}
.btn-mech-key:hover {
  filter: brightness(1.03);
}
.btn-mech-key:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #9aa8bd, 0 2px 4px rgba(15, 23, 42, 0.3), inset 0 1px 0 #ffffff;
}
.btn-mech-key:focus-visible {
  outline: 2px solid #b6c0cf;
  outline-offset: 3px;
}
Self-contained · MIT · no build step.btn-mech-key
3D & TactileRounded

Implementation notes

About the Mech Key CSS button

Mech Key uses visible depth and press feedback that makes interaction feel physical. Its rounded corners balance product-friendly softness with a clear boundary. It is built around a two-stop linear gradient anchored on #e8ecf3 with a three-layer shadow. The interaction stays intentionally restrained.

Usage

<button class="btn-mech-key">ESC</button>

Pair it with the CSS tab above — the class is self-contained.

Before shipping: keep the semantic button element, verify contrast on your actual background and add a visible:focus-visible state. If you retain motion, include a prefers-reduced-motion override.
Built with
HTML + plain CSS
Shape
Rounded
Exports
CSS, Tailwind, React
License
MIT · commercial use
Complete the look

Build the interface around this button

We matched its palette, surface, geometry and motion to a complete UI system — like composing an outfit, not browsing unrelated parts.

Style DNA · v1
How matching works →
Pro preview
Modal85% match

Tactile Citrus Decision Modal

Tactile Citrus kit

3D & Tactile charactersolid surface
Unlock with Pro →
Free sample
Input85% match

Tactile Citrus Smart Input

Tactile Citrus kit

3D & Tactile charactersolid surface
Pro preview
Toggle85% match

Tactile Citrus Preference Toggle

Tactile Citrus kit

3D & Tactile charactersolid surface
Unlock with Pro →
Pro preview
Card85% match

Tactile Citrus Feature Card

Tactile Citrus kit

3D & Tactile charactersolid surface
Unlock with Pro →
Pro preview
Dropdown85% match

Tactile Citrus Action Menu

Tactile Citrus kit

3D & Tactile charactersolid surface
Unlock with Pro →
Pro preview
Form85% match

Tactile Citrus Signup Form

Tactile Citrus kit

3D & Tactile charactersolid surface
Unlock with Pro →
Get the complete Tactile Citrus kit
Six coordinated component types, commercial license and future kit updates.
Explore Pro · $39

More styles that match

Bevel Classic

Deep Press

Glossy Sky

Piston Metal

Iso Tilt

Marshmallow

Two optional extras load only if you allow them. Every button, preview and line of code works exactly the same either way. What each one does