19 / 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 Editorial Ink Spread Button
Letterpress restraint: a serif label on cream stock, a hairline rule that grows into a full underline, and an ink blot that floods from the baseline with a soft irregular edge. The feathered mask is the whole effect and stays one arbitrary value — feathering is a recipe, not a design token.
Untitled UI Pro: 5,000+ React + Tailwind CSS v4 components · from $349 one-time
Untitled UI React · Affiliate link
The code
<div class="tb-19 w-full min-h-svh grid place-items-center font-tb19-serif p-[clamp(1.5rem,6vw,4rem)]">
<button type="button" class="group relative overflow-hidden isolate cursor-pointer min-h-14 px-8 pt-1.5 pb-2 border border-tb19-edge rounded-[0.25rem] bg-transparent text-tb19-ink text-[1.375rem] tracking-[0.005em] [font-variant-ligatures:common-ligatures] transition-[border-color,color] duration-[400ms] [transition-delay:0ms,100ms] hover:text-tb19-paper hover:border-tb19-ink focus-visible:text-tb19-paper focus-visible:border-tb19-ink focus-visible:outline-1 focus-visible:outline-tb19-accent focus-visible:outline-offset-[5px] active:scale-[0.99] disabled:cursor-not-allowed disabled:text-tb19-ink-off disabled:border-tb19-edge-off motion-reduce:transition-[color] motion-reduce:duration-100">
<span aria-hidden="true" class="tb-19__ink absolute -inset-y-[20%] -inset-x-[10%] z-10 origin-bottom scale-[0.25] opacity-0 bg-tb19-ink [mask-image:radial-gradient(58%_120%_at_50%_112%,#000_38%,rgba(0,0,0,0.5)_64%,transparent_80%)] transition-[scale,opacity,background-color] duration-[620ms] ease-tb19-out group-hover:scale-[1.45] group-hover:opacity-100 group-focus-visible:scale-[1.45] group-focus-visible:opacity-100 group-active:bg-tb19-accent group-disabled:hidden motion-reduce:transition-opacity motion-reduce:duration-150 motion-reduce:scale-[1.45]"></span>
<span class="relative z-20 after:content-[''] after:absolute after:inset-x-0 after:-bottom-[0.28rem] after:h-px after:bg-current after:origin-left after:scale-x-0 after:transition-transform after:duration-500 after:ease-tb19-out group-hover:after:scale-x-100 group-focus-visible:after:scale-x-100 motion-reduce:after:transition-none">Read the essay</span>
</button>
</div><div class="tb-19 w-full min-h-svh grid place-items-center font-tb19-serif p-[clamp(1.5rem,6vw,4rem)]">
<button type="button" class="group relative overflow-hidden isolate cursor-pointer min-h-14 px-8 pt-1.5 pb-2 border border-tb19-edge rounded-[0.25rem] bg-transparent text-tb19-ink text-[1.375rem] tracking-[0.005em] [font-variant-ligatures:common-ligatures] transition-[border-color,color] duration-[400ms] [transition-delay:0ms,100ms] hover:text-tb19-paper hover:border-tb19-ink focus-visible:text-tb19-paper focus-visible:border-tb19-ink focus-visible:outline-1 focus-visible:outline-tb19-accent focus-visible:outline-offset-[5px] active:scale-[0.99] disabled:cursor-not-allowed disabled:text-tb19-ink-off disabled:border-tb19-edge-off motion-reduce:transition-[color] motion-reduce:duration-100">
<span aria-hidden="true" class="tb-19__ink absolute -inset-y-[20%] -inset-x-[10%] z-10 origin-bottom scale-[0.25] opacity-0 bg-tb19-ink [mask-image:radial-gradient(58%_120%_at_50%_112%,#000_38%,rgba(0,0,0,0.5)_64%,transparent_80%)] transition-[scale,opacity,background-color] duration-[620ms] ease-tb19-out group-hover:scale-[1.45] group-hover:opacity-100 group-focus-visible:scale-[1.45] group-focus-visible:opacity-100 group-active:bg-tb19-accent group-disabled:hidden motion-reduce:transition-opacity motion-reduce:duration-150 motion-reduce:scale-[1.45]"></span>
<span class="relative z-20 after:content-[''] after:absolute after:inset-x-0 after:-bottom-[0.28rem] after:h-px after:bg-current after:origin-left after:scale-x-0 after:transition-transform after:duration-500 after:ease-tb19-out group-hover:after:scale-x-100 group-focus-visible:after:scale-x-100 motion-reduce:after:transition-none">Read the essay</span>
</button>
</div>@import "tailwindcss";
@theme {
--color-tb19-paper: #f4efe4;
--color-tb19-paper: oklch(0.95 0.018 85);
--color-tb19-ink: #1a1614;
--color-tb19-ink: oklch(0.2 0.012 40);
--color-tb19-ink-off: #7a716a;
--color-tb19-ink-off: oklch(0.55 0.012 50);
--color-tb19-edge: #1a16144d;
--color-tb19-edge: oklch(0.2 0.012 40 / 0.3);
--color-tb19-edge-off: #1a161426;
--color-tb19-edge-off: oklch(0.2 0.012 40 / 0.15);
--color-tb19-accent: #8c2f1f;
--color-tb19-accent: oklch(0.43 0.13 32);
--font-tb19-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
--ease-tb19-out: cubic-bezier(0.16, 1, 0.3, 1);
}
.tb-19 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(60rem 40rem at 50% 0%, color-mix(in oklab, white 55%, transparent), transparent 60%), var(--color-tb19-paper);
}
/* Safari ≤15.3 mask shim — the utility emits the unprefixed property only. */
.tb-19__ink {
-webkit-mask-image: radial-gradient(58% 120% at 50% 112%, #000 38%, rgba(0, 0, 0, 0.5) 64%, transparent 80%);
}
@media (prefers-color-scheme: dark) {
.tb-19:not([data-theme="light"]) {
--color-tb19-paper: oklch(0.16 0.012 45);
--color-tb19-ink: oklch(0.93 0.02 80);
--color-tb19-ink-off: oklch(0.6 0.015 60);
--color-tb19-accent: oklch(0.72 0.12 40);
}
}
.tb-19[data-theme="dark"] {
--color-tb19-paper: oklch(0.16 0.012 45);
--color-tb19-ink: oklch(0.93 0.02 80);
--color-tb19-accent: oklch(0.72 0.12 40);
}
@media (forced-colors: active) {
.tb-19 button {
color: ButtonText;
border-color: ButtonText;
background: ButtonFace;
}
.tb-19__ink {
display: none;
}
.tb-19 button:hover {
background: Highlight;
color: HighlightText;
}
}@import "tailwindcss";
@theme {
--color-tb19-paper: #f4efe4;
--color-tb19-paper: oklch(0.95 0.018 85);
--color-tb19-ink: #1a1614;
--color-tb19-ink: oklch(0.2 0.012 40);
--color-tb19-ink-off: #7a716a;
--color-tb19-ink-off: oklch(0.55 0.012 50);
--color-tb19-edge: #1a16144d;
--color-tb19-edge: oklch(0.2 0.012 40 / 0.3);
--color-tb19-edge-off: #1a161426;
--color-tb19-edge-off: oklch(0.2 0.012 40 / 0.15);
--color-tb19-accent: #8c2f1f;
--color-tb19-accent: oklch(0.43 0.13 32);
--font-tb19-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
--ease-tb19-out: cubic-bezier(0.16, 1, 0.3, 1);
}
.tb-19 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(60rem 40rem at 50% 0%, color-mix(in oklab, white 55%, transparent), transparent 60%), var(--color-tb19-paper);
}
/* Safari ≤15.3 mask shim — the utility emits the unprefixed property only. */
.tb-19__ink {
-webkit-mask-image: radial-gradient(58% 120% at 50% 112%, #000 38%, rgba(0, 0, 0, 0.5) 64%, transparent 80%);
}
@media (prefers-color-scheme: dark) {
.tb-19:not([data-theme="light"]) {
--color-tb19-paper: oklch(0.16 0.012 45);
--color-tb19-ink: oklch(0.93 0.02 80);
--color-tb19-ink-off: oklch(0.6 0.015 60);
--color-tb19-accent: oklch(0.72 0.12 40);
}
}
.tb-19[data-theme="dark"] {
--color-tb19-paper: oklch(0.16 0.012 45);
--color-tb19-ink: oklch(0.93 0.02 80);
--color-tb19-accent: oklch(0.72 0.12 40);
}
@media (forced-colors: active) {
.tb-19 button {
color: ButtonText;
border-color: ButtonText;
background: ButtonFace;
}
.tb-19__ink {
display: none;
}
.tb-19 button:hover {
background: Highlight;
color: HighlightText;
}
}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-tb19-paper: #f4efe4;
--color-tb19-paper: oklch(0.95 0.018 85);
--color-tb19-ink: #1a1614;
--color-tb19-ink: oklch(0.2 0.012 40);
--color-tb19-ink-off: #7a716a;
--color-tb19-ink-off: oklch(0.55 0.012 50);
--color-tb19-edge: #1a16144d;
--color-tb19-edge: oklch(0.2 0.012 40 / 0.3);
--color-tb19-edge-off: #1a161426;
--color-tb19-edge-off: oklch(0.2 0.012 40 / 0.15);
--color-tb19-accent: #8c2f1f;
--color-tb19-accent: oklch(0.43 0.13 32);
--font-tb19-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
--ease-tb19-out: cubic-bezier(0.16, 1, 0.3, 1);
}
.tb-19 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(60rem 40rem at 50% 0%, color-mix(in oklab, white 55%, transparent), transparent 60%), var(--color-tb19-paper);
}
/* Safari ≤15.3 mask shim — the utility emits the unprefixed property only. */
.tb-19__ink {
-webkit-mask-image: radial-gradient(58% 120% at 50% 112%, #000 38%, rgba(0, 0, 0, 0.5) 64%, transparent 80%);
}
@media (prefers-color-scheme: dark) {
.tb-19:not([data-theme="light"]) {
--color-tb19-paper: oklch(0.16 0.012 45);
--color-tb19-ink: oklch(0.93 0.02 80);
--color-tb19-ink-off: oklch(0.6 0.015 60);
--color-tb19-accent: oklch(0.72 0.12 40);
}
}
.tb-19[data-theme="dark"] {
--color-tb19-paper: oklch(0.16 0.012 45);
--color-tb19-ink: oklch(0.93 0.02 80);
--color-tb19-accent: oklch(0.72 0.12 40);
}
@media (forced-colors: active) {
.tb-19 button {
color: ButtonText;
border-color: ButtonText;
background: ButtonFace;
}
.tb-19__ink {
display: none;
}
.tb-19 button:hover {
background: Highlight;
color: HighlightText;
}
}@import "tailwindcss";
@theme {
--color-tb19-paper: #f4efe4;
--color-tb19-paper: oklch(0.95 0.018 85);
--color-tb19-ink: #1a1614;
--color-tb19-ink: oklch(0.2 0.012 40);
--color-tb19-ink-off: #7a716a;
--color-tb19-ink-off: oklch(0.55 0.012 50);
--color-tb19-edge: #1a16144d;
--color-tb19-edge: oklch(0.2 0.012 40 / 0.3);
--color-tb19-edge-off: #1a161426;
--color-tb19-edge-off: oklch(0.2 0.012 40 / 0.15);
--color-tb19-accent: #8c2f1f;
--color-tb19-accent: oklch(0.43 0.13 32);
--font-tb19-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
--ease-tb19-out: cubic-bezier(0.16, 1, 0.3, 1);
}
.tb-19 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(60rem 40rem at 50% 0%, color-mix(in oklab, white 55%, transparent), transparent 60%), var(--color-tb19-paper);
}
/* Safari ≤15.3 mask shim — the utility emits the unprefixed property only. */
.tb-19__ink {
-webkit-mask-image: radial-gradient(58% 120% at 50% 112%, #000 38%, rgba(0, 0, 0, 0.5) 64%, transparent 80%);
}
@media (prefers-color-scheme: dark) {
.tb-19:not([data-theme="light"]) {
--color-tb19-paper: oklch(0.16 0.012 45);
--color-tb19-ink: oklch(0.93 0.02 80);
--color-tb19-ink-off: oklch(0.6 0.015 60);
--color-tb19-accent: oklch(0.72 0.12 40);
}
}
.tb-19[data-theme="dark"] {
--color-tb19-paper: oklch(0.16 0.012 45);
--color-tb19-ink: oklch(0.93 0.02 80);
--color-tb19-accent: oklch(0.72 0.12 40);
}
@media (forced-colors: active) {
.tb-19 button {
color: ButtonText;
border-color: ButtonText;
background: ButtonFace;
}
.tb-19__ink {
display: none;
}
.tb-19 button:hover {
background: Highlight;
color: HighlightText;
}
}<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=Instrument+Serif:ital@0;1&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=Instrument+Serif:ital@0;1&display=swap">What changed in the port
Which parts became utilities, which stayed CSS, and why.
- Utilities: the mask, the flood scale and origin, the colour crossover with its per-property delay, the growing rule on
after:, every state includinggroup-disabled:hidden. CSS: tokens, the stage's paper wash, and the-webkit-mask-imageshim. - This is the second demo needing
[transition-delay:0ms,100ms](after the ghost button). Two occurrences in nineteen demos is roughly the right frequency for that escape hatch: staggered crossovers are a real technique, anddelay-*genuinely cannot express them. group-disabled:hiddenon the ink layer replaces.btn:disabled .ink{display:none}. Small, but it is the pattern for every "parent state hides a decorative child" rule in the collection.- A11y fix from the CSS original: the disabled label computed to
color-mix(in oklab, ink 45%, paper)— about 2.9:1 on the cream stock. The port names it--color-tb19-ink-offat ≈4.6:1. A disabled control still has to be readable.
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 Editorial Ink Spread Button
Source: https://codefronts.com/components/tailwind-css-buttons/tailwind-editorial-ink-spread-button/
Letterpress restraint: a serif label on cream stock, a hairline rule that grows into a full underline, and an ink blot that floods from the baseline with a soft irregular edge. The feathered mask is the whole effect and stays one arbitrary value — feathering is a recipe, not a design token.
## HTML
```html
<div class="tb-19 w-full min-h-svh grid place-items-center font-tb19-serif p-[clamp(1.5rem,6vw,4rem)]">
<button type="button" class="group relative overflow-hidden isolate cursor-pointer min-h-14 px-8 pt-1.5 pb-2 border border-tb19-edge rounded-[0.25rem] bg-transparent text-tb19-ink text-[1.375rem] tracking-[0.005em] [font-variant-ligatures:common-ligatures] transition-[border-color,color] duration-[400ms] [transition-delay:0ms,100ms] hover:text-tb19-paper hover:border-tb19-ink focus-visible:text-tb19-paper focus-visible:border-tb19-ink focus-visible:outline-1 focus-visible:outline-tb19-accent focus-visible:outline-offset-[5px] active:scale-[0.99] disabled:cursor-not-allowed disabled:text-tb19-ink-off disabled:border-tb19-edge-off motion-reduce:transition-[color] motion-reduce:duration-100">
<span aria-hidden="true" class="tb-19__ink absolute -inset-y-[20%] -inset-x-[10%] z-10 origin-bottom scale-[0.25] opacity-0 bg-tb19-ink [mask-image:radial-gradient(58%_120%_at_50%_112%,#000_38%,rgba(0,0,0,0.5)_64%,transparent_80%)] transition-[scale,opacity,background-color] duration-[620ms] ease-tb19-out group-hover:scale-[1.45] group-hover:opacity-100 group-focus-visible:scale-[1.45] group-focus-visible:opacity-100 group-active:bg-tb19-accent group-disabled:hidden motion-reduce:transition-opacity motion-reduce:duration-150 motion-reduce:scale-[1.45]"></span>
<span class="relative z-20 after:content-[''] after:absolute after:inset-x-0 after:-bottom-[0.28rem] after:h-px after:bg-current after:origin-left after:scale-x-0 after:transition-transform after:duration-500 after:ease-tb19-out group-hover:after:scale-x-100 group-focus-visible:after:scale-x-100 motion-reduce:after:transition-none">Read the essay</span>
</button>
</div>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-tb19-paper: #f4efe4;
--color-tb19-paper: oklch(0.95 0.018 85);
--color-tb19-ink: #1a1614;
--color-tb19-ink: oklch(0.2 0.012 40);
--color-tb19-ink-off: #7a716a;
--color-tb19-ink-off: oklch(0.55 0.012 50);
--color-tb19-edge: #1a16144d;
--color-tb19-edge: oklch(0.2 0.012 40 / 0.3);
--color-tb19-edge-off: #1a161426;
--color-tb19-edge-off: oklch(0.2 0.012 40 / 0.15);
--color-tb19-accent: #8c2f1f;
--color-tb19-accent: oklch(0.43 0.13 32);
--font-tb19-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
--ease-tb19-out: cubic-bezier(0.16, 1, 0.3, 1);
}
.tb-19 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(60rem 40rem at 50% 0%, color-mix(in oklab, white 55%, transparent), transparent 60%), var(--color-tb19-paper);
}
/* Safari ≤15.3 mask shim — the utility emits the unprefixed property only. */
.tb-19__ink {
-webkit-mask-image: radial-gradient(58% 120% at 50% 112%, #000 38%, rgba(0, 0, 0, 0.5) 64%, transparent 80%);
}
@media (prefers-color-scheme: dark) {
.tb-19:not([data-theme="light"]) {
--color-tb19-paper: oklch(0.16 0.012 45);
--color-tb19-ink: oklch(0.93 0.02 80);
--color-tb19-ink-off: oklch(0.6 0.015 60);
--color-tb19-accent: oklch(0.72 0.12 40);
}
}
.tb-19[data-theme="dark"] {
--color-tb19-paper: oklch(0.16 0.012 45);
--color-tb19-ink: oklch(0.93 0.02 80);
--color-tb19-accent: oklch(0.72 0.12 40);
}
@media (forced-colors: active) {
.tb-19 button {
color: ButtonText;
border-color: ButtonText;
background: ButtonFace;
}
.tb-19__ink {
display: none;
}
.tb-19 button:hover {
background: Highlight;
color: HighlightText;
}
}
```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 Editorial Ink Spread Button
Source: https://codefronts.com/components/tailwind-css-buttons/tailwind-editorial-ink-spread-button/
Letterpress restraint: a serif label on cream stock, a hairline rule that grows into a full underline, and an ink blot that floods from the baseline with a soft irregular edge. The feathered mask is the whole effect and stays one arbitrary value — feathering is a recipe, not a design token.
## HTML
```html
<div class="tb-19 w-full min-h-svh grid place-items-center font-tb19-serif p-[clamp(1.5rem,6vw,4rem)]">
<button type="button" class="group relative overflow-hidden isolate cursor-pointer min-h-14 px-8 pt-1.5 pb-2 border border-tb19-edge rounded-[0.25rem] bg-transparent text-tb19-ink text-[1.375rem] tracking-[0.005em] [font-variant-ligatures:common-ligatures] transition-[border-color,color] duration-[400ms] [transition-delay:0ms,100ms] hover:text-tb19-paper hover:border-tb19-ink focus-visible:text-tb19-paper focus-visible:border-tb19-ink focus-visible:outline-1 focus-visible:outline-tb19-accent focus-visible:outline-offset-[5px] active:scale-[0.99] disabled:cursor-not-allowed disabled:text-tb19-ink-off disabled:border-tb19-edge-off motion-reduce:transition-[color] motion-reduce:duration-100">
<span aria-hidden="true" class="tb-19__ink absolute -inset-y-[20%] -inset-x-[10%] z-10 origin-bottom scale-[0.25] opacity-0 bg-tb19-ink [mask-image:radial-gradient(58%_120%_at_50%_112%,#000_38%,rgba(0,0,0,0.5)_64%,transparent_80%)] transition-[scale,opacity,background-color] duration-[620ms] ease-tb19-out group-hover:scale-[1.45] group-hover:opacity-100 group-focus-visible:scale-[1.45] group-focus-visible:opacity-100 group-active:bg-tb19-accent group-disabled:hidden motion-reduce:transition-opacity motion-reduce:duration-150 motion-reduce:scale-[1.45]"></span>
<span class="relative z-20 after:content-[''] after:absolute after:inset-x-0 after:-bottom-[0.28rem] after:h-px after:bg-current after:origin-left after:scale-x-0 after:transition-transform after:duration-500 after:ease-tb19-out group-hover:after:scale-x-100 group-focus-visible:after:scale-x-100 motion-reduce:after:transition-none">Read the essay</span>
</button>
</div>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-tb19-paper: #f4efe4;
--color-tb19-paper: oklch(0.95 0.018 85);
--color-tb19-ink: #1a1614;
--color-tb19-ink: oklch(0.2 0.012 40);
--color-tb19-ink-off: #7a716a;
--color-tb19-ink-off: oklch(0.55 0.012 50);
--color-tb19-edge: #1a16144d;
--color-tb19-edge: oklch(0.2 0.012 40 / 0.3);
--color-tb19-edge-off: #1a161426;
--color-tb19-edge-off: oklch(0.2 0.012 40 / 0.15);
--color-tb19-accent: #8c2f1f;
--color-tb19-accent: oklch(0.43 0.13 32);
--font-tb19-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
--ease-tb19-out: cubic-bezier(0.16, 1, 0.3, 1);
}
.tb-19 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(60rem 40rem at 50% 0%, color-mix(in oklab, white 55%, transparent), transparent 60%), var(--color-tb19-paper);
}
/* Safari ≤15.3 mask shim — the utility emits the unprefixed property only. */
.tb-19__ink {
-webkit-mask-image: radial-gradient(58% 120% at 50% 112%, #000 38%, rgba(0, 0, 0, 0.5) 64%, transparent 80%);
}
@media (prefers-color-scheme: dark) {
.tb-19:not([data-theme="light"]) {
--color-tb19-paper: oklch(0.16 0.012 45);
--color-tb19-ink: oklch(0.93 0.02 80);
--color-tb19-ink-off: oklch(0.6 0.015 60);
--color-tb19-accent: oklch(0.72 0.12 40);
}
}
.tb-19[data-theme="dark"] {
--color-tb19-paper: oklch(0.16 0.012 45);
--color-tb19-ink: oklch(0.93 0.02 80);
--color-tb19-accent: oklch(0.72 0.12 40);
}
@media (forced-colors: active) {
.tb-19 button {
color: ButtonText;
border-color: ButtonText;
background: ButtonFace;
}
.tb-19__ink {
display: none;
}
.tb-19 button:hover {
background: Highlight;
color: HighlightText;
}
}
```How this works
A feathered mask is what separates ink from a rectangle. Three stops — solid, half, transparent — mean the growing edge is soft and slightly irregular rather than a hard circle:
class="[mask-image:radial-gradient(58%_120%_at_50%_112%,
#000_38%,rgba(0,0,0,0.5)_64%,transparent_80%)]"The crossover timing is the same trick as the ghost button, tuned longer for print: the label's colour transition is delayed 100ms so the flood overtakes it, instead of the text matching the rising edge's lightness and vanishing.
Reduced motion keeps the effect, drops the travel. The ink sits pre-scaled at its final size and only fades in — the state is still communicated, which is the rule the whole collection follows.
Make it yours
- Flood origin is the mask's centre:
50%_112%rises from the baseline,10%_50%spreads like a nib stroke. - Two-colour press: layer a second ink span with a different mask and a 90ms delay.
- Invert to dark stock through
--color-tb19-paperand--color-tb19-ink; the mask is colour-agnostic. - Swap the serif for your display face — keep the size at or above 1rem so the letterforms hold.
- Drop the underline if the button sits inside prose, where it would read as a link.
Gotchas — read before shipping
- 620ms is the top of the acceptable range for an action control. Keep the leave transition faster than the enter.
- The mask belongs on the ink layer, not the button — masking the button masks the label too.
- Feathered edges lose contrast in the transition zone. The label must be legible against the paper and the ink.
- Safari needs
-webkit-mask-image; the CSS block declares it, because the utility emits the unprefixed property only. - Serif at small sizes on low-contrast paper is an accessibility trap: ≥1rem and ≥4.5:1.
Browser support
| Chrome | Safari | Firefox | Edge |
|---|---|---|---|
| 120+ | 16.4+ | 128+ | 120+ |
The mask shorthand needs Chrome 120 / Safari 15.4 / Firefox 53, with the -webkit- shim in the CSS block. Without mask support the ink floods as a plain scaling rectangle — an acceptable fallback.