51 CSS Buttons
35 / 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 Wine Velvet Ribbon Button

Crushed burgundy velvet cut as an awards ribbon: notched swallow-tail ends, a nap sheen that shifts direction as the pointer crosses (the way velvet changes tone when you brush it), and gold-foil lettering with a proper bevel.

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-35">
  <div class="cb-35__stage">
    <span class="cb-35__wrap">
      <button class="cb-35__btn" type="button">
        <span class="cb-35__nap cb-35__nap--a" aria-hidden="true"></span>
        <span class="cb-35__nap cb-35__nap--b" aria-hidden="true"></span>
        <span class="cb-35__label">Reserve the cellar</span>
      </button>
    </span>
  </div>
</div>
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&display=swap');

.cb-35 {
  --bg: #160b10;
  --wine: #5c1026;
  --wine-hi: #8a1c3a;
  --wine-lo: #320611;
  --foil: #e8c67a;
  --serif: "Playfair Display",ui-serif,Georgia,"Times New Roman",serif;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: block;
  background: radial-gradient(34rem 22rem at 50% 42%, color-mix(in oklab,var(--wine) 32%,transparent), transparent 74%), var(--bg);
  font-family: var(--serif);
}

@supports (color: oklch(50% 0 0)) {
  .cb-35 {
    --wine: oklch(33% .14 12);
    --wine-hi: oklch(42% .17 10);
    --wine-lo: oklch(22% .11 12);
    --foil: oklch(84% .1 84);
  }
}

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

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

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

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

.cb-35__wrap {
  display: inline-block;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.65));
  transition: translate .35s cubic-bezier(.16,1,.3,1), filter .35s ease;
}

.cb-35__wrap:has(:hover) {
  translate: 0 -2px;
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.7));
}

.cb-35__wrap:has(:focus-visible) {
  outline: 2px solid var(--foil);
  outline-offset: 6px;
}

.cb-35__btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
  min-height: 5.5rem;
  padding: 0 2.8rem 2.1rem;
  border: 0;
  /* Band across the top, a tail at each end, and a V notch cut up into each tail.
       One continuous outline — no self-intersection, so no stray wedges. */
  clip-path: polygon(
      0 0, 100% 0,
      100% 100%, 91% 74%, 82% 100%,
      82% 58%, 18% 58%,
      18% 100%, 9% 74%, 0 100%);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--foil);
  background-color: var(--wine);
  background-image: radial-gradient(.045rem .045rem at 30% 40%, rgba(255,255,255,.1) 99%, transparent), radial-gradient(.04rem .04rem at 72% 66%, rgba(0,0,0,.2) 99%, transparent), linear-gradient(165deg, var(--wine-hi), var(--wine) 50%, var(--wine-lo));
  background-size: 9px 9px, 13px 13px, 100% 100%;
  transition: scale .2s cubic-bezier(.16,1,.3,1);
}

.cb-35__label {
  position: relative;
  z-index: 3;
  padding-bottom: .4rem;
  background: linear-gradient(180deg,#fbeec2,#dfb96a 52%,#a67c30);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.55));
}

.cb-35__nap {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity .5s ease;
}

.cb-35__nap--a {
  background: linear-gradient(78deg, rgba(255,255,255,.16), transparent 55%);
  opacity: 1;
}

.cb-35__nap--b {
  background: linear-gradient(-78deg, rgba(255,255,255,.2), transparent 58%);
  opacity: 0;
}

.cb-35__btn:is(:hover,:focus-visible) .cb-35__nap--a {
  opacity: 0;
}

.cb-35__btn:is(:hover,:focus-visible) .cb-35__nap--b {
  opacity: 1;
}

.cb-35__btn:focus-visible {
  outline: none;
}

.cb-35__btn:active {
  scale: .99;
}

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

@media (prefers-reduced-motion: reduce) {
  .cb-35__wrap,
    .cb-35__btn,
    .cb-35__nap {
    transition: none;
  }
}

@media (forced-colors: active) {
  .cb-35__btn {
    clip-path: none;
    background: ButtonFace;
    border: 1px solid ButtonText;
  }

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

  .cb-35__nap {
    display: none;
  }

  .cb-35__wrap {
    filter: 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 Wine Velvet Ribbon Button
Source: https://codefronts.com/components/css-buttons/css-wine-velvet-ribbon-button/

Crushed burgundy velvet cut as an awards ribbon: notched swallow-tail ends, a nap sheen that shifts direction as the pointer crosses (the way velvet changes tone when you brush it), and gold-foil lettering with a proper bevel.
## HTML
```html
<div class="cb-35">
  <div class="cb-35__stage">
    <span class="cb-35__wrap">
      <button class="cb-35__btn" type="button">
        <span class="cb-35__nap cb-35__nap--a" aria-hidden="true"></span>
        <span class="cb-35__nap cb-35__nap--b" aria-hidden="true"></span>
        <span class="cb-35__label">Reserve the cellar</span>
      </button>
    </span>
  </div>
</div>
```
## CSS
```css
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&display=swap');

.cb-35 {
  --bg: #160b10;
  --wine: #5c1026;
  --wine-hi: #8a1c3a;
  --wine-lo: #320611;
  --foil: #e8c67a;
  --serif: "Playfair Display",ui-serif,Georgia,"Times New Roman",serif;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: block;
  background: radial-gradient(34rem 22rem at 50% 42%, color-mix(in oklab,var(--wine) 32%,transparent), transparent 74%), var(--bg);
  font-family: var(--serif);
}

@supports (color: oklch(50% 0 0)) {
  .cb-35 {
    --wine: oklch(33% .14 12);
    --wine-hi: oklch(42% .17 10);
    --wine-lo: oklch(22% .11 12);
    --foil: oklch(84% .1 84);
  }
}

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

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

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

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

.cb-35__wrap {
  display: inline-block;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.65));
  transition: translate .35s cubic-bezier(.16,1,.3,1), filter .35s ease;
}

.cb-35__wrap:has(:hover) {
  translate: 0 -2px;
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.7));
}

.cb-35__wrap:has(:focus-visible) {
  outline: 2px solid var(--foil);
  outline-offset: 6px;
}

.cb-35__btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  place-items: center;
  min-height: 5.5rem;
  padding: 0 2.8rem 2.1rem;
  border: 0;
  /* Band across the top, a tail at each end, and a V notch cut up into each tail.
       One continuous outline — no self-intersection, so no stray wedges. */
  clip-path: polygon(
      0 0, 100% 0,
      100% 100%, 91% 74%, 82% 100%,
      82% 58%, 18% 58%,
      18% 100%, 9% 74%, 0 100%);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--foil);
  background-color: var(--wine);
  background-image: radial-gradient(.045rem .045rem at 30% 40%, rgba(255,255,255,.1) 99%, transparent), radial-gradient(.04rem .04rem at 72% 66%, rgba(0,0,0,.2) 99%, transparent), linear-gradient(165deg, var(--wine-hi), var(--wine) 50%, var(--wine-lo));
  background-size: 9px 9px, 13px 13px, 100% 100%;
  transition: scale .2s cubic-bezier(.16,1,.3,1);
}

.cb-35__label {
  position: relative;
  z-index: 3;
  padding-bottom: .4rem;
  background: linear-gradient(180deg,#fbeec2,#dfb96a 52%,#a67c30);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.55));
}

.cb-35__nap {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity .5s ease;
}

.cb-35__nap--a {
  background: linear-gradient(78deg, rgba(255,255,255,.16), transparent 55%);
  opacity: 1;
}

.cb-35__nap--b {
  background: linear-gradient(-78deg, rgba(255,255,255,.2), transparent 58%);
  opacity: 0;
}

.cb-35__btn:is(:hover,:focus-visible) .cb-35__nap--a {
  opacity: 0;
}

.cb-35__btn:is(:hover,:focus-visible) .cb-35__nap--b {
  opacity: 1;
}

.cb-35__btn:focus-visible {
  outline: none;
}

.cb-35__btn:active {
  scale: .99;
}

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

@media (prefers-reduced-motion: reduce) {
  .cb-35__wrap,
    .cb-35__btn,
    .cb-35__nap {
    transition: none;
  }
}

@media (forced-colors: active) {
  .cb-35__btn {
    clip-path: none;
    background: ButtonFace;
    border: 1px solid ButtonText;
  }

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

  .cb-35__nap {
    display: none;
  }

  .cb-35__wrap {
    filter: none;
  }
}
```

How this works

Velvet's signature is that its brightness depends on viewing angle. Two overlapping sheen layers with opposite gradients, cross-faded on hover, reproduce that:

.cb-35__nap--a{ background:linear-gradient(78deg, rgba(255,255,255,.16), transparent 55%);
  opacity:1; transition:opacity .5s ease; }
.cb-35__nap--b{ background:linear-gradient(-78deg, rgba(255,255,255,.2), transparent 58%);
  opacity:0; }
.cb-35__btn:hover .cb-35__nap--a{ opacity:0; }
.cb-35__btn:hover .cb-35__nap--b{ opacity:1; }

The pile texture is a dense pair of micro-gradients at low alpha, which reads as fibre rather than noise. The swallow-tails are one continuous outline: across the top, down the right tail, up into its V notch, back along the band's underside, then the mirror on the left:

clip-path:polygon(
  0 0, 100% 0,               /* band top */
  100% 100%, 91% 74%, 82% 100%,  /* right tail + notch */
  82% 58%, 18% 58%,          /* underside of the band */
  18% 100%, 9% 74%, 0 100%);     /* left tail + notch */

Trace the points in order before you trust a ribbon polygon — if the path crosses itself you get stray wedges instead of tails, and nonzero filling makes the result look deliberate but wrong.

The foil label uses a three-stop gold gradient with background-clip:text plus a dark 1px bevel shadow under the glyphs, and a solid fallback color declared first for engines that drop the clip.

Make it yours

  • Recolour the velvet with --wine and its two derived tones; forest green, navy and aubergine all work.
  • Deepen the notch by raising the two apex points (91% 74% / 9% 74%) toward the band; lengthen the tails by raising the band underside from 58%, and widen them by moving the 18% / 82% pair inward.
  • Swap gold for silver foil by shifting the label gradient to cool greys.
  • Remove the notch entirely for a flat velvet plaque.

Gotchas — read before shipping

  • Gradient-clipped text needs a solid color fallback declared first, or the label vanishes when the clip is unsupported.
  • Dark saturated fabrics plus gold type sit close to the 4.5:1 line — check the darkest gold stop, not the average.
  • clip-path removes shadows; the ribbon's lift comes from a wrapper filter here.
  • Bottom padding has to reserve the tail area or the label drifts into the notches — the band is only the top 62% of the box, so the label is centred with padding-bottom, not by accident.
  • Cross-fading two full-size layers is cheap, but adding a third pushes you into repaint territory on hover.
  • Luxury styling invites tiny type. Keep the label at 1rem or above regardless of how elegant small caps look.

Browser support

ChromeSafariFirefoxEdge
111+16.2+113+111+

clip-path and background-clip:text (with -webkit- prefix, declared) are baseline. color-mix() needs Chrome 111 / Safari 16.2 / Firefox 113 and falls back to the hex tokens.

Techniques used in this demo

Search CodeFronts

Loading…