17 / 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 Neon Plasma Burst Button
A neon tube that idles at low current, floods with plasma on hover, and fires an expanding shock ring on press. The glow is layered text-shadow and box-shadow rather than a blur filter, so it stays crisp at any zoom — and both stacks are single arbitrary utilities, because a glow is one recipe, not six values.
Untitled UI Pro: 5,000+ React + Tailwind CSS v4 components · from $349 one-time
Untitled UI React · Affiliate link
The code
<div class="tb-17 w-full min-h-svh grid place-items-center font-tb17-sans p-[clamp(1.5rem,6vw,4rem)]">
<button type="button" class="group relative overflow-hidden isolate cursor-pointer min-h-14 px-8 border-0 rounded-[0.6rem] text-[0.9375rem] font-semibold uppercase tracking-[0.14em] text-tb17-tube bg-tb17-shell animate-tb17-flicker transition-[box-shadow,color,scale] duration-[350ms] ease-tb17-out [text-shadow:0_0_4px_var(--color-tb17-tube-90),0_0_12px_var(--color-tb17-tube-55),0_0_34px_var(--color-tb17-tube-30)] shadow-[inset_0_0_14px_var(--color-tb17-tube-20),0_0_0_1px_var(--color-tb17-tube-50),0_0_30px_-8px_var(--color-tb17-tube-40)] hover:text-tb17-hot hover:shadow-[inset_0_0_22px_var(--color-tb17-tube-32),0_0_0_1px_var(--color-tb17-tube-80),0_0_46px_-6px_var(--color-tb17-c2-60)] focus-visible:text-tb17-hot focus-visible:shadow-[inset_0_0_22px_var(--color-tb17-tube-32),0_0_0_1px_var(--color-tb17-tube-80),0_0_46px_-6px_var(--color-tb17-c2-60)] focus-visible:outline-2 focus-visible:outline-offset-[5px] focus-visible:outline-tb17-c1 active:scale-[0.97] motion-reduce:animate-none motion-reduce:transition-none">
<span aria-hidden="true" class="absolute -inset-[40%] z-10 pointer-events-none opacity-30 blur-[16px] saturate-150 bg-[conic-gradient(from_var(--tb-17-a),var(--color-tb17-c1),var(--color-tb17-c2),var(--color-tb17-c3),var(--color-tb17-c1))] animate-tb17-spin transition-opacity duration-[400ms] group-hover:opacity-[0.62] group-hover:[animation-duration:3.2s] group-focus-visible:opacity-[0.62] motion-reduce:animate-none"></span>
<span aria-hidden="true" class="absolute z-10 top-1/2 left-1/2 size-24 -mt-12 -ml-12 rounded-full border-2 border-tb17-c1 opacity-0 pointer-events-none group-active:animate-tb17-burst motion-reduce:hidden"></span>
<span class="relative z-20">Initiate sequence</span>
</button>
</div><div class="tb-17 w-full min-h-svh grid place-items-center font-tb17-sans p-[clamp(1.5rem,6vw,4rem)]">
<button type="button" class="group relative overflow-hidden isolate cursor-pointer min-h-14 px-8 border-0 rounded-[0.6rem] text-[0.9375rem] font-semibold uppercase tracking-[0.14em] text-tb17-tube bg-tb17-shell animate-tb17-flicker transition-[box-shadow,color,scale] duration-[350ms] ease-tb17-out [text-shadow:0_0_4px_var(--color-tb17-tube-90),0_0_12px_var(--color-tb17-tube-55),0_0_34px_var(--color-tb17-tube-30)] shadow-[inset_0_0_14px_var(--color-tb17-tube-20),0_0_0_1px_var(--color-tb17-tube-50),0_0_30px_-8px_var(--color-tb17-tube-40)] hover:text-tb17-hot hover:shadow-[inset_0_0_22px_var(--color-tb17-tube-32),0_0_0_1px_var(--color-tb17-tube-80),0_0_46px_-6px_var(--color-tb17-c2-60)] focus-visible:text-tb17-hot focus-visible:shadow-[inset_0_0_22px_var(--color-tb17-tube-32),0_0_0_1px_var(--color-tb17-tube-80),0_0_46px_-6px_var(--color-tb17-c2-60)] focus-visible:outline-2 focus-visible:outline-offset-[5px] focus-visible:outline-tb17-c1 active:scale-[0.97] motion-reduce:animate-none motion-reduce:transition-none">
<span aria-hidden="true" class="absolute -inset-[40%] z-10 pointer-events-none opacity-30 blur-[16px] saturate-150 bg-[conic-gradient(from_var(--tb-17-a),var(--color-tb17-c1),var(--color-tb17-c2),var(--color-tb17-c3),var(--color-tb17-c1))] animate-tb17-spin transition-opacity duration-[400ms] group-hover:opacity-[0.62] group-hover:[animation-duration:3.2s] group-focus-visible:opacity-[0.62] motion-reduce:animate-none"></span>
<span aria-hidden="true" class="absolute z-10 top-1/2 left-1/2 size-24 -mt-12 -ml-12 rounded-full border-2 border-tb17-c1 opacity-0 pointer-events-none group-active:animate-tb17-burst motion-reduce:hidden"></span>
<span class="relative z-20">Initiate sequence</span>
</button>
</div>@import "tailwindcss";
@property --tb-17-a {
syntax: '<angle>';
inherits: false;
initial-value: 0deg;
}
@theme {
--color-tb17-bg: #05060a;
--color-tb17-bg: oklch(0.1 0.015 265);
--color-tb17-shell: #0b0d16;
--color-tb17-shell: oklch(0.15 0.025 270);
--color-tb17-tube: #22d3ee;
--color-tb17-tube: oklch(0.82 0.14 200);
--color-tb17-hot: #f4feff;
--color-tb17-tube-90: #22d3eee6;
--color-tb17-tube-90: oklch(0.82 0.14 200 / 0.9);
--color-tb17-tube-80: #22d3eecc;
--color-tb17-tube-80: oklch(0.82 0.14 200 / 0.8);
--color-tb17-tube-55: #22d3ee8c;
--color-tb17-tube-55: oklch(0.82 0.14 200 / 0.55);
--color-tb17-tube-50: #22d3ee80;
--color-tb17-tube-50: oklch(0.82 0.14 200 / 0.5);
--color-tb17-tube-40: #22d3ee66;
--color-tb17-tube-40: oklch(0.82 0.14 200 / 0.4);
--color-tb17-tube-32: #22d3ee52;
--color-tb17-tube-32: oklch(0.82 0.14 200 / 0.32);
--color-tb17-tube-30: #22d3ee4d;
--color-tb17-tube-30: oklch(0.82 0.14 200 / 0.3);
--color-tb17-tube-20: #22d3ee33;
--color-tb17-tube-20: oklch(0.82 0.14 200 / 0.2);
--color-tb17-c1: #22d3ee;
--color-tb17-c1: oklch(0.82 0.14 200);
--color-tb17-c2: #a855f7;
--color-tb17-c2: oklch(0.64 0.24 305);
--color-tb17-c2-60: #a855f799;
--color-tb17-c2-60: oklch(0.64 0.24 305 / 0.6);
--color-tb17-c3: #f472b6;
--color-tb17-c3: oklch(0.74 0.17 349);
--font-tb17-sans: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
--ease-tb17-out: cubic-bezier(0.16, 1, 0.3, 1);
--animate-tb17-flicker: tb-17-flicker 6s ease-in-out infinite;
--animate-tb17-spin: tb-17-spin 7s linear infinite;
--animate-tb17-burst: tb-17-burst 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tb-17-flicker {
0%,
100% {
opacity: 1;
}
48% {
opacity: 0.94;
}
50% {
opacity: 0.82;
}
52% {
opacity: 0.97;
}
}
@keyframes tb-17-spin {
to {
--tb-17-a: 360deg;
}
}
@keyframes tb-17-burst {
0% {
opacity: 0.9;
scale: 0.15;
}
100% {
opacity: 0;
scale: 3;
}
}
.tb-17 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(44rem 26rem at 50% 50%, color-mix(in oklab, var(--color-tb17-c2) 12%, transparent), transparent 72%), var(--color-tb17-bg);
}
@media (prefers-color-scheme: light) {
.tb-17:not([data-theme="dark"]) {
--color-tb17-bg: oklch(0.12 0.02 270);
--color-tb17-shell: oklch(0.16 0.03 272);
}
}
.tb-17[data-theme="light"] {
--color-tb17-bg: oklch(0.12 0.02 270);
--color-tb17-shell: oklch(0.16 0.03 272);
}
@media (forced-colors: active) {
.tb-17 button {
background: ButtonFace;
color: ButtonText;
border: 1px solid ButtonText;
box-shadow: none;
text-shadow: none;
}
.tb-17 button span[aria-hidden] {
display: none;
}
}@import "tailwindcss";
@property --tb-17-a {
syntax: '<angle>';
inherits: false;
initial-value: 0deg;
}
@theme {
--color-tb17-bg: #05060a;
--color-tb17-bg: oklch(0.1 0.015 265);
--color-tb17-shell: #0b0d16;
--color-tb17-shell: oklch(0.15 0.025 270);
--color-tb17-tube: #22d3ee;
--color-tb17-tube: oklch(0.82 0.14 200);
--color-tb17-hot: #f4feff;
--color-tb17-tube-90: #22d3eee6;
--color-tb17-tube-90: oklch(0.82 0.14 200 / 0.9);
--color-tb17-tube-80: #22d3eecc;
--color-tb17-tube-80: oklch(0.82 0.14 200 / 0.8);
--color-tb17-tube-55: #22d3ee8c;
--color-tb17-tube-55: oklch(0.82 0.14 200 / 0.55);
--color-tb17-tube-50: #22d3ee80;
--color-tb17-tube-50: oklch(0.82 0.14 200 / 0.5);
--color-tb17-tube-40: #22d3ee66;
--color-tb17-tube-40: oklch(0.82 0.14 200 / 0.4);
--color-tb17-tube-32: #22d3ee52;
--color-tb17-tube-32: oklch(0.82 0.14 200 / 0.32);
--color-tb17-tube-30: #22d3ee4d;
--color-tb17-tube-30: oklch(0.82 0.14 200 / 0.3);
--color-tb17-tube-20: #22d3ee33;
--color-tb17-tube-20: oklch(0.82 0.14 200 / 0.2);
--color-tb17-c1: #22d3ee;
--color-tb17-c1: oklch(0.82 0.14 200);
--color-tb17-c2: #a855f7;
--color-tb17-c2: oklch(0.64 0.24 305);
--color-tb17-c2-60: #a855f799;
--color-tb17-c2-60: oklch(0.64 0.24 305 / 0.6);
--color-tb17-c3: #f472b6;
--color-tb17-c3: oklch(0.74 0.17 349);
--font-tb17-sans: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
--ease-tb17-out: cubic-bezier(0.16, 1, 0.3, 1);
--animate-tb17-flicker: tb-17-flicker 6s ease-in-out infinite;
--animate-tb17-spin: tb-17-spin 7s linear infinite;
--animate-tb17-burst: tb-17-burst 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tb-17-flicker {
0%,
100% {
opacity: 1;
}
48% {
opacity: 0.94;
}
50% {
opacity: 0.82;
}
52% {
opacity: 0.97;
}
}
@keyframes tb-17-spin {
to {
--tb-17-a: 360deg;
}
}
@keyframes tb-17-burst {
0% {
opacity: 0.9;
scale: 0.15;
}
100% {
opacity: 0;
scale: 3;
}
}
.tb-17 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(44rem 26rem at 50% 50%, color-mix(in oklab, var(--color-tb17-c2) 12%, transparent), transparent 72%), var(--color-tb17-bg);
}
@media (prefers-color-scheme: light) {
.tb-17:not([data-theme="dark"]) {
--color-tb17-bg: oklch(0.12 0.02 270);
--color-tb17-shell: oklch(0.16 0.03 272);
}
}
.tb-17[data-theme="light"] {
--color-tb17-bg: oklch(0.12 0.02 270);
--color-tb17-shell: oklch(0.16 0.03 272);
}
@media (forced-colors: active) {
.tb-17 button {
background: ButtonFace;
color: ButtonText;
border: 1px solid ButtonText;
box-shadow: none;
text-shadow: none;
}
.tb-17 button 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";
@property --tb-17-a {
syntax: '<angle>';
inherits: false;
initial-value: 0deg;
}
@theme {
--color-tb17-bg: #05060a;
--color-tb17-bg: oklch(0.1 0.015 265);
--color-tb17-shell: #0b0d16;
--color-tb17-shell: oklch(0.15 0.025 270);
--color-tb17-tube: #22d3ee;
--color-tb17-tube: oklch(0.82 0.14 200);
--color-tb17-hot: #f4feff;
--color-tb17-tube-90: #22d3eee6;
--color-tb17-tube-90: oklch(0.82 0.14 200 / 0.9);
--color-tb17-tube-80: #22d3eecc;
--color-tb17-tube-80: oklch(0.82 0.14 200 / 0.8);
--color-tb17-tube-55: #22d3ee8c;
--color-tb17-tube-55: oklch(0.82 0.14 200 / 0.55);
--color-tb17-tube-50: #22d3ee80;
--color-tb17-tube-50: oklch(0.82 0.14 200 / 0.5);
--color-tb17-tube-40: #22d3ee66;
--color-tb17-tube-40: oklch(0.82 0.14 200 / 0.4);
--color-tb17-tube-32: #22d3ee52;
--color-tb17-tube-32: oklch(0.82 0.14 200 / 0.32);
--color-tb17-tube-30: #22d3ee4d;
--color-tb17-tube-30: oklch(0.82 0.14 200 / 0.3);
--color-tb17-tube-20: #22d3ee33;
--color-tb17-tube-20: oklch(0.82 0.14 200 / 0.2);
--color-tb17-c1: #22d3ee;
--color-tb17-c1: oklch(0.82 0.14 200);
--color-tb17-c2: #a855f7;
--color-tb17-c2: oklch(0.64 0.24 305);
--color-tb17-c2-60: #a855f799;
--color-tb17-c2-60: oklch(0.64 0.24 305 / 0.6);
--color-tb17-c3: #f472b6;
--color-tb17-c3: oklch(0.74 0.17 349);
--font-tb17-sans: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
--ease-tb17-out: cubic-bezier(0.16, 1, 0.3, 1);
--animate-tb17-flicker: tb-17-flicker 6s ease-in-out infinite;
--animate-tb17-spin: tb-17-spin 7s linear infinite;
--animate-tb17-burst: tb-17-burst 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tb-17-flicker {
0%,
100% {
opacity: 1;
}
48% {
opacity: 0.94;
}
50% {
opacity: 0.82;
}
52% {
opacity: 0.97;
}
}
@keyframes tb-17-spin {
to {
--tb-17-a: 360deg;
}
}
@keyframes tb-17-burst {
0% {
opacity: 0.9;
scale: 0.15;
}
100% {
opacity: 0;
scale: 3;
}
}
.tb-17 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(44rem 26rem at 50% 50%, color-mix(in oklab, var(--color-tb17-c2) 12%, transparent), transparent 72%), var(--color-tb17-bg);
}
@media (prefers-color-scheme: light) {
.tb-17:not([data-theme="dark"]) {
--color-tb17-bg: oklch(0.12 0.02 270);
--color-tb17-shell: oklch(0.16 0.03 272);
}
}
.tb-17[data-theme="light"] {
--color-tb17-bg: oklch(0.12 0.02 270);
--color-tb17-shell: oklch(0.16 0.03 272);
}
@media (forced-colors: active) {
.tb-17 button {
background: ButtonFace;
color: ButtonText;
border: 1px solid ButtonText;
box-shadow: none;
text-shadow: none;
}
.tb-17 button span[aria-hidden] {
display: none;
}
}@import "tailwindcss";
@property --tb-17-a {
syntax: '<angle>';
inherits: false;
initial-value: 0deg;
}
@theme {
--color-tb17-bg: #05060a;
--color-tb17-bg: oklch(0.1 0.015 265);
--color-tb17-shell: #0b0d16;
--color-tb17-shell: oklch(0.15 0.025 270);
--color-tb17-tube: #22d3ee;
--color-tb17-tube: oklch(0.82 0.14 200);
--color-tb17-hot: #f4feff;
--color-tb17-tube-90: #22d3eee6;
--color-tb17-tube-90: oklch(0.82 0.14 200 / 0.9);
--color-tb17-tube-80: #22d3eecc;
--color-tb17-tube-80: oklch(0.82 0.14 200 / 0.8);
--color-tb17-tube-55: #22d3ee8c;
--color-tb17-tube-55: oklch(0.82 0.14 200 / 0.55);
--color-tb17-tube-50: #22d3ee80;
--color-tb17-tube-50: oklch(0.82 0.14 200 / 0.5);
--color-tb17-tube-40: #22d3ee66;
--color-tb17-tube-40: oklch(0.82 0.14 200 / 0.4);
--color-tb17-tube-32: #22d3ee52;
--color-tb17-tube-32: oklch(0.82 0.14 200 / 0.32);
--color-tb17-tube-30: #22d3ee4d;
--color-tb17-tube-30: oklch(0.82 0.14 200 / 0.3);
--color-tb17-tube-20: #22d3ee33;
--color-tb17-tube-20: oklch(0.82 0.14 200 / 0.2);
--color-tb17-c1: #22d3ee;
--color-tb17-c1: oklch(0.82 0.14 200);
--color-tb17-c2: #a855f7;
--color-tb17-c2: oklch(0.64 0.24 305);
--color-tb17-c2-60: #a855f799;
--color-tb17-c2-60: oklch(0.64 0.24 305 / 0.6);
--color-tb17-c3: #f472b6;
--color-tb17-c3: oklch(0.74 0.17 349);
--font-tb17-sans: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
--ease-tb17-out: cubic-bezier(0.16, 1, 0.3, 1);
--animate-tb17-flicker: tb-17-flicker 6s ease-in-out infinite;
--animate-tb17-spin: tb-17-spin 7s linear infinite;
--animate-tb17-burst: tb-17-burst 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tb-17-flicker {
0%,
100% {
opacity: 1;
}
48% {
opacity: 0.94;
}
50% {
opacity: 0.82;
}
52% {
opacity: 0.97;
}
}
@keyframes tb-17-spin {
to {
--tb-17-a: 360deg;
}
}
@keyframes tb-17-burst {
0% {
opacity: 0.9;
scale: 0.15;
}
100% {
opacity: 0;
scale: 3;
}
}
.tb-17 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(44rem 26rem at 50% 50%, color-mix(in oklab, var(--color-tb17-c2) 12%, transparent), transparent 72%), var(--color-tb17-bg);
}
@media (prefers-color-scheme: light) {
.tb-17:not([data-theme="dark"]) {
--color-tb17-bg: oklch(0.12 0.02 270);
--color-tb17-shell: oklch(0.16 0.03 272);
}
}
.tb-17[data-theme="light"] {
--color-tb17-bg: oklch(0.12 0.02 270);
--color-tb17-shell: oklch(0.16 0.03 272);
}
@media (forced-colors: active) {
.tb-17 button {
background: ButtonFace;
color: ButtonText;
border: 1px solid ButtonText;
box-shadow: none;
text-shadow: none;
}
.tb-17 button 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=Chakra+Petch: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=Chakra+Petch:wght@500;600;700&display=swap">What changed in the port
Which parts became utilities, which stayed CSS, and why.
- Utilities: both shadow stacks, the plasma layer and its hover acceleration, the burst ring, the flicker, every state. CSS: the
@propertyregistration, three keyframe blocks and the stage backdrop. - Ten alpha variants of one colour is the port's visible cost here (
--color-tb17-tube-90through-20). The CSS version computed them inline withcolor-mix(); v4 can do that inside an arbitrary value, but[text-shadow:0_0_4px_color-mix(in_oklab,var(--tube)_90%,transparent),...]is unreadable. Named alpha tokens are the lesser evil, and they compose asbg-*/border-*utilities too. group-hover:[animation-duration:3.2s]is a nice v4 detail: you can override one longhand of a running animation from a variant, without redefining the animation.- A11y fix from the CSS original: the resting label was pure
--tubeon--shell— about 6.8:1, fine — but the:hoverrule setcolor:#f4feffwhile the plasma rose to 0.62 opacity behind it. Measured at the brightest frame that was ≈3.9:1. The port lowers the plasma's hover opacity from the original 0.62 on a 16px blur to the same value on a shell that is two steps darker, restoring ≈5.2: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 Neon Plasma Burst Button
Source: https://codefronts.com/components/tailwind-css-buttons/tailwind-neon-plasma-burst-button/
A neon tube that idles at low current, floods with plasma on hover, and fires an expanding shock ring on press. The glow is layered text-shadow and box-shadow rather than a blur filter, so it stays crisp at any zoom — and both stacks are single arbitrary utilities, because a glow is one recipe, not six values.
## HTML
```html
<div class="tb-17 w-full min-h-svh grid place-items-center font-tb17-sans p-[clamp(1.5rem,6vw,4rem)]">
<button type="button" class="group relative overflow-hidden isolate cursor-pointer min-h-14 px-8 border-0 rounded-[0.6rem] text-[0.9375rem] font-semibold uppercase tracking-[0.14em] text-tb17-tube bg-tb17-shell animate-tb17-flicker transition-[box-shadow,color,scale] duration-[350ms] ease-tb17-out [text-shadow:0_0_4px_var(--color-tb17-tube-90),0_0_12px_var(--color-tb17-tube-55),0_0_34px_var(--color-tb17-tube-30)] shadow-[inset_0_0_14px_var(--color-tb17-tube-20),0_0_0_1px_var(--color-tb17-tube-50),0_0_30px_-8px_var(--color-tb17-tube-40)] hover:text-tb17-hot hover:shadow-[inset_0_0_22px_var(--color-tb17-tube-32),0_0_0_1px_var(--color-tb17-tube-80),0_0_46px_-6px_var(--color-tb17-c2-60)] focus-visible:text-tb17-hot focus-visible:shadow-[inset_0_0_22px_var(--color-tb17-tube-32),0_0_0_1px_var(--color-tb17-tube-80),0_0_46px_-6px_var(--color-tb17-c2-60)] focus-visible:outline-2 focus-visible:outline-offset-[5px] focus-visible:outline-tb17-c1 active:scale-[0.97] motion-reduce:animate-none motion-reduce:transition-none">
<span aria-hidden="true" class="absolute -inset-[40%] z-10 pointer-events-none opacity-30 blur-[16px] saturate-150 bg-[conic-gradient(from_var(--tb-17-a),var(--color-tb17-c1),var(--color-tb17-c2),var(--color-tb17-c3),var(--color-tb17-c1))] animate-tb17-spin transition-opacity duration-[400ms] group-hover:opacity-[0.62] group-hover:[animation-duration:3.2s] group-focus-visible:opacity-[0.62] motion-reduce:animate-none"></span>
<span aria-hidden="true" class="absolute z-10 top-1/2 left-1/2 size-24 -mt-12 -ml-12 rounded-full border-2 border-tb17-c1 opacity-0 pointer-events-none group-active:animate-tb17-burst motion-reduce:hidden"></span>
<span class="relative z-20">Initiate sequence</span>
</button>
</div>
```
## CSS
```css
@import "tailwindcss";
@property --tb-17-a {
syntax: '<angle>';
inherits: false;
initial-value: 0deg;
}
@theme {
--color-tb17-bg: #05060a;
--color-tb17-bg: oklch(0.1 0.015 265);
--color-tb17-shell: #0b0d16;
--color-tb17-shell: oklch(0.15 0.025 270);
--color-tb17-tube: #22d3ee;
--color-tb17-tube: oklch(0.82 0.14 200);
--color-tb17-hot: #f4feff;
--color-tb17-tube-90: #22d3eee6;
--color-tb17-tube-90: oklch(0.82 0.14 200 / 0.9);
--color-tb17-tube-80: #22d3eecc;
--color-tb17-tube-80: oklch(0.82 0.14 200 / 0.8);
--color-tb17-tube-55: #22d3ee8c;
--color-tb17-tube-55: oklch(0.82 0.14 200 / 0.55);
--color-tb17-tube-50: #22d3ee80;
--color-tb17-tube-50: oklch(0.82 0.14 200 / 0.5);
--color-tb17-tube-40: #22d3ee66;
--color-tb17-tube-40: oklch(0.82 0.14 200 / 0.4);
--color-tb17-tube-32: #22d3ee52;
--color-tb17-tube-32: oklch(0.82 0.14 200 / 0.32);
--color-tb17-tube-30: #22d3ee4d;
--color-tb17-tube-30: oklch(0.82 0.14 200 / 0.3);
--color-tb17-tube-20: #22d3ee33;
--color-tb17-tube-20: oklch(0.82 0.14 200 / 0.2);
--color-tb17-c1: #22d3ee;
--color-tb17-c1: oklch(0.82 0.14 200);
--color-tb17-c2: #a855f7;
--color-tb17-c2: oklch(0.64 0.24 305);
--color-tb17-c2-60: #a855f799;
--color-tb17-c2-60: oklch(0.64 0.24 305 / 0.6);
--color-tb17-c3: #f472b6;
--color-tb17-c3: oklch(0.74 0.17 349);
--font-tb17-sans: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
--ease-tb17-out: cubic-bezier(0.16, 1, 0.3, 1);
--animate-tb17-flicker: tb-17-flicker 6s ease-in-out infinite;
--animate-tb17-spin: tb-17-spin 7s linear infinite;
--animate-tb17-burst: tb-17-burst 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tb-17-flicker {
0%,
100% {
opacity: 1;
}
48% {
opacity: 0.94;
}
50% {
opacity: 0.82;
}
52% {
opacity: 0.97;
}
}
@keyframes tb-17-spin {
to {
--tb-17-a: 360deg;
}
}
@keyframes tb-17-burst {
0% {
opacity: 0.9;
scale: 0.15;
}
100% {
opacity: 0;
scale: 3;
}
}
.tb-17 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(44rem 26rem at 50% 50%, color-mix(in oklab, var(--color-tb17-c2) 12%, transparent), transparent 72%), var(--color-tb17-bg);
}
@media (prefers-color-scheme: light) {
.tb-17:not([data-theme="dark"]) {
--color-tb17-bg: oklch(0.12 0.02 270);
--color-tb17-shell: oklch(0.16 0.03 272);
}
}
.tb-17[data-theme="light"] {
--color-tb17-bg: oklch(0.12 0.02 270);
--color-tb17-shell: oklch(0.16 0.03 272);
}
@media (forced-colors: active) {
.tb-17 button {
background: ButtonFace;
color: ButtonText;
border: 1px solid ButtonText;
box-shadow: none;
text-shadow: none;
}
.tb-17 button 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 Neon Plasma Burst Button
Source: https://codefronts.com/components/tailwind-css-buttons/tailwind-neon-plasma-burst-button/
A neon tube that idles at low current, floods with plasma on hover, and fires an expanding shock ring on press. The glow is layered text-shadow and box-shadow rather than a blur filter, so it stays crisp at any zoom — and both stacks are single arbitrary utilities, because a glow is one recipe, not six values.
## HTML
```html
<div class="tb-17 w-full min-h-svh grid place-items-center font-tb17-sans p-[clamp(1.5rem,6vw,4rem)]">
<button type="button" class="group relative overflow-hidden isolate cursor-pointer min-h-14 px-8 border-0 rounded-[0.6rem] text-[0.9375rem] font-semibold uppercase tracking-[0.14em] text-tb17-tube bg-tb17-shell animate-tb17-flicker transition-[box-shadow,color,scale] duration-[350ms] ease-tb17-out [text-shadow:0_0_4px_var(--color-tb17-tube-90),0_0_12px_var(--color-tb17-tube-55),0_0_34px_var(--color-tb17-tube-30)] shadow-[inset_0_0_14px_var(--color-tb17-tube-20),0_0_0_1px_var(--color-tb17-tube-50),0_0_30px_-8px_var(--color-tb17-tube-40)] hover:text-tb17-hot hover:shadow-[inset_0_0_22px_var(--color-tb17-tube-32),0_0_0_1px_var(--color-tb17-tube-80),0_0_46px_-6px_var(--color-tb17-c2-60)] focus-visible:text-tb17-hot focus-visible:shadow-[inset_0_0_22px_var(--color-tb17-tube-32),0_0_0_1px_var(--color-tb17-tube-80),0_0_46px_-6px_var(--color-tb17-c2-60)] focus-visible:outline-2 focus-visible:outline-offset-[5px] focus-visible:outline-tb17-c1 active:scale-[0.97] motion-reduce:animate-none motion-reduce:transition-none">
<span aria-hidden="true" class="absolute -inset-[40%] z-10 pointer-events-none opacity-30 blur-[16px] saturate-150 bg-[conic-gradient(from_var(--tb-17-a),var(--color-tb17-c1),var(--color-tb17-c2),var(--color-tb17-c3),var(--color-tb17-c1))] animate-tb17-spin transition-opacity duration-[400ms] group-hover:opacity-[0.62] group-hover:[animation-duration:3.2s] group-focus-visible:opacity-[0.62] motion-reduce:animate-none"></span>
<span aria-hidden="true" class="absolute z-10 top-1/2 left-1/2 size-24 -mt-12 -ml-12 rounded-full border-2 border-tb17-c1 opacity-0 pointer-events-none group-active:animate-tb17-burst motion-reduce:hidden"></span>
<span class="relative z-20">Initiate sequence</span>
</button>
</div>
```
## CSS
```css
@import "tailwindcss";
@property --tb-17-a {
syntax: '<angle>';
inherits: false;
initial-value: 0deg;
}
@theme {
--color-tb17-bg: #05060a;
--color-tb17-bg: oklch(0.1 0.015 265);
--color-tb17-shell: #0b0d16;
--color-tb17-shell: oklch(0.15 0.025 270);
--color-tb17-tube: #22d3ee;
--color-tb17-tube: oklch(0.82 0.14 200);
--color-tb17-hot: #f4feff;
--color-tb17-tube-90: #22d3eee6;
--color-tb17-tube-90: oklch(0.82 0.14 200 / 0.9);
--color-tb17-tube-80: #22d3eecc;
--color-tb17-tube-80: oklch(0.82 0.14 200 / 0.8);
--color-tb17-tube-55: #22d3ee8c;
--color-tb17-tube-55: oklch(0.82 0.14 200 / 0.55);
--color-tb17-tube-50: #22d3ee80;
--color-tb17-tube-50: oklch(0.82 0.14 200 / 0.5);
--color-tb17-tube-40: #22d3ee66;
--color-tb17-tube-40: oklch(0.82 0.14 200 / 0.4);
--color-tb17-tube-32: #22d3ee52;
--color-tb17-tube-32: oklch(0.82 0.14 200 / 0.32);
--color-tb17-tube-30: #22d3ee4d;
--color-tb17-tube-30: oklch(0.82 0.14 200 / 0.3);
--color-tb17-tube-20: #22d3ee33;
--color-tb17-tube-20: oklch(0.82 0.14 200 / 0.2);
--color-tb17-c1: #22d3ee;
--color-tb17-c1: oklch(0.82 0.14 200);
--color-tb17-c2: #a855f7;
--color-tb17-c2: oklch(0.64 0.24 305);
--color-tb17-c2-60: #a855f799;
--color-tb17-c2-60: oklch(0.64 0.24 305 / 0.6);
--color-tb17-c3: #f472b6;
--color-tb17-c3: oklch(0.74 0.17 349);
--font-tb17-sans: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
--ease-tb17-out: cubic-bezier(0.16, 1, 0.3, 1);
--animate-tb17-flicker: tb-17-flicker 6s ease-in-out infinite;
--animate-tb17-spin: tb-17-spin 7s linear infinite;
--animate-tb17-burst: tb-17-burst 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tb-17-flicker {
0%,
100% {
opacity: 1;
}
48% {
opacity: 0.94;
}
50% {
opacity: 0.82;
}
52% {
opacity: 0.97;
}
}
@keyframes tb-17-spin {
to {
--tb-17-a: 360deg;
}
}
@keyframes tb-17-burst {
0% {
opacity: 0.9;
scale: 0.15;
}
100% {
opacity: 0;
scale: 3;
}
}
.tb-17 {
width: 100%;
min-height: 100vh;
min-height: 100svh;
background: radial-gradient(44rem 26rem at 50% 50%, color-mix(in oklab, var(--color-tb17-c2) 12%, transparent), transparent 72%), var(--color-tb17-bg);
}
@media (prefers-color-scheme: light) {
.tb-17:not([data-theme="dark"]) {
--color-tb17-bg: oklch(0.12 0.02 270);
--color-tb17-shell: oklch(0.16 0.03 272);
}
}
.tb-17[data-theme="light"] {
--color-tb17-bg: oklch(0.12 0.02 270);
--color-tb17-shell: oklch(0.16 0.03 272);
}
@media (forced-colors: active) {
.tb-17 button {
background: ButtonFace;
color: ButtonText;
border: 1px solid ButtonText;
box-shadow: none;
text-shadow: none;
}
.tb-17 button span[aria-hidden] {
display: none;
}
}
```How this works
Three shadow layers, not one. A single large soft shadow reads as a blur filter; neon needs a tight core, a mid halo and a wide bloom. Tailwind holds each stack as one arbitrary value, which keeps the relationship between the layers visible:
class="[text-shadow:0_0_4px_var(--color-tb17-tube-90),
0_0_12px_var(--color-tb17-tube-55),
0_0_34px_var(--color-tb17-tube-30)]"The plasma is a registered-angle conic gradient under a blur — @property in the CSS block, the animation as an @theme token, and everything else a utility. The same division as demo 05, and for the same reason.
The hover state brightens the label to near-white rather than leaving it tinted, because the plasma's opacity rise puts more light behind the text and the contrast has to be checked at the brightest frame, not the average.
Make it yours
--color-tb17-tubedrives the tube colour; the three glow alphas are derived tokens beside it.- Delete
animate-tb17-flickerfor a steady tube — it is deliberately subtle at a 6% swing. - Cyberpunk mix: set
--color-tb17-c1/c2/c3and leave the tube near-white; the plasma tints the glow. - Burst reach is the
scale:3in the keyframe. Keep the ring border thin or it reads as a bubble. - Neon needs a dark ground. This demo forces its own, and the light-scheme override deepens the button rather than the page.
Gotchas — read before shipping
- Neon on a light background is unreadable. If your page is light, keep the button dark.
- Layered shadows are paint-heavy. Animate
opacityon a separate glow element — never transition the shadow list itself. blur-*creates a containing block for fixed-position descendants. Never put a tooltip inside a blurred layer.- A flickering label is a contrast hazard. This flicker moves the shell's opacity, not the text colour.
- Test label contrast at the plasma's brightest frame. 4.5:1 on average is not 4.5:1.
Browser support
| Chrome | Safari | Firefox | Edge |
|---|---|---|---|
| 111+ | 16.4+ | 128+ | 111+ |
@property matches Tailwind v4's own floor; without it the plasma holds a static angle and everything else is unchanged. Layered shadows and conic-gradient are universal.