35 / 51
All 51 in 51 Tailwind CSS Buttons
- 01Tailwind Submit Button (Form Primary)
- 02Tailwind Primary and Secondary Button Pair
- 03Tailwind Ghost / Outline Button
- 04Tailwind Icon-Only Button with Accessible Tooltip
- 05Tailwind Gradient CTA Button
- 06Tailwind Loading Spinner Button (State Transition)
- 07Tailwind Disabled Button State (Full State Reference)
- 08Tailwind Button Group Component (Segmented Radio-Like)
- 09Tailwind Add to Cart Button
- 10Tailwind Download Progress Button
- 11Tailwind Like Heart Button
- 12Tailwind Confirm Delete Button
- 13Tailwind Play Pause Button
- 14Tailwind Subscribe Confetti Button
- 15Tailwind Magnetic Mercury Ripple Button
- 16Tailwind Brutalist Glitch Button
- 17Tailwind Neon Plasma Burst Button
- 18Tailwind Clay Press Button
- 19Tailwind Editorial Ink Spread Button
- 20Tailwind Particle Shard Burst Button
- 21Tailwind Brushed Brass Plate Button
- 22Tailwind Washi Paper Crane Button
- 23Tailwind Frosted Ice Cube Button
- 24Tailwind Vintage Typewriter Key Button
- 25Tailwind Lacquered Walnut Wood Button
- 26Tailwind Pharma Gel Capsule Button
- 27Tailwind Aged Copper Coin Button
- 28Tailwind Origami Fortune Cookie Button
- 29Tailwind Holographic Foil Sticker Button
- 30Tailwind Brutalist Concrete Slab Button
- 31Tailwind Mercury Bead Morph Button
- 32Tailwind Soft Pill Modern SaaS Button
- 33Tailwind Masking Tape Label Button
- 34Tailwind Obsidian Glass Shard Button
- 35Tailwind Wine Velvet Ribbon Button
- 36Tailwind LED Segment Display Button
- 37Tailwind Cassette Mixtape Label Button
- 38Tailwind Chalkboard Menu Button
- 39Tailwind Vinyl Record Sleeve Ripple Button
- 40Tailwind Polaroid Snapshot Button
- 41Tailwind Airline Boarding Pass Button
- 42Tailwind Aged Brass Subway Token Button
- 43Tailwind Vintage Rx Pharmacy Label Button
- 44Tailwind Bakelite Radio Dial Toggle Button
- 45Tailwind Regal Postage Stamp Button
- 46Tailwind Victorian Cigar Band Foil Button
- 47Tailwind Vintage Calculator Key Button
- 48Tailwind Toolbox Latch Spotlight Button
- 49Tailwind Receipt Paper Total Count-Up Button
- 50Tailwind IBM Punch Card Magnetic Follow Button
- 51Tailwind Brass Periscope Lens Button
Tailwind Wine Velvet Ribbon Button
Crushed burgundy velvet cut as an awards ribbon: notched swallow-tail ends, a nap sheen that reverses direction as the pointer crosses — the way velvet changes tone when you brush it — and gold-foil lettering with a proper bevel.
Untitled UI Pro: 5,000+ React + Tailwind CSS v4 components · from $349 one-time
Untitled UI React · Affiliate link
The code
<div class="tb-35 w-full min-h-svh grid place-items-center font-tb35-serif p-[clamp(1.5rem,6vw,4rem)]">
<span class="group inline-block drop-shadow-[0_16px_24px_#000000a6] transition-[translate,filter] duration-[350ms] ease-tb35-out has-hover:-translate-y-0.5 has-hover:drop-shadow-[0_22px_30px_#000000b3] has-focus-visible:outline-2 has-focus-visible:outline-offset-[6px] has-focus-visible:outline-tb35-foil motion-reduce:transition-none">
<button type="button" class="tb-35__velvet relative overflow-hidden cursor-pointer grid place-items-center min-h-22 px-11 pb-[2.1rem] border-0 text-[1.0625rem] font-semibold uppercase tracking-[0.1em] text-tb35-foil transition-[scale] duration-200 ease-tb35-out focus-visible:outline-none active:scale-[0.99] disabled:cursor-not-allowed disabled:grayscale-[0.6] disabled:brightness-80 motion-reduce:transition-none">
<span aria-hidden="true" class="absolute inset-0 z-20 pointer-events-none opacity-100 bg-[linear-gradient(78deg,rgba(255,255,255,0.16),transparent_55%)] transition-opacity duration-500 group-hover:opacity-0 group-focus-within:opacity-0 motion-reduce:transition-none"></span>
<span aria-hidden="true" class="absolute inset-0 z-20 pointer-events-none opacity-0 bg-[linear-gradient(-78deg,rgba(255,255,255,0.2),transparent_58%)] transition-opacity duration-500 group-hover:opacity-100 group-focus-within:opacity-100 motion-reduce:transition-none"></span>
<span class="tb-35__foil relative z-30 pb-1.5 bg-[linear-gradient(180deg,#fbeec2,#dfb96a_52%,#a67c30)] bg-clip-text drop-shadow-[0_1px_0_#0000008c]">Reserve the cellar</span>
</button>
</span>
</div><div class="tb-35 w-full min-h-svh grid place-items-center font-tb35-serif p-[clamp(1.5rem,6vw,4rem)]">
<span class="group inline-block drop-shadow-[0_16px_24px_#000000a6] transition-[translate,filter] duration-[350ms] ease-tb35-out has-hover:-translate-y-0.5 has-hover:drop-shadow-[0_22px_30px_#000000b3] has-focus-visible:outline-2 has-focus-visible:outline-offset-[6px] has-focus-visible:outline-tb35-foil motion-reduce:transition-none">
<button type="button" class="tb-35__velvet relative overflow-hidden cursor-pointer grid place-items-center min-h-22 px-11 pb-[2.1rem] border-0 text-[1.0625rem] font-semibold uppercase tracking-[0.1em] text-tb35-foil transition-[scale] duration-200 ease-tb35-out focus-visible:outline-none active:scale-[0.99] disabled:cursor-not-allowed disabled:grayscale-[0.6] disabled:brightness-80 motion-reduce:transition-none">
<span aria-hidden="true" class="absolute inset-0 z-20 pointer-events-none opacity-100 bg-[linear-gradient(78deg,rgba(255,255,255,0.16),transparent_55%)] transition-opacity duration-500 group-hover:opacity-0 group-focus-within:opacity-0 motion-reduce:transition-none"></span>
<span aria-hidden="true" class="absolute inset-0 z-20 pointer-events-none opacity-0 bg-[linear-gradient(-78deg,rgba(255,255,255,0.2),transparent_58%)] transition-opacity duration-500 group-hover:opacity-100 group-focus-within:opacity-100 motion-reduce:transition-none"></span>
<span class="tb-35__foil relative z-30 pb-1.5 bg-[linear-gradient(180deg,#fbeec2,#dfb96a_52%,#a67c30)] bg-clip-text drop-shadow-[0_1px_0_#0000008c]">Reserve the cellar</span>
</button>
</span>
</div>@import "tailwindcss";
@theme {
--color-tb35-bg: #160b10;
--color-tb35-bg: oklch(0.15 0.04 12);
--color-tb35-wine: #5c1026;
--color-tb35-wine: oklch(0.33 0.14 12);
--color-tb35-wine-hi: #8a1c3a;
--color-tb35-wine-hi: oklch(0.42 0.17 10);
--color-tb35-wine-lo: #320611;
--color-tb35-wine-lo: oklch(0.22 0.11 12);
--color-tb35-foil: #e8c67a;
--color-tb35-foil: oklch(0.84 0.1 84);
--font-tb35-serif: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
--ease-tb35-out: cubic-bezier(0.16, 1, 0.3, 1);
}
.tb-35 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(34rem 22rem at 50% 42%, color-mix(in oklab, var(--color-tb35-wine) 32%, transparent), transparent 74%), var(--color-tb35-bg);
}
/* THE RIBBON. Band across the top, a tail at each end, a V notch cut up into each
tail. One continuous outline — trace the points in order before changing them:
a self-intersecting path fills as stray wedges under nonzero. */
.tb-35__velvet {
clip-path: polygon(
0 0, 100% 0,
100% 100%, 91% 74%, 82% 100%,
82% 58%, 18% 58%,
18% 100%, 9% 74%, 0 100%);
background-color: var(--color-tb35-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(--color-tb35-wine-hi), var(--color-tb35-wine) 50%, var(--color-tb35-wine-lo));
background-size: 9px 9px, 13px 13px, 100% 100%;
}
/* bg-clip-text needs the fill transparent; the solid token above it is the fallback. */
.tb-35__foil {
-webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: light) {
.tb-35:not([data-theme="dark"]) {
--color-tb35-bg: oklch(0.22 0.06 12);
}
}
.tb-35[data-theme="light"] {
--color-tb35-bg: oklch(0.22 0.06 12);
}
@media (forced-colors: active) {
.tb-35__velvet {
clip-path: none;
background: ButtonFace;
border: 1px solid ButtonText;
}
.tb-35__foil {
background: none;
-webkit-text-fill-color: ButtonText;
color: ButtonText;
filter: none;
}
.tb-35__velvet span[aria-hidden] {
display: none;
}
}@import "tailwindcss";
@theme {
--color-tb35-bg: #160b10;
--color-tb35-bg: oklch(0.15 0.04 12);
--color-tb35-wine: #5c1026;
--color-tb35-wine: oklch(0.33 0.14 12);
--color-tb35-wine-hi: #8a1c3a;
--color-tb35-wine-hi: oklch(0.42 0.17 10);
--color-tb35-wine-lo: #320611;
--color-tb35-wine-lo: oklch(0.22 0.11 12);
--color-tb35-foil: #e8c67a;
--color-tb35-foil: oklch(0.84 0.1 84);
--font-tb35-serif: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
--ease-tb35-out: cubic-bezier(0.16, 1, 0.3, 1);
}
.tb-35 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(34rem 22rem at 50% 42%, color-mix(in oklab, var(--color-tb35-wine) 32%, transparent), transparent 74%), var(--color-tb35-bg);
}
/* THE RIBBON. Band across the top, a tail at each end, a V notch cut up into each
tail. One continuous outline — trace the points in order before changing them:
a self-intersecting path fills as stray wedges under nonzero. */
.tb-35__velvet {
clip-path: polygon(
0 0, 100% 0,
100% 100%, 91% 74%, 82% 100%,
82% 58%, 18% 58%,
18% 100%, 9% 74%, 0 100%);
background-color: var(--color-tb35-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(--color-tb35-wine-hi), var(--color-tb35-wine) 50%, var(--color-tb35-wine-lo));
background-size: 9px 9px, 13px 13px, 100% 100%;
}
/* bg-clip-text needs the fill transparent; the solid token above it is the fallback. */
.tb-35__foil {
-webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: light) {
.tb-35:not([data-theme="dark"]) {
--color-tb35-bg: oklch(0.22 0.06 12);
}
}
.tb-35[data-theme="light"] {
--color-tb35-bg: oklch(0.22 0.06 12);
}
@media (forced-colors: active) {
.tb-35__velvet {
clip-path: none;
background: ButtonFace;
border: 1px solid ButtonText;
}
.tb-35__foil {
background: none;
-webkit-text-fill-color: ButtonText;
color: ButtonText;
filter: none;
}
.tb-35__velvet span[aria-hidden] {
display: none;
}
}Setup — do this once per project
Skip this if your project already runs Tailwind v4.
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>Compiles in the browser — perfect for a CodePen or a quick test, not for production.
npm install tailwindcss @tailwindcss/vite
npm install tailwindcss @tailwindcss/vite// vite.config.js ("type": "module" in package.json)
import { defineConfig } from 'vite'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [tailwindcss()],
})// vite.config.js ("type": "module" in package.json)
import { defineConfig } from 'vite'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [tailwindcss()],
})Any v4 setup works — Vite, PostCSS or the CLI. Nothing in this demo is bundler-specific.
@import "tailwindcss";
@theme {
--color-tb35-bg: #160b10;
--color-tb35-bg: oklch(0.15 0.04 12);
--color-tb35-wine: #5c1026;
--color-tb35-wine: oklch(0.33 0.14 12);
--color-tb35-wine-hi: #8a1c3a;
--color-tb35-wine-hi: oklch(0.42 0.17 10);
--color-tb35-wine-lo: #320611;
--color-tb35-wine-lo: oklch(0.22 0.11 12);
--color-tb35-foil: #e8c67a;
--color-tb35-foil: oklch(0.84 0.1 84);
--font-tb35-serif: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
--ease-tb35-out: cubic-bezier(0.16, 1, 0.3, 1);
}
.tb-35 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(34rem 22rem at 50% 42%, color-mix(in oklab, var(--color-tb35-wine) 32%, transparent), transparent 74%), var(--color-tb35-bg);
}
/* THE RIBBON. Band across the top, a tail at each end, a V notch cut up into each
tail. One continuous outline — trace the points in order before changing them:
a self-intersecting path fills as stray wedges under nonzero. */
.tb-35__velvet {
clip-path: polygon(
0 0, 100% 0,
100% 100%, 91% 74%, 82% 100%,
82% 58%, 18% 58%,
18% 100%, 9% 74%, 0 100%);
background-color: var(--color-tb35-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(--color-tb35-wine-hi), var(--color-tb35-wine) 50%, var(--color-tb35-wine-lo));
background-size: 9px 9px, 13px 13px, 100% 100%;
}
/* bg-clip-text needs the fill transparent; the solid token above it is the fallback. */
.tb-35__foil {
-webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: light) {
.tb-35:not([data-theme="dark"]) {
--color-tb35-bg: oklch(0.22 0.06 12);
}
}
.tb-35[data-theme="light"] {
--color-tb35-bg: oklch(0.22 0.06 12);
}
@media (forced-colors: active) {
.tb-35__velvet {
clip-path: none;
background: ButtonFace;
border: 1px solid ButtonText;
}
.tb-35__foil {
background: none;
-webkit-text-fill-color: ButtonText;
color: ButtonText;
filter: none;
}
.tb-35__velvet span[aria-hidden] {
display: none;
}
}@import "tailwindcss";
@theme {
--color-tb35-bg: #160b10;
--color-tb35-bg: oklch(0.15 0.04 12);
--color-tb35-wine: #5c1026;
--color-tb35-wine: oklch(0.33 0.14 12);
--color-tb35-wine-hi: #8a1c3a;
--color-tb35-wine-hi: oklch(0.42 0.17 10);
--color-tb35-wine-lo: #320611;
--color-tb35-wine-lo: oklch(0.22 0.11 12);
--color-tb35-foil: #e8c67a;
--color-tb35-foil: oklch(0.84 0.1 84);
--font-tb35-serif: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
--ease-tb35-out: cubic-bezier(0.16, 1, 0.3, 1);
}
.tb-35 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(34rem 22rem at 50% 42%, color-mix(in oklab, var(--color-tb35-wine) 32%, transparent), transparent 74%), var(--color-tb35-bg);
}
/* THE RIBBON. Band across the top, a tail at each end, a V notch cut up into each
tail. One continuous outline — trace the points in order before changing them:
a self-intersecting path fills as stray wedges under nonzero. */
.tb-35__velvet {
clip-path: polygon(
0 0, 100% 0,
100% 100%, 91% 74%, 82% 100%,
82% 58%, 18% 58%,
18% 100%, 9% 74%, 0 100%);
background-color: var(--color-tb35-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(--color-tb35-wine-hi), var(--color-tb35-wine) 50%, var(--color-tb35-wine-lo));
background-size: 9px 9px, 13px 13px, 100% 100%;
}
/* bg-clip-text needs the fill transparent; the solid token above it is the fallback. */
.tb-35__foil {
-webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: light) {
.tb-35:not([data-theme="dark"]) {
--color-tb35-bg: oklch(0.22 0.06 12);
}
}
.tb-35[data-theme="light"] {
--color-tb35-bg: oklch(0.22 0.06 12);
}
@media (forced-colors: active) {
.tb-35__velvet {
clip-path: none;
background: ButtonFace;
border: 1px solid ButtonText;
}
.tb-35__foil {
background: none;
-webkit-text-fill-color: ButtonText;
color: ButtonText;
filter: none;
}
.tb-35__velvet span[aria-hidden] {
display: none;
}
}<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&display=swap">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&display=swap">What changed in the port
Which parts became utilities, which stayed CSS, and why.
- Utilities: both nap layers and their cross-fade, the foil gradient and clip, the wrapper's relational lift, the reserved tail padding, every state. CSS: the ribbon polygon (with its tracing warning), the pile texture, and the
-webkit-text-fill-colorthe clip needs. - The nap cross-fade is one of the few effects in the collection that is more readable as utilities: two sibling spans, identical except for the gradient angle and which opacity they start at. In CSS it was four rules across two selectors.
group-focus-within:rather thangroup-focus-visible:here, because the focusable element is the button itself and the sheen layers are its children — the wrapper'shas-focus-visible:handles the ring, andfocus-withincovers the sheen without a second group name.- A11y fix from the CSS original: the foil gradient's darkest stop (
#a67c30) against the wine measured ≈3.4:1 on the lower third of the glyphs. The port lifts the wine's mid tone slightly in the gradient (50% stop rather than a darker blend) and keeps the bevel shadow, bringing the darkest measured band to ≈4.6:1.
Here's a working CSS demo 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: Tailwind Wine Velvet Ribbon Button
Source: https://codefronts.com/components/tailwind-css-buttons/tailwind-wine-velvet-ribbon-button/
Crushed burgundy velvet cut as an awards ribbon: notched swallow-tail ends, a nap sheen that reverses 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="tb-35 w-full min-h-svh grid place-items-center font-tb35-serif p-[clamp(1.5rem,6vw,4rem)]">
<span class="group inline-block drop-shadow-[0_16px_24px_#000000a6] transition-[translate,filter] duration-[350ms] ease-tb35-out has-hover:-translate-y-0.5 has-hover:drop-shadow-[0_22px_30px_#000000b3] has-focus-visible:outline-2 has-focus-visible:outline-offset-[6px] has-focus-visible:outline-tb35-foil motion-reduce:transition-none">
<button type="button" class="tb-35__velvet relative overflow-hidden cursor-pointer grid place-items-center min-h-22 px-11 pb-[2.1rem] border-0 text-[1.0625rem] font-semibold uppercase tracking-[0.1em] text-tb35-foil transition-[scale] duration-200 ease-tb35-out focus-visible:outline-none active:scale-[0.99] disabled:cursor-not-allowed disabled:grayscale-[0.6] disabled:brightness-80 motion-reduce:transition-none">
<span aria-hidden="true" class="absolute inset-0 z-20 pointer-events-none opacity-100 bg-[linear-gradient(78deg,rgba(255,255,255,0.16),transparent_55%)] transition-opacity duration-500 group-hover:opacity-0 group-focus-within:opacity-0 motion-reduce:transition-none"></span>
<span aria-hidden="true" class="absolute inset-0 z-20 pointer-events-none opacity-0 bg-[linear-gradient(-78deg,rgba(255,255,255,0.2),transparent_58%)] transition-opacity duration-500 group-hover:opacity-100 group-focus-within:opacity-100 motion-reduce:transition-none"></span>
<span class="tb-35__foil relative z-30 pb-1.5 bg-[linear-gradient(180deg,#fbeec2,#dfb96a_52%,#a67c30)] bg-clip-text drop-shadow-[0_1px_0_#0000008c]">Reserve the cellar</span>
</button>
</span>
</div>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-tb35-bg: #160b10;
--color-tb35-bg: oklch(0.15 0.04 12);
--color-tb35-wine: #5c1026;
--color-tb35-wine: oklch(0.33 0.14 12);
--color-tb35-wine-hi: #8a1c3a;
--color-tb35-wine-hi: oklch(0.42 0.17 10);
--color-tb35-wine-lo: #320611;
--color-tb35-wine-lo: oklch(0.22 0.11 12);
--color-tb35-foil: #e8c67a;
--color-tb35-foil: oklch(0.84 0.1 84);
--font-tb35-serif: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
--ease-tb35-out: cubic-bezier(0.16, 1, 0.3, 1);
}
.tb-35 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(34rem 22rem at 50% 42%, color-mix(in oklab, var(--color-tb35-wine) 32%, transparent), transparent 74%), var(--color-tb35-bg);
}
/* THE RIBBON. Band across the top, a tail at each end, a V notch cut up into each
tail. One continuous outline — trace the points in order before changing them:
a self-intersecting path fills as stray wedges under nonzero. */
.tb-35__velvet {
clip-path: polygon(
0 0, 100% 0,
100% 100%, 91% 74%, 82% 100%,
82% 58%, 18% 58%,
18% 100%, 9% 74%, 0 100%);
background-color: var(--color-tb35-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(--color-tb35-wine-hi), var(--color-tb35-wine) 50%, var(--color-tb35-wine-lo));
background-size: 9px 9px, 13px 13px, 100% 100%;
}
/* bg-clip-text needs the fill transparent; the solid token above it is the fallback. */
.tb-35__foil {
-webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: light) {
.tb-35:not([data-theme="dark"]) {
--color-tb35-bg: oklch(0.22 0.06 12);
}
}
.tb-35[data-theme="light"] {
--color-tb35-bg: oklch(0.22 0.06 12);
}
@media (forced-colors: active) {
.tb-35__velvet {
clip-path: none;
background: ButtonFace;
border: 1px solid ButtonText;
}
.tb-35__foil {
background: none;
-webkit-text-fill-color: ButtonText;
color: ButtonText;
filter: none;
}
.tb-35__velvet span[aria-hidden] {
display: none;
}
}
```Here's a working CSS demo 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: Tailwind Wine Velvet Ribbon Button
Source: https://codefronts.com/components/tailwind-css-buttons/tailwind-wine-velvet-ribbon-button/
Crushed burgundy velvet cut as an awards ribbon: notched swallow-tail ends, a nap sheen that reverses 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="tb-35 w-full min-h-svh grid place-items-center font-tb35-serif p-[clamp(1.5rem,6vw,4rem)]">
<span class="group inline-block drop-shadow-[0_16px_24px_#000000a6] transition-[translate,filter] duration-[350ms] ease-tb35-out has-hover:-translate-y-0.5 has-hover:drop-shadow-[0_22px_30px_#000000b3] has-focus-visible:outline-2 has-focus-visible:outline-offset-[6px] has-focus-visible:outline-tb35-foil motion-reduce:transition-none">
<button type="button" class="tb-35__velvet relative overflow-hidden cursor-pointer grid place-items-center min-h-22 px-11 pb-[2.1rem] border-0 text-[1.0625rem] font-semibold uppercase tracking-[0.1em] text-tb35-foil transition-[scale] duration-200 ease-tb35-out focus-visible:outline-none active:scale-[0.99] disabled:cursor-not-allowed disabled:grayscale-[0.6] disabled:brightness-80 motion-reduce:transition-none">
<span aria-hidden="true" class="absolute inset-0 z-20 pointer-events-none opacity-100 bg-[linear-gradient(78deg,rgba(255,255,255,0.16),transparent_55%)] transition-opacity duration-500 group-hover:opacity-0 group-focus-within:opacity-0 motion-reduce:transition-none"></span>
<span aria-hidden="true" class="absolute inset-0 z-20 pointer-events-none opacity-0 bg-[linear-gradient(-78deg,rgba(255,255,255,0.2),transparent_58%)] transition-opacity duration-500 group-hover:opacity-100 group-focus-within:opacity-100 motion-reduce:transition-none"></span>
<span class="tb-35__foil relative z-30 pb-1.5 bg-[linear-gradient(180deg,#fbeec2,#dfb96a_52%,#a67c30)] bg-clip-text drop-shadow-[0_1px_0_#0000008c]">Reserve the cellar</span>
</button>
</span>
</div>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-tb35-bg: #160b10;
--color-tb35-bg: oklch(0.15 0.04 12);
--color-tb35-wine: #5c1026;
--color-tb35-wine: oklch(0.33 0.14 12);
--color-tb35-wine-hi: #8a1c3a;
--color-tb35-wine-hi: oklch(0.42 0.17 10);
--color-tb35-wine-lo: #320611;
--color-tb35-wine-lo: oklch(0.22 0.11 12);
--color-tb35-foil: #e8c67a;
--color-tb35-foil: oklch(0.84 0.1 84);
--font-tb35-serif: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
--ease-tb35-out: cubic-bezier(0.16, 1, 0.3, 1);
}
.tb-35 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(34rem 22rem at 50% 42%, color-mix(in oklab, var(--color-tb35-wine) 32%, transparent), transparent 74%), var(--color-tb35-bg);
}
/* THE RIBBON. Band across the top, a tail at each end, a V notch cut up into each
tail. One continuous outline — trace the points in order before changing them:
a self-intersecting path fills as stray wedges under nonzero. */
.tb-35__velvet {
clip-path: polygon(
0 0, 100% 0,
100% 100%, 91% 74%, 82% 100%,
82% 58%, 18% 58%,
18% 100%, 9% 74%, 0 100%);
background-color: var(--color-tb35-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(--color-tb35-wine-hi), var(--color-tb35-wine) 50%, var(--color-tb35-wine-lo));
background-size: 9px 9px, 13px 13px, 100% 100%;
}
/* bg-clip-text needs the fill transparent; the solid token above it is the fallback. */
.tb-35__foil {
-webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: light) {
.tb-35:not([data-theme="dark"]) {
--color-tb35-bg: oklch(0.22 0.06 12);
}
}
.tb-35[data-theme="light"] {
--color-tb35-bg: oklch(0.22 0.06 12);
}
@media (forced-colors: active) {
.tb-35__velvet {
clip-path: none;
background: ButtonFace;
border: 1px solid ButtonText;
}
.tb-35__foil {
background: none;
-webkit-text-fill-color: ButtonText;
color: ButtonText;
filter: none;
}
.tb-35__velvet span[aria-hidden] {
display: none;
}
}
```How this works
Velvet's signature is angle-dependent brightness. One gradient cannot do it; two cross-faded ones can:
<!-- rest --> bg-[linear-gradient(78deg,…)] opacity-100 group-hover:opacity-0
<!-- hover --> bg-[linear-gradient(-78deg,…)] opacity-0 group-hover:opacity-100Trace a ribbon polygon before you trust it. Across the top, down the right tail, up into its notch, back along the band's underside, then the mirror. If the path crosses itself you get stray wedges, and nonzero filling makes the result look deliberate but wrong.
The label's bottom padding is structural. The band is only the top 58% of the box; without pb-[2.1rem] the label centres on the whole box and lands in the notches.
Make it yours
--color-tb35-wineplus its two derived tones: forest green, navy and aubergine all work.- Deepen the notch by raising the apex points toward the band; lengthen the tails by raising the underside from 58%.
- Silver foil: shift the label gradient to cool greys.
- Remove the notch points entirely for a flat velvet plaque.
- The pile texture's two micro-gradients are in CSS — change their alphas for a shorter or longer nap.
Gotchas — read before shipping
- Gradient-clipped text needs a solid
colorfirst, or the label vanishes where the clip is unsupported. - Dark fabric plus gold type sits near the 4.5:1 line. Check the darkest gold stop, not the average.
clip-pathremoves shadows — the lift comes from a wrapper filter.- Reserve the tail area with padding. The band is not the box.
- Cross-fading two full-size layers is cheap; a third pushes hover into repaint territory.
Browser support
| Chrome | Safari | Firefox | Edge |
|---|---|---|---|
| 111+ | 16.4+ | 128+ | 111+ |
clip-path and bg-clip-text (v4 emits the -webkit- prefix) are baseline below Tailwind v4's own floor.