26 / 32
All 32 in 32 Tailwind CSS Tabs
- 01Tailwind CSS Tabs with Sliding Underline Indicator
- 02Neon Glow Tailwind Tabs with Per-Tab Accent Colors
- 03Neo-Brutalist Tailwind Tabs with Press Effect
- 04Color-Coded Tailwind CSS Tabs Component
- 05VS Code Style File Tabs in Tailwind CSS
- 06iOS Segmented Control in Tailwind CSS
- 07Bento Grid Card Tabs in Tailwind CSS
- 08Vertical Tabs with Timeline Progress in Tailwind CSS
- 09Terminal Window Tabs in Tailwind CSS (Retro CRT)
- 10Expanding Icon Tabs in Tailwind CSS
- 11Typewriter Animation Tabs in Tailwind CSS
- 12Tailwind Tabs with Particle Burst Animation
- 13Animated Counter Tabs in Tailwind CSS (Type Specimen)
- 14Oversized Cropped Text Tabs in Tailwind CSS
- 15Tailwind Sidebar Navigation with Sliding Indicator
- 16Tailwind Bottom Navigation Bar with Expanding Labels
- 17Variable Font Weight Tabs in Tailwind CSS
- 18Uppercase Tabs with Thick Sliding Bar in Tailwind CSS
- 19Drop Cap Initial Letter Tabs in Tailwind CSS
- 20Industrial Stencil Tabs in Tailwind CSS
- 21Bracket Selection Tabs in Tailwind CSS
- 22Bauhaus Color Block Tabs in Tailwind CSS
- 23Inverted Rubber Stamp Tabs in Tailwind CSS
- 24Outlined Tabs with Corner Markers in Tailwind CSS
- 25Tailwind Pill Tab Bar with Icons
- 26Risograph Print Effect Tabs in Tailwind CSS
- 27Animated SVG Underline Tabs in Tailwind CSS
- 28Font Specimen Glyph Tabs in Tailwind CSS
- 29Sliding Pill Tabs with Icons in Tailwind CSS
- 30Folded Corner Tabs in Tailwind CSS (clip-path)
- 31Bookmark Ribbon Navigation in Tailwind CSS
- 32Neumorphic Inset Tabs in Tailwind CSS
Risograph Print Effect Tabs in Tailwind CSS
A two-plate riso pull: the chosen tab gets a fluoro-orange plate with a cyan plate misregistered 4px down-left, multiplied together into a third ink where they overlap. The port moves the bar onto paper stock — multiply only reads correctly on light paper, which is how a riso actually prints — and adds a halftone texture.
Untitled UI Pro: 5,000+ React + Tailwind CSS v4 components · from $349 one-time
Untitled UI React · Affiliate link
The code
<section class="ttb-26 group/tabs grid min-h-svh w-full place-items-center bg-ttb26-paper bg-[radial-gradient(var(--color-ttb26-dot)_1px,transparent_1.2px)] bg-size-[6px_6px] px-5 py-14 font-ttb26-display text-ttb26-ink" aria-label="Risograph print effect tabs demo">
<div class="grid w-full max-w-xl justify-items-center gap-8">
<div class="w-full">
<div role="radiogroup" aria-label="Issue" class="grid grid-cols-2 gap-3 sm:grid-cols-4">
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r1" checked><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 01</label>
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r2"><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 02</label>
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r3"><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 03</label>
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r4"><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 04</label>
</div>
<div class="pt-6 font-ttb26-mono text-[13px] leading-relaxed">
<p class="hidden group-has-[#ttb26-r1:checked]/tabs:block"><b>No. 01</b> — Orange & Teal. Forty pages, two drums, one long night.</p>
<p class="hidden group-has-[#ttb26-r2:checked]/tabs:block"><b>No. 02</b> — The Halftone Issue. Every image screened at 60 lpi.</p>
<p class="hidden group-has-[#ttb26-r3:checked]/tabs:block"><b>No. 03</b> — Misregistered. A celebration of things slightly off.</p>
<p class="hidden group-has-[#ttb26-r4:checked]/tabs:block"><b>No. 04</b> — Overprint. What happens where two inks meet.</p>
</div>
</div>
<p aria-hidden="true" class="bg-ttb26-paper px-3.5 py-2 font-ttb26-mono text-[11.5px] ring-1 ring-ttb26-ink/30">isolate · before:mix-blend-multiply · plate shift −7 → −4px</p>
</div>
</section><section class="ttb-26 group/tabs grid min-h-svh w-full place-items-center bg-ttb26-paper bg-[radial-gradient(var(--color-ttb26-dot)_1px,transparent_1.2px)] bg-size-[6px_6px] px-5 py-14 font-ttb26-display text-ttb26-ink" aria-label="Risograph print effect tabs demo">
<div class="grid w-full max-w-xl justify-items-center gap-8">
<div class="w-full">
<div role="radiogroup" aria-label="Issue" class="grid grid-cols-2 gap-3 sm:grid-cols-4">
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r1" checked><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 01</label>
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r2"><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 02</label>
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r3"><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 03</label>
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r4"><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 04</label>
</div>
<div class="pt-6 font-ttb26-mono text-[13px] leading-relaxed">
<p class="hidden group-has-[#ttb26-r1:checked]/tabs:block"><b>No. 01</b> — Orange & Teal. Forty pages, two drums, one long night.</p>
<p class="hidden group-has-[#ttb26-r2:checked]/tabs:block"><b>No. 02</b> — The Halftone Issue. Every image screened at 60 lpi.</p>
<p class="hidden group-has-[#ttb26-r3:checked]/tabs:block"><b>No. 03</b> — Misregistered. A celebration of things slightly off.</p>
<p class="hidden group-has-[#ttb26-r4:checked]/tabs:block"><b>No. 04</b> — Overprint. What happens where two inks meet.</p>
</div>
</div>
<p aria-hidden="true" class="bg-ttb26-paper px-3.5 py-2 font-ttb26-mono text-[11.5px] ring-1 ring-ttb26-ink/30">isolate · before:mix-blend-multiply · plate shift −7 → −4px</p>
</div>
</section>@import "tailwindcss";
@theme {
--color-ttb26-paper: #f3ece0;
--color-ttb26-paper: oklch(0.945 0.018 81.3);
--color-ttb26-dot: #e2d8c6;
--color-ttb26-dot: oklch(0.885 0.027 82.4);
--color-ttb26-ink: #1b1b1b;
--color-ttb26-ink: oklch(0.222 0 0);
--color-ttb26-orange: #ff6a3d;
--color-ttb26-orange: oklch(0.704 0.192 37.1);
--color-ttb26-cyan: #00a5c8;
--color-ttb26-cyan: oklch(0.668 0.122 220.1);
--font-ttb26-display: 'Archivo Black', Impact, sans-serif;
--font-ttb26-mono: 'JetBrains Mono', ui-monospace, monospace;
--animate-ttb26-shift: ttb26-shift 0.34s cubic-bezier(0.65, 0, 0.35, 1);
@keyframes ttb26-shift {
0% {
translate: 0 0;
opacity: 0;
}
55% {
translate: -7px 7px;
opacity: 0.92;
}
100% {
translate: -4px 4px;
opacity: 1;
}
}
}
/* 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. */
.ttb-26 {
width: 100%;
min-height: 100svh;
}@import "tailwindcss";
@theme {
--color-ttb26-paper: #f3ece0;
--color-ttb26-paper: oklch(0.945 0.018 81.3);
--color-ttb26-dot: #e2d8c6;
--color-ttb26-dot: oklch(0.885 0.027 82.4);
--color-ttb26-ink: #1b1b1b;
--color-ttb26-ink: oklch(0.222 0 0);
--color-ttb26-orange: #ff6a3d;
--color-ttb26-orange: oklch(0.704 0.192 37.1);
--color-ttb26-cyan: #00a5c8;
--color-ttb26-cyan: oklch(0.668 0.122 220.1);
--font-ttb26-display: 'Archivo Black', Impact, sans-serif;
--font-ttb26-mono: 'JetBrains Mono', ui-monospace, monospace;
--animate-ttb26-shift: ttb26-shift 0.34s cubic-bezier(0.65, 0, 0.35, 1);
@keyframes ttb26-shift {
0% {
translate: 0 0;
opacity: 0;
}
55% {
translate: -7px 7px;
opacity: 0.92;
}
100% {
translate: -4px 4px;
opacity: 1;
}
}
}
/* 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. */
.ttb-26 {
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-ttb26-paper: #f3ece0;
--color-ttb26-paper: oklch(0.945 0.018 81.3);
--color-ttb26-dot: #e2d8c6;
--color-ttb26-dot: oklch(0.885 0.027 82.4);
--color-ttb26-ink: #1b1b1b;
--color-ttb26-ink: oklch(0.222 0 0);
--color-ttb26-orange: #ff6a3d;
--color-ttb26-orange: oklch(0.704 0.192 37.1);
--color-ttb26-cyan: #00a5c8;
--color-ttb26-cyan: oklch(0.668 0.122 220.1);
--font-ttb26-display: 'Archivo Black', Impact, sans-serif;
--font-ttb26-mono: 'JetBrains Mono', ui-monospace, monospace;
--animate-ttb26-shift: ttb26-shift 0.34s cubic-bezier(0.65, 0, 0.35, 1);
@keyframes ttb26-shift {
0% {
translate: 0 0;
opacity: 0;
}
55% {
translate: -7px 7px;
opacity: 0.92;
}
100% {
translate: -4px 4px;
opacity: 1;
}
}
}
/* 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. */
.ttb-26 {
width: 100%;
min-height: 100svh;
}@import "tailwindcss";
@theme {
--color-ttb26-paper: #f3ece0;
--color-ttb26-paper: oklch(0.945 0.018 81.3);
--color-ttb26-dot: #e2d8c6;
--color-ttb26-dot: oklch(0.885 0.027 82.4);
--color-ttb26-ink: #1b1b1b;
--color-ttb26-ink: oklch(0.222 0 0);
--color-ttb26-orange: #ff6a3d;
--color-ttb26-orange: oklch(0.704 0.192 37.1);
--color-ttb26-cyan: #00a5c8;
--color-ttb26-cyan: oklch(0.668 0.122 220.1);
--font-ttb26-display: 'Archivo Black', Impact, sans-serif;
--font-ttb26-mono: 'JetBrains Mono', ui-monospace, monospace;
--animate-ttb26-shift: ttb26-shift 0.34s cubic-bezier(0.65, 0, 0.35, 1);
@keyframes ttb26-shift {
0% {
translate: 0 0;
opacity: 0;
}
55% {
translate: -7px 7px;
opacity: 0.92;
}
100% {
translate: -4px 4px;
opacity: 1;
}
}
}
/* 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. */
.ttb-26 {
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=Archivo+Black&family=JetBrains+Mono:wght@400;500;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=Archivo+Black&family=JetBrains+Mono:wght@400;500;700&display=swap">What changed in the port
Which parts became utilities, which stayed CSS, and why.
.tt14plateand its::beforebecame one span withbefore:utilities; the drum-pass keyframe runs fromgroup-has-checked/tab:before:animate-ttb26-shift.isolation:isolateon the label is theisolateutility; it keeps the multiply blend inside the tab.- UI upgrade from the CSS original: the stage moved from charcoal to paper stock — on charcoal, cyan multiplied to near-black and the second plate was invisible outside the overlap. On paper the overprint reads like a real riso pull.
- UI upgrade: a halftone dot texture on the stock, Archivo Black issue numbers, ringed inactive plates and a 2×2 grid on phones.
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: Risograph Print Effect Tabs in Tailwind CSS
Source: https://codefronts.com/navigation/tailwind-css-tabs/risograph-print-effect-tabs-tailwind-css/
A two-plate riso pull: the chosen tab gets a fluoro-orange plate with a cyan plate misregistered 4px down-left, multiplied together into a third ink where they overlap. The port moves the bar onto paper stock — multiply only reads correctly on light paper, which is how a riso actually prints — and adds a halftone texture.
## HTML
```html
<section class="ttb-26 group/tabs grid min-h-svh w-full place-items-center bg-ttb26-paper bg-[radial-gradient(var(--color-ttb26-dot)_1px,transparent_1.2px)] bg-size-[6px_6px] px-5 py-14 font-ttb26-display text-ttb26-ink" aria-label="Risograph print effect tabs demo">
<div class="grid w-full max-w-xl justify-items-center gap-8">
<div class="w-full">
<div role="radiogroup" aria-label="Issue" class="grid grid-cols-2 gap-3 sm:grid-cols-4">
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r1" checked><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 01</label>
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r2"><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 02</label>
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r3"><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 03</label>
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r4"><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 04</label>
</div>
<div class="pt-6 font-ttb26-mono text-[13px] leading-relaxed">
<p class="hidden group-has-[#ttb26-r1:checked]/tabs:block"><b>No. 01</b> — Orange & Teal. Forty pages, two drums, one long night.</p>
<p class="hidden group-has-[#ttb26-r2:checked]/tabs:block"><b>No. 02</b> — The Halftone Issue. Every image screened at 60 lpi.</p>
<p class="hidden group-has-[#ttb26-r3:checked]/tabs:block"><b>No. 03</b> — Misregistered. A celebration of things slightly off.</p>
<p class="hidden group-has-[#ttb26-r4:checked]/tabs:block"><b>No. 04</b> — Overprint. What happens where two inks meet.</p>
</div>
</div>
<p aria-hidden="true" class="bg-ttb26-paper px-3.5 py-2 font-ttb26-mono text-[11.5px] ring-1 ring-ttb26-ink/30">isolate · before:mix-blend-multiply · plate shift −7 → −4px</p>
</div>
</section>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-ttb26-paper: #f3ece0;
--color-ttb26-paper: oklch(0.945 0.018 81.3);
--color-ttb26-dot: #e2d8c6;
--color-ttb26-dot: oklch(0.885 0.027 82.4);
--color-ttb26-ink: #1b1b1b;
--color-ttb26-ink: oklch(0.222 0 0);
--color-ttb26-orange: #ff6a3d;
--color-ttb26-orange: oklch(0.704 0.192 37.1);
--color-ttb26-cyan: #00a5c8;
--color-ttb26-cyan: oklch(0.668 0.122 220.1);
--font-ttb26-display: 'Archivo Black', Impact, sans-serif;
--font-ttb26-mono: 'JetBrains Mono', ui-monospace, monospace;
--animate-ttb26-shift: ttb26-shift 0.34s cubic-bezier(0.65, 0, 0.35, 1);
@keyframes ttb26-shift {
0% {
translate: 0 0;
opacity: 0;
}
55% {
translate: -7px 7px;
opacity: 0.92;
}
100% {
translate: -4px 4px;
opacity: 1;
}
}
}
/* 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. */
.ttb-26 {
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: Risograph Print Effect Tabs in Tailwind CSS
Source: https://codefronts.com/navigation/tailwind-css-tabs/risograph-print-effect-tabs-tailwind-css/
A two-plate riso pull: the chosen tab gets a fluoro-orange plate with a cyan plate misregistered 4px down-left, multiplied together into a third ink where they overlap. The port moves the bar onto paper stock — multiply only reads correctly on light paper, which is how a riso actually prints — and adds a halftone texture.
## HTML
```html
<section class="ttb-26 group/tabs grid min-h-svh w-full place-items-center bg-ttb26-paper bg-[radial-gradient(var(--color-ttb26-dot)_1px,transparent_1.2px)] bg-size-[6px_6px] px-5 py-14 font-ttb26-display text-ttb26-ink" aria-label="Risograph print effect tabs demo">
<div class="grid w-full max-w-xl justify-items-center gap-8">
<div class="w-full">
<div role="radiogroup" aria-label="Issue" class="grid grid-cols-2 gap-3 sm:grid-cols-4">
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r1" checked><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 01</label>
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r2"><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 02</label>
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r3"><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 03</label>
<label class="group/tab relative isolate flex min-h-14 cursor-pointer items-center justify-center text-[15px] tracking-[0.06em] uppercase ring-2 ring-ttb26-ink/80 transition-[box-shadow] has-checked:ring-0 has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-dashed has-focus-visible:outline-ttb26-ink"><input class="sr-only" type="radio" name="ttb26" id="ttb26-r4"><span aria-hidden="true" class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0 transition-opacity duration-50 ease-[steps(1,end)] before:absolute before:inset-0 before:translate-x-[-4px] before:translate-y-[4px] before:bg-ttb26-cyan before:mix-blend-multiply group-has-checked/tab:opacity-100 group-has-checked/tab:before:animate-ttb26-shift motion-reduce:group-has-checked/tab:before:animate-none"></span>Issue 04</label>
</div>
<div class="pt-6 font-ttb26-mono text-[13px] leading-relaxed">
<p class="hidden group-has-[#ttb26-r1:checked]/tabs:block"><b>No. 01</b> — Orange & Teal. Forty pages, two drums, one long night.</p>
<p class="hidden group-has-[#ttb26-r2:checked]/tabs:block"><b>No. 02</b> — The Halftone Issue. Every image screened at 60 lpi.</p>
<p class="hidden group-has-[#ttb26-r3:checked]/tabs:block"><b>No. 03</b> — Misregistered. A celebration of things slightly off.</p>
<p class="hidden group-has-[#ttb26-r4:checked]/tabs:block"><b>No. 04</b> — Overprint. What happens where two inks meet.</p>
</div>
</div>
<p aria-hidden="true" class="bg-ttb26-paper px-3.5 py-2 font-ttb26-mono text-[11.5px] ring-1 ring-ttb26-ink/30">isolate · before:mix-blend-multiply · plate shift −7 → −4px</p>
</div>
</section>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-ttb26-paper: #f3ece0;
--color-ttb26-paper: oklch(0.945 0.018 81.3);
--color-ttb26-dot: #e2d8c6;
--color-ttb26-dot: oklch(0.885 0.027 82.4);
--color-ttb26-ink: #1b1b1b;
--color-ttb26-ink: oklch(0.222 0 0);
--color-ttb26-orange: #ff6a3d;
--color-ttb26-orange: oklch(0.704 0.192 37.1);
--color-ttb26-cyan: #00a5c8;
--color-ttb26-cyan: oklch(0.668 0.122 220.1);
--font-ttb26-display: 'Archivo Black', Impact, sans-serif;
--font-ttb26-mono: 'JetBrains Mono', ui-monospace, monospace;
--animate-ttb26-shift: ttb26-shift 0.34s cubic-bezier(0.65, 0, 0.35, 1);
@keyframes ttb26-shift {
0% {
translate: 0 0;
opacity: 0;
}
55% {
translate: -7px 7px;
opacity: 0.92;
}
100% {
translate: -4px 4px;
opacity: 1;
}
}
}
/* 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. */
.ttb-26 {
width: 100%;
min-height: 100svh;
}
```How this works
Multiply needs paper. The original printed on charcoal, where cyan multiplied with near-black is near-black — the second plate vanished except where it overlapped orange. On paper, cyan reads cyan, orange reads orange and the overlap darkens to a third ink:
<label class="group/tab relative isolate">
<span class="absolute inset-0 -z-10 bg-ttb26-orange opacity-0
group-has-checked/tab:opacity-100
before:absolute before:inset-0 before:bg-ttb26-cyan before:mix-blend-multiply
before:translate-x-[-4px] before:translate-y-[4px]
group-has-checked/tab:before:animate-ttb26-shift"></span>isolate on the label keeps the blend inside it, so the plates never multiply with the page.
Make it yours
- Classic pairs: fluoro pink + teal, or purple + yellow.
- Tighter register:
-2px 2px; amateur pull:-6px 6px. - Drop the halftone for a cleaner stock.
Gotchas — read before shipping
- Without
isolate, a-z-10plate falls behind the stage and disappears. mix-blend-multiplycomposites against what's behind — test on your real page colour.- The plate offset is decorative; the label text sits above both plates.
Browser support
| Chrome | Safari | Firefox | Edge |
|---|---|---|---|
| 111+ | 16.4+ | 128+ | 111+ |
mix-blend-mode and isolation are universal.