20 / 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
Industrial Stencil Tabs in Tailwind CSS
Two-colour print: safety-yellow plates stamped on matte ink. The active plate lifts 2px and gains a hazard-stripe header, and the labels are set in Big Shoulders Stencil — a real stencil face with bridges in its counters — instead of tracked monospace pretending to be one.
Untitled UI Pro: 5,000+ React + Tailwind CSS v4 components · from $349 one-time
Untitled UI React · Affiliate link
The code
<section class="ttb-20 group/tabs grid min-h-svh w-full place-items-center bg-ttb20-ink px-5 py-14 font-ttb20-stencil text-ttb20-yellow" aria-label="Industrial stencil tabs demo">
<div class="grid w-full max-w-xl justify-items-center gap-7">
<div class="w-full">
<div role="radiogroup" aria-label="Mode" class="flex gap-2">
<label class="relative flex min-h-14 flex-1 cursor-pointer items-center justify-center overflow-hidden text-[24px] font-extrabold tracking-[0.14em] text-ttb20-yellow/60 uppercase ring-1 ring-ttb20-yellow/20 transition-[color,background-color,translate,box-shadow] duration-250 before:absolute before:inset-x-0 before:top-0 before:h-1.5 before:bg-[repeating-linear-gradient(-45deg,var(--color-ttb20-ink)_0_6px,transparent_6px_12px)] before:opacity-0 before:transition-opacity hover:text-ttb20-yellow has-checked:-translate-y-0.5 has-checked:bg-ttb20-yellow has-checked:text-ttb20-ink has-checked:shadow-[0_4px_0_-1px_rgb(0_0_0/0.6)] has-checked:ring-0 has-checked:before:opacity-100 has-focus-visible:outline-2 has-focus-visible:outline-offset-3 has-focus-visible:outline-dashed has-focus-visible:outline-ttb20-yellow motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb20" id="ttb20-r1">Read</label>
<label class="relative flex min-h-14 flex-1 cursor-pointer items-center justify-center overflow-hidden text-[24px] font-extrabold tracking-[0.14em] text-ttb20-yellow/60 uppercase ring-1 ring-ttb20-yellow/20 transition-[color,background-color,translate,box-shadow] duration-250 before:absolute before:inset-x-0 before:top-0 before:h-1.5 before:bg-[repeating-linear-gradient(-45deg,var(--color-ttb20-ink)_0_6px,transparent_6px_12px)] before:opacity-0 before:transition-opacity hover:text-ttb20-yellow has-checked:-translate-y-0.5 has-checked:bg-ttb20-yellow has-checked:text-ttb20-ink has-checked:shadow-[0_4px_0_-1px_rgb(0_0_0/0.6)] has-checked:ring-0 has-checked:before:opacity-100 has-focus-visible:outline-2 has-focus-visible:outline-offset-3 has-focus-visible:outline-dashed has-focus-visible:outline-ttb20-yellow motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb20" id="ttb20-r2" checked>Write</label>
<label class="relative flex min-h-14 flex-1 cursor-pointer items-center justify-center overflow-hidden text-[24px] font-extrabold tracking-[0.14em] text-ttb20-yellow/60 uppercase ring-1 ring-ttb20-yellow/20 transition-[color,background-color,translate,box-shadow] duration-250 before:absolute before:inset-x-0 before:top-0 before:h-1.5 before:bg-[repeating-linear-gradient(-45deg,var(--color-ttb20-ink)_0_6px,transparent_6px_12px)] before:opacity-0 before:transition-opacity hover:text-ttb20-yellow has-checked:-translate-y-0.5 has-checked:bg-ttb20-yellow has-checked:text-ttb20-ink has-checked:shadow-[0_4px_0_-1px_rgb(0_0_0/0.6)] has-checked:ring-0 has-checked:before:opacity-100 has-focus-visible:outline-2 has-focus-visible:outline-offset-3 has-focus-visible:outline-dashed has-focus-visible:outline-ttb20-yellow motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb20" id="ttb20-r3">Ship</label>
</div>
<div class="pt-5 font-ttb20-serif text-[16px] text-ttb20-paper italic">
<p class="hidden group-has-[#ttb20-r1:checked]/tabs:block">Drafts, archives and reference material.</p>
<p class="hidden group-has-[#ttb20-r2:checked]/tabs:block">The current notebook, open in edit mode.</p>
<p class="hidden group-has-[#ttb20-r3:checked]/tabs:block">Approvals, releases and publication state.</p>
</div>
</div>
<p aria-hidden="true" class="rounded-full border border-ttb20-yellow/20 px-3.5 py-2 font-ttb20-mono text-[11.5px] text-ttb20-paper">stencil face · has-checked:-translate-y-0.5 · hazard before:</p>
</div>
</section><section class="ttb-20 group/tabs grid min-h-svh w-full place-items-center bg-ttb20-ink px-5 py-14 font-ttb20-stencil text-ttb20-yellow" aria-label="Industrial stencil tabs demo">
<div class="grid w-full max-w-xl justify-items-center gap-7">
<div class="w-full">
<div role="radiogroup" aria-label="Mode" class="flex gap-2">
<label class="relative flex min-h-14 flex-1 cursor-pointer items-center justify-center overflow-hidden text-[24px] font-extrabold tracking-[0.14em] text-ttb20-yellow/60 uppercase ring-1 ring-ttb20-yellow/20 transition-[color,background-color,translate,box-shadow] duration-250 before:absolute before:inset-x-0 before:top-0 before:h-1.5 before:bg-[repeating-linear-gradient(-45deg,var(--color-ttb20-ink)_0_6px,transparent_6px_12px)] before:opacity-0 before:transition-opacity hover:text-ttb20-yellow has-checked:-translate-y-0.5 has-checked:bg-ttb20-yellow has-checked:text-ttb20-ink has-checked:shadow-[0_4px_0_-1px_rgb(0_0_0/0.6)] has-checked:ring-0 has-checked:before:opacity-100 has-focus-visible:outline-2 has-focus-visible:outline-offset-3 has-focus-visible:outline-dashed has-focus-visible:outline-ttb20-yellow motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb20" id="ttb20-r1">Read</label>
<label class="relative flex min-h-14 flex-1 cursor-pointer items-center justify-center overflow-hidden text-[24px] font-extrabold tracking-[0.14em] text-ttb20-yellow/60 uppercase ring-1 ring-ttb20-yellow/20 transition-[color,background-color,translate,box-shadow] duration-250 before:absolute before:inset-x-0 before:top-0 before:h-1.5 before:bg-[repeating-linear-gradient(-45deg,var(--color-ttb20-ink)_0_6px,transparent_6px_12px)] before:opacity-0 before:transition-opacity hover:text-ttb20-yellow has-checked:-translate-y-0.5 has-checked:bg-ttb20-yellow has-checked:text-ttb20-ink has-checked:shadow-[0_4px_0_-1px_rgb(0_0_0/0.6)] has-checked:ring-0 has-checked:before:opacity-100 has-focus-visible:outline-2 has-focus-visible:outline-offset-3 has-focus-visible:outline-dashed has-focus-visible:outline-ttb20-yellow motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb20" id="ttb20-r2" checked>Write</label>
<label class="relative flex min-h-14 flex-1 cursor-pointer items-center justify-center overflow-hidden text-[24px] font-extrabold tracking-[0.14em] text-ttb20-yellow/60 uppercase ring-1 ring-ttb20-yellow/20 transition-[color,background-color,translate,box-shadow] duration-250 before:absolute before:inset-x-0 before:top-0 before:h-1.5 before:bg-[repeating-linear-gradient(-45deg,var(--color-ttb20-ink)_0_6px,transparent_6px_12px)] before:opacity-0 before:transition-opacity hover:text-ttb20-yellow has-checked:-translate-y-0.5 has-checked:bg-ttb20-yellow has-checked:text-ttb20-ink has-checked:shadow-[0_4px_0_-1px_rgb(0_0_0/0.6)] has-checked:ring-0 has-checked:before:opacity-100 has-focus-visible:outline-2 has-focus-visible:outline-offset-3 has-focus-visible:outline-dashed has-focus-visible:outline-ttb20-yellow motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb20" id="ttb20-r3">Ship</label>
</div>
<div class="pt-5 font-ttb20-serif text-[16px] text-ttb20-paper italic">
<p class="hidden group-has-[#ttb20-r1:checked]/tabs:block">Drafts, archives and reference material.</p>
<p class="hidden group-has-[#ttb20-r2:checked]/tabs:block">The current notebook, open in edit mode.</p>
<p class="hidden group-has-[#ttb20-r3:checked]/tabs:block">Approvals, releases and publication state.</p>
</div>
</div>
<p aria-hidden="true" class="rounded-full border border-ttb20-yellow/20 px-3.5 py-2 font-ttb20-mono text-[11.5px] text-ttb20-paper">stencil face · has-checked:-translate-y-0.5 · hazard before:</p>
</div>
</section>@import "tailwindcss";
@theme {
--color-ttb20-ink: #161616;
--color-ttb20-ink: oklch(0.200 0 0);
--color-ttb20-yellow: #f5cb1a;
--color-ttb20-yellow: oklch(0.854 0.171 93.3);
--color-ttb20-paper: #d9d3c3;
--color-ttb20-paper: oklch(0.867 0.023 89.8);
--font-ttb20-stencil: 'Big Shoulders Stencil Display', Impact, sans-serif;
--font-ttb20-serif: 'Newsreader', Georgia, serif;
--font-ttb20-mono: 'JetBrains Mono', ui-monospace, monospace;
}
/* 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-20 {
width: 100%;
min-height: 100svh;
}@import "tailwindcss";
@theme {
--color-ttb20-ink: #161616;
--color-ttb20-ink: oklch(0.200 0 0);
--color-ttb20-yellow: #f5cb1a;
--color-ttb20-yellow: oklch(0.854 0.171 93.3);
--color-ttb20-paper: #d9d3c3;
--color-ttb20-paper: oklch(0.867 0.023 89.8);
--font-ttb20-stencil: 'Big Shoulders Stencil Display', Impact, sans-serif;
--font-ttb20-serif: 'Newsreader', Georgia, serif;
--font-ttb20-mono: 'JetBrains Mono', ui-monospace, monospace;
}
/* 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-20 {
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-ttb20-ink: #161616;
--color-ttb20-ink: oklch(0.200 0 0);
--color-ttb20-yellow: #f5cb1a;
--color-ttb20-yellow: oklch(0.854 0.171 93.3);
--color-ttb20-paper: #d9d3c3;
--color-ttb20-paper: oklch(0.867 0.023 89.8);
--font-ttb20-stencil: 'Big Shoulders Stencil Display', Impact, sans-serif;
--font-ttb20-serif: 'Newsreader', Georgia, serif;
--font-ttb20-mono: 'JetBrains Mono', ui-monospace, monospace;
}
/* 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-20 {
width: 100%;
min-height: 100svh;
}@import "tailwindcss";
@theme {
--color-ttb20-ink: #161616;
--color-ttb20-ink: oklch(0.200 0 0);
--color-ttb20-yellow: #f5cb1a;
--color-ttb20-yellow: oklch(0.854 0.171 93.3);
--color-ttb20-paper: #d9d3c3;
--color-ttb20-paper: oklch(0.867 0.023 89.8);
--font-ttb20-stencil: 'Big Shoulders Stencil Display', Impact, sans-serif;
--font-ttb20-serif: 'Newsreader', Georgia, serif;
--font-ttb20-mono: 'JetBrains Mono', ui-monospace, monospace;
}
/* 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-20 {
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=Big+Shoulders+Stencil+Display:wght@700;800;900&family=Newsreader:ital,opsz,wght@1,6..72,400..600&family=JetBrains+Mono:wght@400;500&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=Big+Shoulders+Stencil+Display:wght@700;800;900&family=Newsreader:ital,opsz,wght@1,6..72,400..600&family=JetBrains+Mono:wght@400;500&display=swap">What changed in the port
Which parts became utilities, which stayed CSS, and why.
input:checked + .tt08b(colour, background, translate, shadow) became fourhas-checked:utilities on the label.rgba(245,203,26,0.45)became the opacity modifiertext-ttb20-yellow/60— raised from 45% for contrast.- UI upgrade from the CSS original: labels are set in Big Shoulders Stencil (a real stencil face) at 24px instead of 14px tracked mono, and the active plate carries a hazard-stripe header.
- UI upgrade: inactive plates gained a faint yellow frame so the three slots read as plates, not loose words; panel copy went from 70% to a solid 11.8:1 token.
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: Industrial Stencil Tabs in Tailwind CSS
Source: https://codefronts.com/navigation/tailwind-css-tabs/industrial-stencil-tabs-tailwind-css/
Two-colour print: safety-yellow plates stamped on matte ink. The active plate lifts 2px and gains a hazard-stripe header, and the labels are set in Big Shoulders Stencil — a real stencil face with bridges in its counters — instead of tracked monospace pretending to be one.
## HTML
```html
<section class="ttb-20 group/tabs grid min-h-svh w-full place-items-center bg-ttb20-ink px-5 py-14 font-ttb20-stencil text-ttb20-yellow" aria-label="Industrial stencil tabs demo">
<div class="grid w-full max-w-xl justify-items-center gap-7">
<div class="w-full">
<div role="radiogroup" aria-label="Mode" class="flex gap-2">
<label class="relative flex min-h-14 flex-1 cursor-pointer items-center justify-center overflow-hidden text-[24px] font-extrabold tracking-[0.14em] text-ttb20-yellow/60 uppercase ring-1 ring-ttb20-yellow/20 transition-[color,background-color,translate,box-shadow] duration-250 before:absolute before:inset-x-0 before:top-0 before:h-1.5 before:bg-[repeating-linear-gradient(-45deg,var(--color-ttb20-ink)_0_6px,transparent_6px_12px)] before:opacity-0 before:transition-opacity hover:text-ttb20-yellow has-checked:-translate-y-0.5 has-checked:bg-ttb20-yellow has-checked:text-ttb20-ink has-checked:shadow-[0_4px_0_-1px_rgb(0_0_0/0.6)] has-checked:ring-0 has-checked:before:opacity-100 has-focus-visible:outline-2 has-focus-visible:outline-offset-3 has-focus-visible:outline-dashed has-focus-visible:outline-ttb20-yellow motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb20" id="ttb20-r1">Read</label>
<label class="relative flex min-h-14 flex-1 cursor-pointer items-center justify-center overflow-hidden text-[24px] font-extrabold tracking-[0.14em] text-ttb20-yellow/60 uppercase ring-1 ring-ttb20-yellow/20 transition-[color,background-color,translate,box-shadow] duration-250 before:absolute before:inset-x-0 before:top-0 before:h-1.5 before:bg-[repeating-linear-gradient(-45deg,var(--color-ttb20-ink)_0_6px,transparent_6px_12px)] before:opacity-0 before:transition-opacity hover:text-ttb20-yellow has-checked:-translate-y-0.5 has-checked:bg-ttb20-yellow has-checked:text-ttb20-ink has-checked:shadow-[0_4px_0_-1px_rgb(0_0_0/0.6)] has-checked:ring-0 has-checked:before:opacity-100 has-focus-visible:outline-2 has-focus-visible:outline-offset-3 has-focus-visible:outline-dashed has-focus-visible:outline-ttb20-yellow motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb20" id="ttb20-r2" checked>Write</label>
<label class="relative flex min-h-14 flex-1 cursor-pointer items-center justify-center overflow-hidden text-[24px] font-extrabold tracking-[0.14em] text-ttb20-yellow/60 uppercase ring-1 ring-ttb20-yellow/20 transition-[color,background-color,translate,box-shadow] duration-250 before:absolute before:inset-x-0 before:top-0 before:h-1.5 before:bg-[repeating-linear-gradient(-45deg,var(--color-ttb20-ink)_0_6px,transparent_6px_12px)] before:opacity-0 before:transition-opacity hover:text-ttb20-yellow has-checked:-translate-y-0.5 has-checked:bg-ttb20-yellow has-checked:text-ttb20-ink has-checked:shadow-[0_4px_0_-1px_rgb(0_0_0/0.6)] has-checked:ring-0 has-checked:before:opacity-100 has-focus-visible:outline-2 has-focus-visible:outline-offset-3 has-focus-visible:outline-dashed has-focus-visible:outline-ttb20-yellow motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb20" id="ttb20-r3">Ship</label>
</div>
<div class="pt-5 font-ttb20-serif text-[16px] text-ttb20-paper italic">
<p class="hidden group-has-[#ttb20-r1:checked]/tabs:block">Drafts, archives and reference material.</p>
<p class="hidden group-has-[#ttb20-r2:checked]/tabs:block">The current notebook, open in edit mode.</p>
<p class="hidden group-has-[#ttb20-r3:checked]/tabs:block">Approvals, releases and publication state.</p>
</div>
</div>
<p aria-hidden="true" class="rounded-full border border-ttb20-yellow/20 px-3.5 py-2 font-ttb20-mono text-[11.5px] text-ttb20-paper">stencil face · has-checked:-translate-y-0.5 · hazard before:</p>
</div>
</section>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-ttb20-ink: #161616;
--color-ttb20-ink: oklch(0.200 0 0);
--color-ttb20-yellow: #f5cb1a;
--color-ttb20-yellow: oklch(0.854 0.171 93.3);
--color-ttb20-paper: #d9d3c3;
--color-ttb20-paper: oklch(0.867 0.023 89.8);
--font-ttb20-stencil: 'Big Shoulders Stencil Display', Impact, sans-serif;
--font-ttb20-serif: 'Newsreader', Georgia, serif;
--font-ttb20-mono: 'JetBrains Mono', ui-monospace, monospace;
}
/* 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-20 {
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: Industrial Stencil Tabs in Tailwind CSS
Source: https://codefronts.com/navigation/tailwind-css-tabs/industrial-stencil-tabs-tailwind-css/
Two-colour print: safety-yellow plates stamped on matte ink. The active plate lifts 2px and gains a hazard-stripe header, and the labels are set in Big Shoulders Stencil — a real stencil face with bridges in its counters — instead of tracked monospace pretending to be one.
## HTML
```html
<section class="ttb-20 group/tabs grid min-h-svh w-full place-items-center bg-ttb20-ink px-5 py-14 font-ttb20-stencil text-ttb20-yellow" aria-label="Industrial stencil tabs demo">
<div class="grid w-full max-w-xl justify-items-center gap-7">
<div class="w-full">
<div role="radiogroup" aria-label="Mode" class="flex gap-2">
<label class="relative flex min-h-14 flex-1 cursor-pointer items-center justify-center overflow-hidden text-[24px] font-extrabold tracking-[0.14em] text-ttb20-yellow/60 uppercase ring-1 ring-ttb20-yellow/20 transition-[color,background-color,translate,box-shadow] duration-250 before:absolute before:inset-x-0 before:top-0 before:h-1.5 before:bg-[repeating-linear-gradient(-45deg,var(--color-ttb20-ink)_0_6px,transparent_6px_12px)] before:opacity-0 before:transition-opacity hover:text-ttb20-yellow has-checked:-translate-y-0.5 has-checked:bg-ttb20-yellow has-checked:text-ttb20-ink has-checked:shadow-[0_4px_0_-1px_rgb(0_0_0/0.6)] has-checked:ring-0 has-checked:before:opacity-100 has-focus-visible:outline-2 has-focus-visible:outline-offset-3 has-focus-visible:outline-dashed has-focus-visible:outline-ttb20-yellow motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb20" id="ttb20-r1">Read</label>
<label class="relative flex min-h-14 flex-1 cursor-pointer items-center justify-center overflow-hidden text-[24px] font-extrabold tracking-[0.14em] text-ttb20-yellow/60 uppercase ring-1 ring-ttb20-yellow/20 transition-[color,background-color,translate,box-shadow] duration-250 before:absolute before:inset-x-0 before:top-0 before:h-1.5 before:bg-[repeating-linear-gradient(-45deg,var(--color-ttb20-ink)_0_6px,transparent_6px_12px)] before:opacity-0 before:transition-opacity hover:text-ttb20-yellow has-checked:-translate-y-0.5 has-checked:bg-ttb20-yellow has-checked:text-ttb20-ink has-checked:shadow-[0_4px_0_-1px_rgb(0_0_0/0.6)] has-checked:ring-0 has-checked:before:opacity-100 has-focus-visible:outline-2 has-focus-visible:outline-offset-3 has-focus-visible:outline-dashed has-focus-visible:outline-ttb20-yellow motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb20" id="ttb20-r2" checked>Write</label>
<label class="relative flex min-h-14 flex-1 cursor-pointer items-center justify-center overflow-hidden text-[24px] font-extrabold tracking-[0.14em] text-ttb20-yellow/60 uppercase ring-1 ring-ttb20-yellow/20 transition-[color,background-color,translate,box-shadow] duration-250 before:absolute before:inset-x-0 before:top-0 before:h-1.5 before:bg-[repeating-linear-gradient(-45deg,var(--color-ttb20-ink)_0_6px,transparent_6px_12px)] before:opacity-0 before:transition-opacity hover:text-ttb20-yellow has-checked:-translate-y-0.5 has-checked:bg-ttb20-yellow has-checked:text-ttb20-ink has-checked:shadow-[0_4px_0_-1px_rgb(0_0_0/0.6)] has-checked:ring-0 has-checked:before:opacity-100 has-focus-visible:outline-2 has-focus-visible:outline-offset-3 has-focus-visible:outline-dashed has-focus-visible:outline-ttb20-yellow motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb20" id="ttb20-r3">Ship</label>
</div>
<div class="pt-5 font-ttb20-serif text-[16px] text-ttb20-paper italic">
<p class="hidden group-has-[#ttb20-r1:checked]/tabs:block">Drafts, archives and reference material.</p>
<p class="hidden group-has-[#ttb20-r2:checked]/tabs:block">The current notebook, open in edit mode.</p>
<p class="hidden group-has-[#ttb20-r3:checked]/tabs:block">Approvals, releases and publication state.</p>
</div>
</div>
<p aria-hidden="true" class="rounded-full border border-ttb20-yellow/20 px-3.5 py-2 font-ttb20-mono text-[11.5px] text-ttb20-paper">stencil face · has-checked:-translate-y-0.5 · hazard before:</p>
</div>
</section>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-ttb20-ink: #161616;
--color-ttb20-ink: oklch(0.200 0 0);
--color-ttb20-yellow: #f5cb1a;
--color-ttb20-yellow: oklch(0.854 0.171 93.3);
--color-ttb20-paper: #d9d3c3;
--color-ttb20-paper: oklch(0.867 0.023 89.8);
--font-ttb20-stencil: 'Big Shoulders Stencil Display', Impact, sans-serif;
--font-ttb20-serif: 'Newsreader', Georgia, serif;
--font-ttb20-mono: 'JetBrains Mono', ui-monospace, monospace;
}
/* 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-20 {
width: 100%;
min-height: 100svh;
}
```How this works
Two colours, three rules. Inactive plates are yellow at 60% on ink; the checked plate inverts to ink on full yellow and lifts:
<label class="text-ttb20-yellow/60 has-checked:-translate-y-0.5
has-checked:bg-ttb20-yellow has-checked:text-ttb20-ink
before:h-1.5 before:bg-[repeating-linear-gradient(-45deg,var(--color-ttb20-ink)_0_6px,transparent_6px_12px)]
before:opacity-0 has-checked:before:opacity-100">The stripe header is a pattern, not decoration for its own sake — it's the visual vocabulary of the floor markings the design imitates.
Make it yours
- Bauhaus red on white: plate
#e63946, label#f1faee. - No stripes: delete the
before:utilities. - Bigger plates:
min-h-16 text-2xl— stencil faces love size.
Gotchas — read before shipping
- Stencil type at small sizes loses its bridges; keep it at 20px+.
- The stripes are an image; they don't print in "no background graphics" print mode.
- Lift and shadow change together — keep the shadow offset ≥ the lift.
Browser support
| Chrome | Safari | Firefox | Edge |
|---|---|---|---|
| 111+ | 16.4+ | 128+ | 111+ |
Universal CSS; the floor is Tailwind v4's sheet.