21 / 29
All 29 in 29 Tailwind CSS Checkboxes
- 01Tailwind CSS Toggle Switch — iOS-Style SaaS Settings
- 02Tailwind Filter Chip Checkbox — Style Checkbox as Button
- 03Tailwind Pricing Plan Card Select — Checkbox-Style Selectable Cards
- 04Pure Tailwind CSS Accordion with Checkbox — No JavaScript
- 05Tailwind Indeterminate Checkbox — Select All with Tri-State
- 06Accessible Custom Checkbox in Tailwind CSS — WCAG Focus Ring
- 07Tailwind Slide Toggle with ON/OFF Labels — GPU translate3d
- 08Neon Glow Checkbox in Tailwind CSS — Dark Mode Gaming UI
- 09Animated SVG Checkmark in Tailwind CSS — stroke-dashoffset Draw
- 10Bouncy Checkbox Animation in Tailwind CSS — Spring cubic-bezier
- 11Glassmorphism Checkbox in Tailwind CSS — backdrop-blur Frosted Glass
- 12Neumorphism Checkbox in Tailwind CSS — Soft UI
- 13Liquid Fill Checkbox Animation in Tailwind CSS — Water Wave
- 14Rotating Ring Checkbox in Tailwind CSS — Spin-to-Check
- 15Brutalist Checkbox in Tailwind CSS — Neo-Brutalism Hard Shadow
- 16Animated Gradient Checkbox in Tailwind CSS — Rainbow Sweep
- 173D Flip Checkbox in Tailwind CSS — perspective & backface-hidden
- 18Material Ripple Checkbox in Tailwind CSS — State Layer & Wave
- 19Retro Pixel Art Checkbox in Tailwind CSS — 8-Bit Arcade Menu
- 20Tailwind CSS To-Do List Checkbox with Animated Strikethrough
- 21Gooey Blob Checkbox in Tailwind CSS — blur + contrast Filter
- 22Tailwind Dark Mode Toggle Switch — Sun & Moon, No JavaScript
- 23Pulse Ring Checkbox in Tailwind CSS — Live Status Indicator
- 24Tailwind CSS Dash-to-Check SVG Morph Checkbox
- 25Tri-State Checkbox in Tailwind CSS + JavaScript — Done / N/A / Unset
- 26Magnetic Hover Checkbox in Tailwind CSS + JavaScript
- 27Confetti Checkbox Animation in Tailwind CSS — Pure CSS Particle Burst
- 28Slide-In Label Checkbox in Tailwind CSS — Saved Tag Reveal
- 29Aurora Gradient Toggle Switch in Tailwind CSS — Premium Dark UI
Gooey Blob Checkbox in Tailwind CSS — blur + contrast Filter
Two blobs merge into a fill like drops of ink: a satellite orbits out and back while the main blob swells, and blur-[4px] contrast-[14] on their parent fuses them into one sticky shape. The port fixes the effect itself — the contrast trick only works over an opaque backdrop, which the original lacked.
Untitled UI Pro: 5,000+ React + Tailwind CSS v4 components · from $349 one-time
Untitled UI React · Affiliate link
The code
<section class="tcb-21 w-full min-h-svh grid place-items-center bg-tcb21-bg px-5 py-14 font-tcb21-sans text-tcb21-ink selection:bg-tcb21-acc selection:text-white" aria-label="Gooey blob checkboxes">
<div class="w-full max-w-[25rem] rounded-2xl border border-tcb21-line bg-white px-4 py-2.5">
<label class="group flex min-h-14 cursor-pointer items-center gap-4 px-2"><input type="checkbox" class="peer sr-only" checked><span aria-hidden="true" class="relative grid size-[30px] flex-none place-items-center overflow-hidden rounded-[9px] border-2 border-tcb21-box bg-white text-white transition-colors duration-250 peer-checked:border-tcb21-acc peer-focus-visible:outline-3 peer-focus-visible:outline-offset-3 peer-focus-visible:outline-tcb21-acc"><span class="absolute inset-0 bg-white blur-[4px] contrast-[14]"><span class="absolute left-1/2 top-1/2 size-4 -translate-1/2 scale-0 rounded-full bg-tcb21-acc transition-[scale] duration-400 ease-[cubic-bezier(.3,1.2,.4,1)] group-has-checked:scale-[2.6] motion-reduce:transition-none"></span><span class="absolute left-1/2 top-1/2 size-[9px] -translate-1/2 scale-0 rounded-full bg-tcb21-acc group-has-checked:animate-tcb21-orbit group-has-checked:scale-200 motion-reduce:animate-none"></span></span><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" class="relative z-10 size-[15px] scale-50 opacity-0 transition delay-120 duration-250 ease-[cubic-bezier(.2,.9,.3,1.3)] group-has-checked:scale-100 group-has-checked:opacity-100"><path d="M20 6 9 17l-5-5"/></svg></span><span class="text-[15px] font-medium">Blend layers</span></label>
<label class="group flex min-h-14 cursor-pointer items-center gap-4 px-2"><input type="checkbox" class="peer sr-only"><span aria-hidden="true" class="relative grid size-[30px] flex-none place-items-center overflow-hidden rounded-[9px] border-2 border-tcb21-box bg-white text-white transition-colors duration-250 peer-checked:border-tcb21-acc peer-focus-visible:outline-3 peer-focus-visible:outline-offset-3 peer-focus-visible:outline-tcb21-acc"><span class="absolute inset-0 bg-white blur-[4px] contrast-[14]"><span class="absolute left-1/2 top-1/2 size-4 -translate-1/2 scale-0 rounded-full bg-tcb21-acc transition-[scale] duration-400 ease-[cubic-bezier(.3,1.2,.4,1)] group-has-checked:scale-[2.6] motion-reduce:transition-none"></span><span class="absolute left-1/2 top-1/2 size-[9px] -translate-1/2 scale-0 rounded-full bg-tcb21-acc group-has-checked:animate-tcb21-orbit group-has-checked:scale-200 motion-reduce:animate-none"></span></span><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" class="relative z-10 size-[15px] scale-50 opacity-0 transition delay-120 duration-250 ease-[cubic-bezier(.2,.9,.3,1.3)] group-has-checked:scale-100 group-has-checked:opacity-100"><path d="M20 6 9 17l-5-5"/></svg></span><span class="text-[15px] font-medium">Merge branches</span></label>
<label class="group flex min-h-14 cursor-pointer items-center gap-4 px-2"><input type="checkbox" class="peer sr-only"><span aria-hidden="true" class="relative grid size-[30px] flex-none place-items-center overflow-hidden rounded-[9px] border-2 border-tcb21-box bg-white text-white transition-colors duration-250 peer-checked:border-tcb21-acc peer-focus-visible:outline-3 peer-focus-visible:outline-offset-3 peer-focus-visible:outline-tcb21-acc"><span class="absolute inset-0 bg-white blur-[4px] contrast-[14]"><span class="absolute left-1/2 top-1/2 size-4 -translate-1/2 scale-0 rounded-full bg-tcb21-acc transition-[scale] duration-400 ease-[cubic-bezier(.3,1.2,.4,1)] group-has-checked:scale-[2.6] motion-reduce:transition-none"></span><span class="absolute left-1/2 top-1/2 size-[9px] -translate-1/2 scale-0 rounded-full bg-tcb21-acc group-has-checked:animate-tcb21-orbit group-has-checked:scale-200 motion-reduce:animate-none"></span></span><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" class="relative z-10 size-[15px] scale-50 opacity-0 transition delay-120 duration-250 ease-[cubic-bezier(.2,.9,.3,1.3)] group-has-checked:scale-100 group-has-checked:opacity-100"><path d="M20 6 9 17l-5-5"/></svg></span><span class="text-[15px] font-medium">Fuse particles</span></label>
</div>
</section><section class="tcb-21 w-full min-h-svh grid place-items-center bg-tcb21-bg px-5 py-14 font-tcb21-sans text-tcb21-ink selection:bg-tcb21-acc selection:text-white" aria-label="Gooey blob checkboxes">
<div class="w-full max-w-[25rem] rounded-2xl border border-tcb21-line bg-white px-4 py-2.5">
<label class="group flex min-h-14 cursor-pointer items-center gap-4 px-2"><input type="checkbox" class="peer sr-only" checked><span aria-hidden="true" class="relative grid size-[30px] flex-none place-items-center overflow-hidden rounded-[9px] border-2 border-tcb21-box bg-white text-white transition-colors duration-250 peer-checked:border-tcb21-acc peer-focus-visible:outline-3 peer-focus-visible:outline-offset-3 peer-focus-visible:outline-tcb21-acc"><span class="absolute inset-0 bg-white blur-[4px] contrast-[14]"><span class="absolute left-1/2 top-1/2 size-4 -translate-1/2 scale-0 rounded-full bg-tcb21-acc transition-[scale] duration-400 ease-[cubic-bezier(.3,1.2,.4,1)] group-has-checked:scale-[2.6] motion-reduce:transition-none"></span><span class="absolute left-1/2 top-1/2 size-[9px] -translate-1/2 scale-0 rounded-full bg-tcb21-acc group-has-checked:animate-tcb21-orbit group-has-checked:scale-200 motion-reduce:animate-none"></span></span><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" class="relative z-10 size-[15px] scale-50 opacity-0 transition delay-120 duration-250 ease-[cubic-bezier(.2,.9,.3,1.3)] group-has-checked:scale-100 group-has-checked:opacity-100"><path d="M20 6 9 17l-5-5"/></svg></span><span class="text-[15px] font-medium">Blend layers</span></label>
<label class="group flex min-h-14 cursor-pointer items-center gap-4 px-2"><input type="checkbox" class="peer sr-only"><span aria-hidden="true" class="relative grid size-[30px] flex-none place-items-center overflow-hidden rounded-[9px] border-2 border-tcb21-box bg-white text-white transition-colors duration-250 peer-checked:border-tcb21-acc peer-focus-visible:outline-3 peer-focus-visible:outline-offset-3 peer-focus-visible:outline-tcb21-acc"><span class="absolute inset-0 bg-white blur-[4px] contrast-[14]"><span class="absolute left-1/2 top-1/2 size-4 -translate-1/2 scale-0 rounded-full bg-tcb21-acc transition-[scale] duration-400 ease-[cubic-bezier(.3,1.2,.4,1)] group-has-checked:scale-[2.6] motion-reduce:transition-none"></span><span class="absolute left-1/2 top-1/2 size-[9px] -translate-1/2 scale-0 rounded-full bg-tcb21-acc group-has-checked:animate-tcb21-orbit group-has-checked:scale-200 motion-reduce:animate-none"></span></span><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" class="relative z-10 size-[15px] scale-50 opacity-0 transition delay-120 duration-250 ease-[cubic-bezier(.2,.9,.3,1.3)] group-has-checked:scale-100 group-has-checked:opacity-100"><path d="M20 6 9 17l-5-5"/></svg></span><span class="text-[15px] font-medium">Merge branches</span></label>
<label class="group flex min-h-14 cursor-pointer items-center gap-4 px-2"><input type="checkbox" class="peer sr-only"><span aria-hidden="true" class="relative grid size-[30px] flex-none place-items-center overflow-hidden rounded-[9px] border-2 border-tcb21-box bg-white text-white transition-colors duration-250 peer-checked:border-tcb21-acc peer-focus-visible:outline-3 peer-focus-visible:outline-offset-3 peer-focus-visible:outline-tcb21-acc"><span class="absolute inset-0 bg-white blur-[4px] contrast-[14]"><span class="absolute left-1/2 top-1/2 size-4 -translate-1/2 scale-0 rounded-full bg-tcb21-acc transition-[scale] duration-400 ease-[cubic-bezier(.3,1.2,.4,1)] group-has-checked:scale-[2.6] motion-reduce:transition-none"></span><span class="absolute left-1/2 top-1/2 size-[9px] -translate-1/2 scale-0 rounded-full bg-tcb21-acc group-has-checked:animate-tcb21-orbit group-has-checked:scale-200 motion-reduce:animate-none"></span></span><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" class="relative z-10 size-[15px] scale-50 opacity-0 transition delay-120 duration-250 ease-[cubic-bezier(.2,.9,.3,1.3)] group-has-checked:scale-100 group-has-checked:opacity-100"><path d="M20 6 9 17l-5-5"/></svg></span><span class="text-[15px] font-medium">Fuse particles</span></label>
</div>
</section>@import "tailwindcss";
@theme {
--color-tcb21-bg: #fbf3f1;
--color-tcb21-bg: oklch(0.97 0.012 30);
--color-tcb21-ink: #3a2723;
--color-tcb21-ink: oklch(0.29 0.03 30);
--color-tcb21-line: #f0ded9;
--color-tcb21-line: oklch(0.92 0.02 30);
--color-tcb21-box: #d59c90;
--color-tcb21-box: oklch(0.74 0.07 30);
--color-tcb21-acc: #e0364a;
--color-tcb21-acc: oklch(0.6 0.21 18);
--font-tcb21-sans: 'Bricolage Grotesque', system-ui, sans-serif;
--animate-tcb21-orbit: tcb21-orbit 0.55s ease;
@keyframes tcb21-orbit {
0% {
translate: -50% -50%;
scale: 0;
}
45% {
translate: 30% -160%;
scale: 1;
}
100% {
translate: -50% -50%;
scale: 2;
}
}
}
/* Root rule: the full-bleed contract, stated in CSS as well as in the markup's utilities, so the
stage is sized before the browser build compiles. */
.tcb-21 {
width: 100%;
min-height: 100svh;
}@import "tailwindcss";
@theme {
--color-tcb21-bg: #fbf3f1;
--color-tcb21-bg: oklch(0.97 0.012 30);
--color-tcb21-ink: #3a2723;
--color-tcb21-ink: oklch(0.29 0.03 30);
--color-tcb21-line: #f0ded9;
--color-tcb21-line: oklch(0.92 0.02 30);
--color-tcb21-box: #d59c90;
--color-tcb21-box: oklch(0.74 0.07 30);
--color-tcb21-acc: #e0364a;
--color-tcb21-acc: oklch(0.6 0.21 18);
--font-tcb21-sans: 'Bricolage Grotesque', system-ui, sans-serif;
--animate-tcb21-orbit: tcb21-orbit 0.55s ease;
@keyframes tcb21-orbit {
0% {
translate: -50% -50%;
scale: 0;
}
45% {
translate: 30% -160%;
scale: 1;
}
100% {
translate: -50% -50%;
scale: 2;
}
}
}
/* Root rule: the full-bleed contract, stated in CSS as well as in the markup's utilities, so the
stage is sized before the browser build compiles. */
.tcb-21 {
width: 100%;
min-height: 100svh;
}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-tcb21-bg: #fbf3f1;
--color-tcb21-bg: oklch(0.97 0.012 30);
--color-tcb21-ink: #3a2723;
--color-tcb21-ink: oklch(0.29 0.03 30);
--color-tcb21-line: #f0ded9;
--color-tcb21-line: oklch(0.92 0.02 30);
--color-tcb21-box: #d59c90;
--color-tcb21-box: oklch(0.74 0.07 30);
--color-tcb21-acc: #e0364a;
--color-tcb21-acc: oklch(0.6 0.21 18);
--font-tcb21-sans: 'Bricolage Grotesque', system-ui, sans-serif;
--animate-tcb21-orbit: tcb21-orbit 0.55s ease;
@keyframes tcb21-orbit {
0% {
translate: -50% -50%;
scale: 0;
}
45% {
translate: 30% -160%;
scale: 1;
}
100% {
translate: -50% -50%;
scale: 2;
}
}
}
/* Root rule: the full-bleed contract, stated in CSS as well as in the markup's utilities, so the
stage is sized before the browser build compiles. */
.tcb-21 {
width: 100%;
min-height: 100svh;
}@import "tailwindcss";
@theme {
--color-tcb21-bg: #fbf3f1;
--color-tcb21-bg: oklch(0.97 0.012 30);
--color-tcb21-ink: #3a2723;
--color-tcb21-ink: oklch(0.29 0.03 30);
--color-tcb21-line: #f0ded9;
--color-tcb21-line: oklch(0.92 0.02 30);
--color-tcb21-box: #d59c90;
--color-tcb21-box: oklch(0.74 0.07 30);
--color-tcb21-acc: #e0364a;
--color-tcb21-acc: oklch(0.6 0.21 18);
--font-tcb21-sans: 'Bricolage Grotesque', system-ui, sans-serif;
--animate-tcb21-orbit: tcb21-orbit 0.55s ease;
@keyframes tcb21-orbit {
0% {
translate: -50% -50%;
scale: 0;
}
45% {
translate: 30% -160%;
scale: 1;
}
100% {
translate: -50% -50%;
scale: 2;
}
}
}
/* Root rule: the full-bleed contract, stated in CSS as well as in the markup's utilities, so the
stage is sized before the browser build compiles. */
.tcb-21 {
width: 100%;
min-height: 100svh;
}<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=Bricolage+Grotesque:opsz,wght@12..96,400..800&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=Bricolage+Grotesque:opsz,wght@12..96,400..800&display=swap">What changed in the port
Which parts became utilities, which stayed CSS, and why.
filter:blur(4px) contrast(14)becameblur-[4px] contrast-[14];transform:translate(-50%,-50%) scale(0)became-translate-1/2 scale-0.- The orbit keyframes now animate the individual
translate/scaleproperties that v4 utilities use, so the animation and the utilities agree. - UI upgrade from the CSS original: bug fix — the goo layer gained an opaque
bg-white; without it,contrast()can't sharpen alpha and the blobs never visibly merged. - UI upgrade: the empty border rose from
#e6bcb2(1.6:1) to 3: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: Gooey Blob Checkbox in Tailwind CSS — blur + contrast Filter
Source: https://codefronts.com/components/tailwind-css-checkboxes/gooey-blob-checkbox-tailwind/
Two blobs merge into a fill like drops of ink: a satellite orbits out and back while the main blob swells, and blur-[4px] contrast-[14] on their parent fuses them into one sticky shape. The port fixes the effect itself — the contrast trick only works over an opaque backdrop, which the original lacked.
## HTML
```html
<section class="tcb-21 w-full min-h-svh grid place-items-center bg-tcb21-bg px-5 py-14 font-tcb21-sans text-tcb21-ink selection:bg-tcb21-acc selection:text-white" aria-label="Gooey blob checkboxes">
<div class="w-full max-w-[25rem] rounded-2xl border border-tcb21-line bg-white px-4 py-2.5">
<label class="group flex min-h-14 cursor-pointer items-center gap-4 px-2"><input type="checkbox" class="peer sr-only" checked><span aria-hidden="true" class="relative grid size-[30px] flex-none place-items-center overflow-hidden rounded-[9px] border-2 border-tcb21-box bg-white text-white transition-colors duration-250 peer-checked:border-tcb21-acc peer-focus-visible:outline-3 peer-focus-visible:outline-offset-3 peer-focus-visible:outline-tcb21-acc"><span class="absolute inset-0 bg-white blur-[4px] contrast-[14]"><span class="absolute left-1/2 top-1/2 size-4 -translate-1/2 scale-0 rounded-full bg-tcb21-acc transition-[scale] duration-400 ease-[cubic-bezier(.3,1.2,.4,1)] group-has-checked:scale-[2.6] motion-reduce:transition-none"></span><span class="absolute left-1/2 top-1/2 size-[9px] -translate-1/2 scale-0 rounded-full bg-tcb21-acc group-has-checked:animate-tcb21-orbit group-has-checked:scale-200 motion-reduce:animate-none"></span></span><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" class="relative z-10 size-[15px] scale-50 opacity-0 transition delay-120 duration-250 ease-[cubic-bezier(.2,.9,.3,1.3)] group-has-checked:scale-100 group-has-checked:opacity-100"><path d="M20 6 9 17l-5-5"/></svg></span><span class="text-[15px] font-medium">Blend layers</span></label>
<label class="group flex min-h-14 cursor-pointer items-center gap-4 px-2"><input type="checkbox" class="peer sr-only"><span aria-hidden="true" class="relative grid size-[30px] flex-none place-items-center overflow-hidden rounded-[9px] border-2 border-tcb21-box bg-white text-white transition-colors duration-250 peer-checked:border-tcb21-acc peer-focus-visible:outline-3 peer-focus-visible:outline-offset-3 peer-focus-visible:outline-tcb21-acc"><span class="absolute inset-0 bg-white blur-[4px] contrast-[14]"><span class="absolute left-1/2 top-1/2 size-4 -translate-1/2 scale-0 rounded-full bg-tcb21-acc transition-[scale] duration-400 ease-[cubic-bezier(.3,1.2,.4,1)] group-has-checked:scale-[2.6] motion-reduce:transition-none"></span><span class="absolute left-1/2 top-1/2 size-[9px] -translate-1/2 scale-0 rounded-full bg-tcb21-acc group-has-checked:animate-tcb21-orbit group-has-checked:scale-200 motion-reduce:animate-none"></span></span><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" class="relative z-10 size-[15px] scale-50 opacity-0 transition delay-120 duration-250 ease-[cubic-bezier(.2,.9,.3,1.3)] group-has-checked:scale-100 group-has-checked:opacity-100"><path d="M20 6 9 17l-5-5"/></svg></span><span class="text-[15px] font-medium">Merge branches</span></label>
<label class="group flex min-h-14 cursor-pointer items-center gap-4 px-2"><input type="checkbox" class="peer sr-only"><span aria-hidden="true" class="relative grid size-[30px] flex-none place-items-center overflow-hidden rounded-[9px] border-2 border-tcb21-box bg-white text-white transition-colors duration-250 peer-checked:border-tcb21-acc peer-focus-visible:outline-3 peer-focus-visible:outline-offset-3 peer-focus-visible:outline-tcb21-acc"><span class="absolute inset-0 bg-white blur-[4px] contrast-[14]"><span class="absolute left-1/2 top-1/2 size-4 -translate-1/2 scale-0 rounded-full bg-tcb21-acc transition-[scale] duration-400 ease-[cubic-bezier(.3,1.2,.4,1)] group-has-checked:scale-[2.6] motion-reduce:transition-none"></span><span class="absolute left-1/2 top-1/2 size-[9px] -translate-1/2 scale-0 rounded-full bg-tcb21-acc group-has-checked:animate-tcb21-orbit group-has-checked:scale-200 motion-reduce:animate-none"></span></span><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" class="relative z-10 size-[15px] scale-50 opacity-0 transition delay-120 duration-250 ease-[cubic-bezier(.2,.9,.3,1.3)] group-has-checked:scale-100 group-has-checked:opacity-100"><path d="M20 6 9 17l-5-5"/></svg></span><span class="text-[15px] font-medium">Fuse particles</span></label>
</div>
</section>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-tcb21-bg: #fbf3f1;
--color-tcb21-bg: oklch(0.97 0.012 30);
--color-tcb21-ink: #3a2723;
--color-tcb21-ink: oklch(0.29 0.03 30);
--color-tcb21-line: #f0ded9;
--color-tcb21-line: oklch(0.92 0.02 30);
--color-tcb21-box: #d59c90;
--color-tcb21-box: oklch(0.74 0.07 30);
--color-tcb21-acc: #e0364a;
--color-tcb21-acc: oklch(0.6 0.21 18);
--font-tcb21-sans: 'Bricolage Grotesque', system-ui, sans-serif;
--animate-tcb21-orbit: tcb21-orbit 0.55s ease;
@keyframes tcb21-orbit {
0% {
translate: -50% -50%;
scale: 0;
}
45% {
translate: 30% -160%;
scale: 1;
}
100% {
translate: -50% -50%;
scale: 2;
}
}
}
/* Root rule: the full-bleed contract, stated in CSS as well as in the markup's utilities, so the
stage is sized before the browser build compiles. */
.tcb-21 {
width: 100%;
min-height: 100svh;
}
```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: Gooey Blob Checkbox in Tailwind CSS — blur + contrast Filter
Source: https://codefronts.com/components/tailwind-css-checkboxes/gooey-blob-checkbox-tailwind/
Two blobs merge into a fill like drops of ink: a satellite orbits out and back while the main blob swells, and blur-[4px] contrast-[14] on their parent fuses them into one sticky shape. The port fixes the effect itself — the contrast trick only works over an opaque backdrop, which the original lacked.
## HTML
```html
<section class="tcb-21 w-full min-h-svh grid place-items-center bg-tcb21-bg px-5 py-14 font-tcb21-sans text-tcb21-ink selection:bg-tcb21-acc selection:text-white" aria-label="Gooey blob checkboxes">
<div class="w-full max-w-[25rem] rounded-2xl border border-tcb21-line bg-white px-4 py-2.5">
<label class="group flex min-h-14 cursor-pointer items-center gap-4 px-2"><input type="checkbox" class="peer sr-only" checked><span aria-hidden="true" class="relative grid size-[30px] flex-none place-items-center overflow-hidden rounded-[9px] border-2 border-tcb21-box bg-white text-white transition-colors duration-250 peer-checked:border-tcb21-acc peer-focus-visible:outline-3 peer-focus-visible:outline-offset-3 peer-focus-visible:outline-tcb21-acc"><span class="absolute inset-0 bg-white blur-[4px] contrast-[14]"><span class="absolute left-1/2 top-1/2 size-4 -translate-1/2 scale-0 rounded-full bg-tcb21-acc transition-[scale] duration-400 ease-[cubic-bezier(.3,1.2,.4,1)] group-has-checked:scale-[2.6] motion-reduce:transition-none"></span><span class="absolute left-1/2 top-1/2 size-[9px] -translate-1/2 scale-0 rounded-full bg-tcb21-acc group-has-checked:animate-tcb21-orbit group-has-checked:scale-200 motion-reduce:animate-none"></span></span><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" class="relative z-10 size-[15px] scale-50 opacity-0 transition delay-120 duration-250 ease-[cubic-bezier(.2,.9,.3,1.3)] group-has-checked:scale-100 group-has-checked:opacity-100"><path d="M20 6 9 17l-5-5"/></svg></span><span class="text-[15px] font-medium">Blend layers</span></label>
<label class="group flex min-h-14 cursor-pointer items-center gap-4 px-2"><input type="checkbox" class="peer sr-only"><span aria-hidden="true" class="relative grid size-[30px] flex-none place-items-center overflow-hidden rounded-[9px] border-2 border-tcb21-box bg-white text-white transition-colors duration-250 peer-checked:border-tcb21-acc peer-focus-visible:outline-3 peer-focus-visible:outline-offset-3 peer-focus-visible:outline-tcb21-acc"><span class="absolute inset-0 bg-white blur-[4px] contrast-[14]"><span class="absolute left-1/2 top-1/2 size-4 -translate-1/2 scale-0 rounded-full bg-tcb21-acc transition-[scale] duration-400 ease-[cubic-bezier(.3,1.2,.4,1)] group-has-checked:scale-[2.6] motion-reduce:transition-none"></span><span class="absolute left-1/2 top-1/2 size-[9px] -translate-1/2 scale-0 rounded-full bg-tcb21-acc group-has-checked:animate-tcb21-orbit group-has-checked:scale-200 motion-reduce:animate-none"></span></span><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" class="relative z-10 size-[15px] scale-50 opacity-0 transition delay-120 duration-250 ease-[cubic-bezier(.2,.9,.3,1.3)] group-has-checked:scale-100 group-has-checked:opacity-100"><path d="M20 6 9 17l-5-5"/></svg></span><span class="text-[15px] font-medium">Merge branches</span></label>
<label class="group flex min-h-14 cursor-pointer items-center gap-4 px-2"><input type="checkbox" class="peer sr-only"><span aria-hidden="true" class="relative grid size-[30px] flex-none place-items-center overflow-hidden rounded-[9px] border-2 border-tcb21-box bg-white text-white transition-colors duration-250 peer-checked:border-tcb21-acc peer-focus-visible:outline-3 peer-focus-visible:outline-offset-3 peer-focus-visible:outline-tcb21-acc"><span class="absolute inset-0 bg-white blur-[4px] contrast-[14]"><span class="absolute left-1/2 top-1/2 size-4 -translate-1/2 scale-0 rounded-full bg-tcb21-acc transition-[scale] duration-400 ease-[cubic-bezier(.3,1.2,.4,1)] group-has-checked:scale-[2.6] motion-reduce:transition-none"></span><span class="absolute left-1/2 top-1/2 size-[9px] -translate-1/2 scale-0 rounded-full bg-tcb21-acc group-has-checked:animate-tcb21-orbit group-has-checked:scale-200 motion-reduce:animate-none"></span></span><svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" class="relative z-10 size-[15px] scale-50 opacity-0 transition delay-120 duration-250 ease-[cubic-bezier(.2,.9,.3,1.3)] group-has-checked:scale-100 group-has-checked:opacity-100"><path d="M20 6 9 17l-5-5"/></svg></span><span class="text-[15px] font-medium">Fuse particles</span></label>
</div>
</section>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-tcb21-bg: #fbf3f1;
--color-tcb21-bg: oklch(0.97 0.012 30);
--color-tcb21-ink: #3a2723;
--color-tcb21-ink: oklch(0.29 0.03 30);
--color-tcb21-line: #f0ded9;
--color-tcb21-line: oklch(0.92 0.02 30);
--color-tcb21-box: #d59c90;
--color-tcb21-box: oklch(0.74 0.07 30);
--color-tcb21-acc: #e0364a;
--color-tcb21-acc: oklch(0.6 0.21 18);
--font-tcb21-sans: 'Bricolage Grotesque', system-ui, sans-serif;
--animate-tcb21-orbit: tcb21-orbit 0.55s ease;
@keyframes tcb21-orbit {
0% {
translate: -50% -50%;
scale: 0;
}
45% {
translate: 30% -160%;
scale: 1;
}
100% {
translate: -50% -50%;
scale: 2;
}
}
}
/* Root rule: the full-bleed contract, stated in CSS as well as in the markup's utilities, so the
stage is sized before the browser build compiles. */
.tcb-21 {
width: 100%;
min-height: 100svh;
}
```How this works
How goo works. Blur softens the blobs' edges into gradients; a huge contrast() snaps those gradients back to hard edges — where two blurs overlap, they snap into one merged shape.
The fix. Contrast operates on colour, not alpha. Over a transparent layer, blurred edges stay semi-transparent and never sharpen. The goo layer now has bg-white, so contrast has something to push against.
Filter composition. In v4, blur-* and contrast-* write separate --tw-* variables into one filter, so they combine.
Make it yours
- Stickier:
blur-[6px] contrast-[20]. - More satellites: add blobs with staggered
[animation-delay:…]. - Colour:
--color-tcb21-acc(the white backdrop must match the box background). - Orbit path: edit the 45% keyframe translate.
Gotchas — read before shipping
- The goo backdrop colour must match the box's background or you'll see a halo.
- High contrast values also shift the blob colour — pick the accent after testing.
- Filters are GPU-heavy; keep gooey controls few.
Browser support
| Chrome | Safari | Firefox | Edge |
|---|---|---|---|
| 111+ | 16.4+ | 128+ | 111+ |
CSS filters are universal; the individual translate/scale properties need Chrome 104 / Safari 14.1.