51 CSS Buttons
25 / 51

All 51 in 51 CSS Buttons

  1. 01CSS Submit Button (Form Primary)
  2. 02CSS Primary and Secondary Button Pair
  3. 03CSS Ghost / Outline Button
  4. 04CSS Icon-Only Button with Accessible Tooltip
  5. 05CSS Gradient CTA Button
  6. 06CSS Loading Spinner Button (State Transition)
  7. 07CSS Disabled Button State (Full State Reference)
  8. 08CSS Button Group Component (Segmented Radio-Like)
  9. 09CSS Add to Cart Button
  10. 10CSS Download Progress Button
  11. 11CSS Like Heart Button
  12. 12CSS Confirm Delete Button
  13. 13CSS Play Pause Button
  14. 14CSS Subscribe Confetti Button
  15. 15CSS Magnetic Mercury Ripple Button
  16. 16CSS Brutalist Glitch Button
  17. 17CSS Neon Plasma Burst Button
  18. 18CSS Clay Press Button
  19. 19CSS Editorial Ink Spread Button
  20. 20CSS Particle Shard Burst Button
  21. 21CSS Brushed Brass Plate Button
  22. 22CSS Washi Paper Crane Button
  23. 23CSS Frosted Ice Cube Button
  24. 24CSS Vintage Typewriter Key Button
  25. 25CSS Lacquered Walnut Wood Button
  26. 26CSS Pharma Gel Capsule Button
  27. 27CSS Aged Copper Coin Button
  28. 28CSS Origami Fortune Cookie Button
  29. 29CSS Holographic Foil Sticker Button
  30. 30CSS Brutalist Concrete Slab Button
  31. 31CSS Mercury Bead Morph Button
  32. 32CSS Soft Pill Modern SaaS Button
  33. 33CSS Masking Tape Label Button
  34. 34CSS Obsidian Glass Shard Button
  35. 35CSS Wine Velvet Ribbon Button
  36. 36CSS LED Segment Display Button
  37. 37CSS Cassette Mixtape Label Button
  38. 38CSS Chalkboard Menu Button
  39. 39CSS Vinyl Record Sleeve Ripple Button
  40. 40CSS Polaroid Snapshot Button
  41. 41CSS Airline Boarding Pass Button
  42. 42CSS Aged Brass Subway Token Button
  43. 43CSS Vintage Rx Pharmacy Label Button
  44. 44CSS Bakelite Radio Dial Toggle Button
  45. 45CSS Regal Postage Stamp Button
  46. 46CSS Victorian Cigar Band Foil Button
  47. 47CSS Vintage Calculator Key Button
  48. 48CSS Toolbox Latch Spotlight Button
  49. 49CSS Receipt Paper Total Count-Up Button
  50. 50CSS IBM Punch Card Magnetic Follow Button
  51. 51CSS Brass Periscope Lens Button
Pure CSSMIT licensed

CSS Lacquered Walnut Wood Button

Book-matched walnut under high-gloss lacquer: grain built from four repeating gradients at incommensurate frequencies so it never visibly tiles, a brass inlay label, and a gloss band that travels across the finish on hover the way light moves over varnish.

Live Demo
Plain CSSTailwind v4
Try it

Build UI like this from scratch: Flexbox, Grid, animations & responsive CSS

ZTM · The CSS Bootcamp · 30‑day money-back guarantee · Affiliate link

10% off at checkout with code
Check ZTM Course

The code

<div class="cb-25">
  <div class="cb-25__stage">
    <button class="cb-25__btn" type="button">
      <span class="cb-25__gloss" aria-hidden="true"></span>
      <span class="cb-25__label">Open the cabinet</span>
    </button>
  </div>
</div>
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&display=swap');

.cb-25 {
  --bg: #120d09;
  --wood: #5b3a1f;
  --wood-hi: #7d5229;
  --wood-lo: #33200f;
  --radius: .65rem;
  --serif: "Cormorant Garamond",ui-serif,Georgia,"Times New Roman",serif;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: block;
  background: radial-gradient(40rem 24rem at 50% 40%, color-mix(in oklab,#d8a55e 12%,transparent), transparent 70%), var(--bg);
  font-family: var(--serif);
}

@supports (color: oklch(50% 0 0)) {
  .cb-25 {
    --wood: oklch(38% .07 55);
    --wood-hi: oklch(47% .08 58);
    --wood-lo: oklch(25% .05 52);
  }
}

@media (prefers-color-scheme: light) {
  .cb-25:not([data-theme="dark"]) {
    --bg: #221812;
  }
}

.cb-25[data-theme="light"] {
  --bg: #221812;
}

.cb-25,
.cb-25 *,
.cb-25 *::before,
.cb-25 *::after {
  box-sizing: border-box;
}

.cb-25__stage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem,6vw,4rem);
}

.cb-25__btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  min-height: 4rem;
  padding: 0 2.6rem;
  border: 1px solid #22150b;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: #e8cd97;
  background-color: var(--wood);
  background-image: repeating-linear-gradient(92deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px), repeating-linear-gradient(88deg, rgba(0,0,0,.10) 0 2px, transparent 2px 7px), repeating-linear-gradient(91deg, rgba(255,255,255,.055) 0 1px, transparent 1px 11px), repeating-linear-gradient(89deg, rgba(0,0,0,.16) 0 3px, transparent 3px 23px), linear-gradient(100deg, var(--wood-hi), var(--wood) 45%, var(--wood-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 4px rgba(0,0,0,.45), 0 16px 30px -14px rgba(0,0,0,.8);
  transition: translate .22s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, filter .3s ease;
}

.cb-25__label {
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg,#f6e3ae,#c99f4f 55%,#8d6a2c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.6));
}

.cb-25__btn::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 38%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.16), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
}

.cb-25__gloss {
  position: absolute;
  inset: -20% -30%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(104deg, transparent 40%, rgba(255,255,255,.34) 50%, transparent 60%);
  translate: -60% 0;
  transition: translate .9s cubic-bezier(.16,1,.3,1);
}

.cb-25__btn:is(:hover,:focus-visible) .cb-25__gloss {
  translate: 60% 0;
}

.cb-25__btn:hover {
  translate: 0 -2px;
  filter: brightness(1.06);
}

.cb-25__btn:active {
  translate: 0 1px;
  box-shadow: inset 0 3px 8px rgba(0,0,0,.6);
}

.cb-25__btn:focus-visible {
  outline: 2px solid #e8cd97;
  outline-offset: 4px;
}

.cb-25__btn:disabled {
  cursor: not-allowed;
  filter: grayscale(.6) brightness(.8);
}

@media (prefers-reduced-motion: reduce) {
  .cb-25__btn,
    .cb-25__gloss {
    transition: none;
  }
}

@media (forced-colors: active) {
  .cb-25__btn {
    background: ButtonFace;
    border: 1px solid ButtonText;
    box-shadow: none;
  }

  .cb-25__label {
    background: none;
    color: ButtonText;
    -webkit-text-fill-color: ButtonText;
    filter: none;
  }

  .cb-25__gloss {
    display: none;
  }
}
Paste this into ChatGPT, Claude, Cursor, or any coding assistant. The block below is pre-framed with everything the AI needs to integrate this demo into your project — markup, styles, scoping notes, and the source URL. Hit Copy and paste straight into your chat.
Here's a working CSS Button from CodeFronts. Use it as-is or adapt to your framework. All classes are scoped under a unique prefix so the code won't collide with your existing styles. MIT licensed.
Demo: CSS Lacquered Walnut Wood Button
Source: https://codefronts.com/components/css-buttons/css-lacquered-walnut-wood-button/

Book-matched walnut under high-gloss lacquer: grain built from four repeating gradients at incommensurate frequencies so it never visibly tiles, a brass inlay label, and a gloss band that travels across the finish on hover the way light moves over varnish.
## HTML
```html
<div class="cb-25">
  <div class="cb-25__stage">
    <button class="cb-25__btn" type="button">
      <span class="cb-25__gloss" aria-hidden="true"></span>
      <span class="cb-25__label">Open the cabinet</span>
    </button>
  </div>
</div>
```
## CSS
```css
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&display=swap');

.cb-25 {
  --bg: #120d09;
  --wood: #5b3a1f;
  --wood-hi: #7d5229;
  --wood-lo: #33200f;
  --radius: .65rem;
  --serif: "Cormorant Garamond",ui-serif,Georgia,"Times New Roman",serif;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: block;
  background: radial-gradient(40rem 24rem at 50% 40%, color-mix(in oklab,#d8a55e 12%,transparent), transparent 70%), var(--bg);
  font-family: var(--serif);
}

@supports (color: oklch(50% 0 0)) {
  .cb-25 {
    --wood: oklch(38% .07 55);
    --wood-hi: oklch(47% .08 58);
    --wood-lo: oklch(25% .05 52);
  }
}

@media (prefers-color-scheme: light) {
  .cb-25:not([data-theme="dark"]) {
    --bg: #221812;
  }
}

.cb-25[data-theme="light"] {
  --bg: #221812;
}

.cb-25,
.cb-25 *,
.cb-25 *::before,
.cb-25 *::after {
  box-sizing: border-box;
}

.cb-25__stage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem,6vw,4rem);
}

.cb-25__btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  min-height: 4rem;
  padding: 0 2.6rem;
  border: 1px solid #22150b;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: #e8cd97;
  background-color: var(--wood);
  background-image: repeating-linear-gradient(92deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px), repeating-linear-gradient(88deg, rgba(0,0,0,.10) 0 2px, transparent 2px 7px), repeating-linear-gradient(91deg, rgba(255,255,255,.055) 0 1px, transparent 1px 11px), repeating-linear-gradient(89deg, rgba(0,0,0,.16) 0 3px, transparent 3px 23px), linear-gradient(100deg, var(--wood-hi), var(--wood) 45%, var(--wood-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 4px rgba(0,0,0,.45), 0 16px 30px -14px rgba(0,0,0,.8);
  transition: translate .22s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, filter .3s ease;
}

.cb-25__label {
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg,#f6e3ae,#c99f4f 55%,#8d6a2c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.6));
}

.cb-25__btn::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 38%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.16), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
}

.cb-25__gloss {
  position: absolute;
  inset: -20% -30%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(104deg, transparent 40%, rgba(255,255,255,.34) 50%, transparent 60%);
  translate: -60% 0;
  transition: translate .9s cubic-bezier(.16,1,.3,1);
}

.cb-25__btn:is(:hover,:focus-visible) .cb-25__gloss {
  translate: 60% 0;
}

.cb-25__btn:hover {
  translate: 0 -2px;
  filter: brightness(1.06);
}

.cb-25__btn:active {
  translate: 0 1px;
  box-shadow: inset 0 3px 8px rgba(0,0,0,.6);
}

.cb-25__btn:focus-visible {
  outline: 2px solid #e8cd97;
  outline-offset: 4px;
}

.cb-25__btn:disabled {
  cursor: not-allowed;
  filter: grayscale(.6) brightness(.8);
}

@media (prefers-reduced-motion: reduce) {
  .cb-25__btn,
    .cb-25__gloss {
    transition: none;
  }
}

@media (forced-colors: active) {
  .cb-25__btn {
    background: ButtonFace;
    border: 1px solid ButtonText;
    box-shadow: none;
  }

  .cb-25__label {
    background: none;
    color: ButtonText;
    -webkit-text-fill-color: ButtonText;
    filter: none;
  }

  .cb-25__gloss {
    display: none;
  }
}
```

How this works

Believable wood grain comes from stacking gradients whose periods do not share a factor — 3px, 7px, 11px, 23px — so the eye can't find the repeat:

background-image:
  repeating-linear-gradient(92deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px),
  repeating-linear-gradient(88deg, rgba(0,0,0,.10) 0 2px, transparent 2px 7px),
  repeating-linear-gradient(91deg, rgba(255,255,255,.06) 0 1px, transparent 1px 11px),
  repeating-linear-gradient(89deg, rgba(0,0,0,.16) 0 3px, transparent 3px 23px),
  linear-gradient(100deg,var(--wood-hi),var(--wood),var(--wood-lo));

The 1-2° angle variance between layers is what creates the slight wander of real grain. The lacquer is a two-stop gloss band plus a permanent top-edge sheen, and the inlay label uses background-clip:text over a brass gradient with a dark bevel shadow beneath:

.cb-25__label{
  background:linear-gradient(180deg,#f2dda6,#c49a4c 55%,#8d6a2c);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 1px 0 rgba(0,0,0,.55));
}

Make it yours

  • Change species with the three wood tokens: pale for oak, red-brown for mahogany, near-black for ebony.
  • Rotate all grain layers together (92deg → 2deg) for a vertical cut.
  • Reduce the gloss band opacity for a satin finish, or add a second band at 40% offset for a mirror polish.
  • Swap the brass inlay for mother-of-pearl by changing the gradient to cool greys with a blue midpoint.

Gotchas — read before shipping

  • background-clip:text makes the text transparent — if the gradient fails to load or is overridden, the label disappears. Keep a solid color declared before it as a fallback.
  • Gradient-filled text often fails contrast checks because tools sample a single colour; verify the darkest stop against the wood.
  • Too many repeating layers ruins performance on scroll; five is the ceiling for a component of this size.
  • Identical grain angles look like corduroy — vary each layer by 1-3°.
  • Gloss sweeps that cross the label reduce legibility mid-animation; keep the band below 45% opacity.

Browser support

ChromeSafariFirefoxEdge
111+16.2+113+111+

background-clip:text needs the -webkit- prefix in Safari (declared). color-mix() (Chrome 111 / Safari 16.2 / Firefox 113) degrades to the hex tokens declared first.

Techniques used in this demo

Search CodeFronts

Loading…