24 / 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
Outlined Tabs with Corner Markers in Tailwind CSS
Hairline-framed tabs on warm white. The chosen frame inks a 4px navy top edge and four dots pop onto its corners a beat later, like crop marks. The 4px top border is reserved transparent from the start, so selecting a tab never moves the row by a pixel.
Untitled UI Pro: 5,000+ React + Tailwind CSS v4 components · from $349 one-time
Untitled UI React · Affiliate link
The code
<section class="ttb-24 group/tabs grid min-h-svh w-full place-items-center bg-ttb24-bg px-5 py-14 font-ttb24-serif text-ttb24-navy" aria-label="Outlined tabs with corner markers demo">
<div class="grid w-full max-w-lg justify-items-center gap-7">
<div class="w-full">
<div role="radiogroup" aria-label="Stage" class="flex flex-wrap gap-3.5">
<label class="group/tab relative flex min-h-12 flex-1 cursor-pointer items-center justify-center gap-2 border border-t-4 border-ttb24-navy/40 border-t-transparent px-5 text-[15px] font-semibold tracking-[0.03em] text-ttb24-mut transition-[color,border-color] duration-300 hover:text-ttb24-navy has-checked:border-ttb24-navy has-checked:border-t-ttb24-navy has-checked:text-ttb24-navy has-focus-visible:outline-2 has-focus-visible:outline-offset-5 has-focus-visible:outline-ttb24-navy"><input class="sr-only" type="radio" name="ttb24" id="ttb24-r1" checked>Drafts <span class="font-ttb24-mono text-[11px] font-medium tabular-nums">12</span><i aria-hidden="true" class="absolute -top-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -top-1 -right-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -bottom-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -right-1 -bottom-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i></label>
<label class="group/tab relative flex min-h-12 flex-1 cursor-pointer items-center justify-center gap-2 border border-t-4 border-ttb24-navy/40 border-t-transparent px-5 text-[15px] font-semibold tracking-[0.03em] text-ttb24-mut transition-[color,border-color] duration-300 hover:text-ttb24-navy has-checked:border-ttb24-navy has-checked:border-t-ttb24-navy has-checked:text-ttb24-navy has-focus-visible:outline-2 has-focus-visible:outline-offset-5 has-focus-visible:outline-ttb24-navy"><input class="sr-only" type="radio" name="ttb24" id="ttb24-r2">Proofs <span class="font-ttb24-mono text-[11px] font-medium tabular-nums">4</span><i aria-hidden="true" class="absolute -top-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -top-1 -right-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -bottom-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -right-1 -bottom-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i></label>
<label class="group/tab relative flex min-h-12 flex-1 cursor-pointer items-center justify-center gap-2 border border-t-4 border-ttb24-navy/40 border-t-transparent px-5 text-[15px] font-semibold tracking-[0.03em] text-ttb24-mut transition-[color,border-color] duration-300 hover:text-ttb24-navy has-checked:border-ttb24-navy has-checked:border-t-ttb24-navy has-checked:text-ttb24-navy has-focus-visible:outline-2 has-focus-visible:outline-offset-5 has-focus-visible:outline-ttb24-navy"><input class="sr-only" type="radio" name="ttb24" id="ttb24-r3">Final <span class="font-ttb24-mono text-[11px] font-medium tabular-nums">31</span><i aria-hidden="true" class="absolute -top-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -top-1 -right-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -bottom-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -right-1 -bottom-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i></label>
</div>
<div class="pt-5 text-[16px] text-ttb24-ash italic">
<p class="hidden group-has-[#ttb24-r1:checked]/tabs:block">Working files in progress.</p>
<p class="hidden group-has-[#ttb24-r2:checked]/tabs:block">Galleys ready for review.</p>
<p class="hidden group-has-[#ttb24-r3:checked]/tabs:block">Approved and locked.</p>
</div>
</div>
<p aria-hidden="true" class="border border-ttb24-navy/30 px-3.5 py-2 font-ttb24-mono text-[11.5px] text-ttb24-mut">border-t-transparent reserved · corner dots delay-100</p>
</div>
</section><section class="ttb-24 group/tabs grid min-h-svh w-full place-items-center bg-ttb24-bg px-5 py-14 font-ttb24-serif text-ttb24-navy" aria-label="Outlined tabs with corner markers demo">
<div class="grid w-full max-w-lg justify-items-center gap-7">
<div class="w-full">
<div role="radiogroup" aria-label="Stage" class="flex flex-wrap gap-3.5">
<label class="group/tab relative flex min-h-12 flex-1 cursor-pointer items-center justify-center gap-2 border border-t-4 border-ttb24-navy/40 border-t-transparent px-5 text-[15px] font-semibold tracking-[0.03em] text-ttb24-mut transition-[color,border-color] duration-300 hover:text-ttb24-navy has-checked:border-ttb24-navy has-checked:border-t-ttb24-navy has-checked:text-ttb24-navy has-focus-visible:outline-2 has-focus-visible:outline-offset-5 has-focus-visible:outline-ttb24-navy"><input class="sr-only" type="radio" name="ttb24" id="ttb24-r1" checked>Drafts <span class="font-ttb24-mono text-[11px] font-medium tabular-nums">12</span><i aria-hidden="true" class="absolute -top-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -top-1 -right-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -bottom-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -right-1 -bottom-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i></label>
<label class="group/tab relative flex min-h-12 flex-1 cursor-pointer items-center justify-center gap-2 border border-t-4 border-ttb24-navy/40 border-t-transparent px-5 text-[15px] font-semibold tracking-[0.03em] text-ttb24-mut transition-[color,border-color] duration-300 hover:text-ttb24-navy has-checked:border-ttb24-navy has-checked:border-t-ttb24-navy has-checked:text-ttb24-navy has-focus-visible:outline-2 has-focus-visible:outline-offset-5 has-focus-visible:outline-ttb24-navy"><input class="sr-only" type="radio" name="ttb24" id="ttb24-r2">Proofs <span class="font-ttb24-mono text-[11px] font-medium tabular-nums">4</span><i aria-hidden="true" class="absolute -top-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -top-1 -right-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -bottom-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -right-1 -bottom-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i></label>
<label class="group/tab relative flex min-h-12 flex-1 cursor-pointer items-center justify-center gap-2 border border-t-4 border-ttb24-navy/40 border-t-transparent px-5 text-[15px] font-semibold tracking-[0.03em] text-ttb24-mut transition-[color,border-color] duration-300 hover:text-ttb24-navy has-checked:border-ttb24-navy has-checked:border-t-ttb24-navy has-checked:text-ttb24-navy has-focus-visible:outline-2 has-focus-visible:outline-offset-5 has-focus-visible:outline-ttb24-navy"><input class="sr-only" type="radio" name="ttb24" id="ttb24-r3">Final <span class="font-ttb24-mono text-[11px] font-medium tabular-nums">31</span><i aria-hidden="true" class="absolute -top-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -top-1 -right-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -bottom-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -right-1 -bottom-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i></label>
</div>
<div class="pt-5 text-[16px] text-ttb24-ash italic">
<p class="hidden group-has-[#ttb24-r1:checked]/tabs:block">Working files in progress.</p>
<p class="hidden group-has-[#ttb24-r2:checked]/tabs:block">Galleys ready for review.</p>
<p class="hidden group-has-[#ttb24-r3:checked]/tabs:block">Approved and locked.</p>
</div>
</div>
<p aria-hidden="true" class="border border-ttb24-navy/30 px-3.5 py-2 font-ttb24-mono text-[11.5px] text-ttb24-mut">border-t-transparent reserved · corner dots delay-100</p>
</div>
</section>@import "tailwindcss";
@theme {
--color-ttb24-bg: #f5f1ea;
--color-ttb24-bg: oklch(0.959 0.010 81.8);
--color-ttb24-navy: #1a2842;
--color-ttb24-navy: oklch(0.278 0.052 262.0);
--color-ttb24-mut: #5a6478;
--color-ttb24-mut: oklch(0.502 0.034 264.2);
--color-ttb24-ash: #3a3a42;
--color-ttb24-ash: oklch(0.352 0.014 285.7);
--font-ttb24-serif: 'Newsreader', Georgia, serif;
--font-ttb24-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-24 {
width: 100%;
min-height: 100svh;
}@import "tailwindcss";
@theme {
--color-ttb24-bg: #f5f1ea;
--color-ttb24-bg: oklch(0.959 0.010 81.8);
--color-ttb24-navy: #1a2842;
--color-ttb24-navy: oklch(0.278 0.052 262.0);
--color-ttb24-mut: #5a6478;
--color-ttb24-mut: oklch(0.502 0.034 264.2);
--color-ttb24-ash: #3a3a42;
--color-ttb24-ash: oklch(0.352 0.014 285.7);
--font-ttb24-serif: 'Newsreader', Georgia, serif;
--font-ttb24-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-24 {
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-ttb24-bg: #f5f1ea;
--color-ttb24-bg: oklch(0.959 0.010 81.8);
--color-ttb24-navy: #1a2842;
--color-ttb24-navy: oklch(0.278 0.052 262.0);
--color-ttb24-mut: #5a6478;
--color-ttb24-mut: oklch(0.502 0.034 264.2);
--color-ttb24-ash: #3a3a42;
--color-ttb24-ash: oklch(0.352 0.014 285.7);
--font-ttb24-serif: 'Newsreader', Georgia, serif;
--font-ttb24-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-24 {
width: 100%;
min-height: 100svh;
}@import "tailwindcss";
@theme {
--color-ttb24-bg: #f5f1ea;
--color-ttb24-bg: oklch(0.959 0.010 81.8);
--color-ttb24-navy: #1a2842;
--color-ttb24-navy: oklch(0.278 0.052 262.0);
--color-ttb24-mut: #5a6478;
--color-ttb24-mut: oklch(0.502 0.034 264.2);
--color-ttb24-ash: #3a3a42;
--color-ttb24-ash: oklch(0.352 0.014 285.7);
--font-ttb24-serif: 'Newsreader', Georgia, serif;
--font-ttb24-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-24 {
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=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&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=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&family=JetBrains+Mono:wght@400;500&display=swap">What changed in the port
Which parts became utilities, which stayed CSS, and why.
border-top:4px solid transparent→border-t-4 border-t-transparent; the inked state ishas-checked:border-t-ttb24-navy.- The four
.tt12tk-Nclasses (one per corner, each with its owntransform:scale(0)) became four<i>elements sharing one class list apart from position. - UI upgrade from the CSS original: per-tab counts in tabular mono, and the 0.5px hairline (inconsistent at 1x) became 1px at 40% ink.
- UI upgrade: resting labels went from 50% navy (≈4.2:1) to a 5.7:1 token; tabs wrap 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: Outlined Tabs with Corner Markers in Tailwind CSS
Source: https://codefronts.com/navigation/tailwind-css-tabs/outlined-tabs-corner-markers-tailwind-css/
Hairline-framed tabs on warm white. The chosen frame inks a 4px navy top edge and four dots pop onto its corners a beat later, like crop marks. The 4px top border is reserved transparent from the start, so selecting a tab never moves the row by a pixel.
## HTML
```html
<section class="ttb-24 group/tabs grid min-h-svh w-full place-items-center bg-ttb24-bg px-5 py-14 font-ttb24-serif text-ttb24-navy" aria-label="Outlined tabs with corner markers demo">
<div class="grid w-full max-w-lg justify-items-center gap-7">
<div class="w-full">
<div role="radiogroup" aria-label="Stage" class="flex flex-wrap gap-3.5">
<label class="group/tab relative flex min-h-12 flex-1 cursor-pointer items-center justify-center gap-2 border border-t-4 border-ttb24-navy/40 border-t-transparent px-5 text-[15px] font-semibold tracking-[0.03em] text-ttb24-mut transition-[color,border-color] duration-300 hover:text-ttb24-navy has-checked:border-ttb24-navy has-checked:border-t-ttb24-navy has-checked:text-ttb24-navy has-focus-visible:outline-2 has-focus-visible:outline-offset-5 has-focus-visible:outline-ttb24-navy"><input class="sr-only" type="radio" name="ttb24" id="ttb24-r1" checked>Drafts <span class="font-ttb24-mono text-[11px] font-medium tabular-nums">12</span><i aria-hidden="true" class="absolute -top-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -top-1 -right-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -bottom-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -right-1 -bottom-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i></label>
<label class="group/tab relative flex min-h-12 flex-1 cursor-pointer items-center justify-center gap-2 border border-t-4 border-ttb24-navy/40 border-t-transparent px-5 text-[15px] font-semibold tracking-[0.03em] text-ttb24-mut transition-[color,border-color] duration-300 hover:text-ttb24-navy has-checked:border-ttb24-navy has-checked:border-t-ttb24-navy has-checked:text-ttb24-navy has-focus-visible:outline-2 has-focus-visible:outline-offset-5 has-focus-visible:outline-ttb24-navy"><input class="sr-only" type="radio" name="ttb24" id="ttb24-r2">Proofs <span class="font-ttb24-mono text-[11px] font-medium tabular-nums">4</span><i aria-hidden="true" class="absolute -top-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -top-1 -right-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -bottom-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -right-1 -bottom-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i></label>
<label class="group/tab relative flex min-h-12 flex-1 cursor-pointer items-center justify-center gap-2 border border-t-4 border-ttb24-navy/40 border-t-transparent px-5 text-[15px] font-semibold tracking-[0.03em] text-ttb24-mut transition-[color,border-color] duration-300 hover:text-ttb24-navy has-checked:border-ttb24-navy has-checked:border-t-ttb24-navy has-checked:text-ttb24-navy has-focus-visible:outline-2 has-focus-visible:outline-offset-5 has-focus-visible:outline-ttb24-navy"><input class="sr-only" type="radio" name="ttb24" id="ttb24-r3">Final <span class="font-ttb24-mono text-[11px] font-medium tabular-nums">31</span><i aria-hidden="true" class="absolute -top-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -top-1 -right-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -bottom-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -right-1 -bottom-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i></label>
</div>
<div class="pt-5 text-[16px] text-ttb24-ash italic">
<p class="hidden group-has-[#ttb24-r1:checked]/tabs:block">Working files in progress.</p>
<p class="hidden group-has-[#ttb24-r2:checked]/tabs:block">Galleys ready for review.</p>
<p class="hidden group-has-[#ttb24-r3:checked]/tabs:block">Approved and locked.</p>
</div>
</div>
<p aria-hidden="true" class="border border-ttb24-navy/30 px-3.5 py-2 font-ttb24-mono text-[11.5px] text-ttb24-mut">border-t-transparent reserved · corner dots delay-100</p>
</div>
</section>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-ttb24-bg: #f5f1ea;
--color-ttb24-bg: oklch(0.959 0.010 81.8);
--color-ttb24-navy: #1a2842;
--color-ttb24-navy: oklch(0.278 0.052 262.0);
--color-ttb24-mut: #5a6478;
--color-ttb24-mut: oklch(0.502 0.034 264.2);
--color-ttb24-ash: #3a3a42;
--color-ttb24-ash: oklch(0.352 0.014 285.7);
--font-ttb24-serif: 'Newsreader', Georgia, serif;
--font-ttb24-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-24 {
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: Outlined Tabs with Corner Markers in Tailwind CSS
Source: https://codefronts.com/navigation/tailwind-css-tabs/outlined-tabs-corner-markers-tailwind-css/
Hairline-framed tabs on warm white. The chosen frame inks a 4px navy top edge and four dots pop onto its corners a beat later, like crop marks. The 4px top border is reserved transparent from the start, so selecting a tab never moves the row by a pixel.
## HTML
```html
<section class="ttb-24 group/tabs grid min-h-svh w-full place-items-center bg-ttb24-bg px-5 py-14 font-ttb24-serif text-ttb24-navy" aria-label="Outlined tabs with corner markers demo">
<div class="grid w-full max-w-lg justify-items-center gap-7">
<div class="w-full">
<div role="radiogroup" aria-label="Stage" class="flex flex-wrap gap-3.5">
<label class="group/tab relative flex min-h-12 flex-1 cursor-pointer items-center justify-center gap-2 border border-t-4 border-ttb24-navy/40 border-t-transparent px-5 text-[15px] font-semibold tracking-[0.03em] text-ttb24-mut transition-[color,border-color] duration-300 hover:text-ttb24-navy has-checked:border-ttb24-navy has-checked:border-t-ttb24-navy has-checked:text-ttb24-navy has-focus-visible:outline-2 has-focus-visible:outline-offset-5 has-focus-visible:outline-ttb24-navy"><input class="sr-only" type="radio" name="ttb24" id="ttb24-r1" checked>Drafts <span class="font-ttb24-mono text-[11px] font-medium tabular-nums">12</span><i aria-hidden="true" class="absolute -top-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -top-1 -right-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -bottom-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -right-1 -bottom-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i></label>
<label class="group/tab relative flex min-h-12 flex-1 cursor-pointer items-center justify-center gap-2 border border-t-4 border-ttb24-navy/40 border-t-transparent px-5 text-[15px] font-semibold tracking-[0.03em] text-ttb24-mut transition-[color,border-color] duration-300 hover:text-ttb24-navy has-checked:border-ttb24-navy has-checked:border-t-ttb24-navy has-checked:text-ttb24-navy has-focus-visible:outline-2 has-focus-visible:outline-offset-5 has-focus-visible:outline-ttb24-navy"><input class="sr-only" type="radio" name="ttb24" id="ttb24-r2">Proofs <span class="font-ttb24-mono text-[11px] font-medium tabular-nums">4</span><i aria-hidden="true" class="absolute -top-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -top-1 -right-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -bottom-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -right-1 -bottom-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i></label>
<label class="group/tab relative flex min-h-12 flex-1 cursor-pointer items-center justify-center gap-2 border border-t-4 border-ttb24-navy/40 border-t-transparent px-5 text-[15px] font-semibold tracking-[0.03em] text-ttb24-mut transition-[color,border-color] duration-300 hover:text-ttb24-navy has-checked:border-ttb24-navy has-checked:border-t-ttb24-navy has-checked:text-ttb24-navy has-focus-visible:outline-2 has-focus-visible:outline-offset-5 has-focus-visible:outline-ttb24-navy"><input class="sr-only" type="radio" name="ttb24" id="ttb24-r3">Final <span class="font-ttb24-mono text-[11px] font-medium tabular-nums">31</span><i aria-hidden="true" class="absolute -top-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -top-1 -right-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -bottom-1 -left-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i><i aria-hidden="true" class="absolute -right-1 -bottom-1 size-[7px] scale-0 rounded-full bg-ttb24-navy transition-transform delay-100 duration-350 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-has-checked/tab:scale-100"></i></label>
</div>
<div class="pt-5 text-[16px] text-ttb24-ash italic">
<p class="hidden group-has-[#ttb24-r1:checked]/tabs:block">Working files in progress.</p>
<p class="hidden group-has-[#ttb24-r2:checked]/tabs:block">Galleys ready for review.</p>
<p class="hidden group-has-[#ttb24-r3:checked]/tabs:block">Approved and locked.</p>
</div>
</div>
<p aria-hidden="true" class="border border-ttb24-navy/30 px-3.5 py-2 font-ttb24-mono text-[11.5px] text-ttb24-mut">border-t-transparent reserved · corner dots delay-100</p>
</div>
</section>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-ttb24-bg: #f5f1ea;
--color-ttb24-bg: oklch(0.959 0.010 81.8);
--color-ttb24-navy: #1a2842;
--color-ttb24-navy: oklch(0.278 0.052 262.0);
--color-ttb24-mut: #5a6478;
--color-ttb24-mut: oklch(0.502 0.034 264.2);
--color-ttb24-ash: #3a3a42;
--color-ttb24-ash: oklch(0.352 0.014 285.7);
--font-ttb24-serif: 'Newsreader', Georgia, serif;
--font-ttb24-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-24 {
width: 100%;
min-height: 100svh;
}
```How this works
Reserve the weight. A border that appears on selection would push content down by 4px. Declaring it transparent up front makes selection a colour change only:
<label class="border border-t-4 border-ttb24-navy/50 border-t-transparent
has-checked:border-ttb24-navy has-checked:border-t-ttb24-navy">The corner dots sit at -top-1 -left-1 etc. (half their size outside each corner) and pop with an overshoot ease after a 100ms delay, so the frame inks first and the marks follow.
Make it yours
- Burgundy or forest ink: swap
--color-ttb24-navy. - Square crop marks: drop
rounded-fullfrom the dots. - Hide counts by deleting the badge spans.
Gotchas — read before shipping
- 0.5px hairlines render unevenly at 1x; the port uses 1px at 50% ink instead.
- Dots overlap neighbours if the gap is under 8px.
- Counts are part of each radio's name — keep them meaningful.
Browser support
| Chrome | Safari | Firefox | Edge |
|---|---|---|---|
| 111+ | 16.4+ | 128+ | 111+ |
:has() for panels.