28 / 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
Font Specimen Glyph Tabs in Tailwind CSS
A foundry specimen card: the foundry mark on the left, large glyph tabs on the right — Aa for the roman, Bb for the bold, Cc for small caps. The chosen glyph pulses vermilion; the panel now shows a full pangram in that cut, set in Fraunces.
Untitled UI Pro: 5,000+ React + Tailwind CSS v4 components · from $349 one-time
Untitled UI React · Affiliate link
The code
<section class="ttb-28 group/tabs grid min-h-svh w-full place-items-center bg-ttb28-bg px-5 py-14 font-ttb28-serif text-ttb28-paper" aria-label="Font specimen glyph tabs demo">
<div class="grid w-full max-w-xl justify-items-center gap-7">
<div class="w-full rounded-2xl bg-ttb28-card p-6 ring-1 ring-ttb28-paper/10">
<div class="flex items-stretch gap-6 border-b border-ttb28-paper/18 pb-4">
<div class="border-r border-ttb28-paper/18 pr-6 font-ttb28-mono">
<p class="text-[11px] leading-snug font-extrabold tracking-[0.2em] uppercase">CodeFronts<br>Foundry</p>
<p class="mt-2 text-[10px] font-medium tracking-[0.2em] text-ttb28-mut">SPEC · 2026</p>
</div>
<div role="radiogroup" aria-label="Cut" class="flex items-baseline gap-5">
<label class="min-h-11 origin-bottom-left cursor-pointer text-[32px] leading-none font-bold text-ttb28-mut transition-[color,scale] duration-400 ease-[cubic-bezier(0.34,1.56,0.64,1)] hover:text-ttb28-paper has-checked:scale-115 has-checked:text-ttb28-red has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-ttb28-red motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb28" id="ttb28-r1" checked><span class="sr-only">Roman</span><span aria-hidden="true" class="font-normal">Aa</span></label>
<label class="min-h-11 origin-bottom-left cursor-pointer text-[32px] leading-none font-bold text-ttb28-mut transition-[color,scale] duration-400 ease-[cubic-bezier(0.34,1.56,0.64,1)] hover:text-ttb28-paper has-checked:scale-115 has-checked:text-ttb28-red has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-ttb28-red motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb28" id="ttb28-r2"><span class="sr-only">Bold</span><span aria-hidden="true" class="font-black">Bb</span></label>
<label class="min-h-11 origin-bottom-left cursor-pointer text-[32px] leading-none font-bold text-ttb28-mut transition-[color,scale] duration-400 ease-[cubic-bezier(0.34,1.56,0.64,1)] hover:text-ttb28-paper has-checked:scale-115 has-checked:text-ttb28-red has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-ttb28-red motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb28" id="ttb28-r3"><span class="sr-only">Small caps</span><span aria-hidden="true" class="font-medium [font-variant-caps:small-caps]">Cc</span></label>
</div>
</div>
<div class="pt-5">
<div class="hidden group-has-[#ttb28-r1:checked]/tabs:block"><p class="text-[28px] leading-tight font-normal text-balance">Sphinx of black quartz, judge my vow.</p><p class="mt-2 text-[13px] text-ttb28-mut italic">Upright Roman · 400 · optical size auto</p></div>
<div class="hidden group-has-[#ttb28-r2:checked]/tabs:block"><p class="text-[28px] leading-tight font-black text-balance">Sphinx of black quartz, judge my vow.</p><p class="mt-2 text-[13px] text-ttb28-mut italic">Bold · 900 · display weight</p></div>
<div class="hidden group-has-[#ttb28-r3:checked]/tabs:block"><p class="text-[28px] leading-tight font-medium text-balance [font-variant-caps:small-caps]">Sphinx of black quartz, judge my vow.</p><p class="mt-2 text-[13px] text-ttb28-mut italic">Small caps · 500 · for running heads</p></div>
</div>
</div>
<p aria-hidden="true" class="rounded-full border border-ttb28-paper/12 px-3.5 py-2 font-ttb28-mono text-[11.5px] text-ttb28-mut">items-baseline · has-checked:scale-115 · live pangram per cut</p>
</div>
</section><section class="ttb-28 group/tabs grid min-h-svh w-full place-items-center bg-ttb28-bg px-5 py-14 font-ttb28-serif text-ttb28-paper" aria-label="Font specimen glyph tabs demo">
<div class="grid w-full max-w-xl justify-items-center gap-7">
<div class="w-full rounded-2xl bg-ttb28-card p-6 ring-1 ring-ttb28-paper/10">
<div class="flex items-stretch gap-6 border-b border-ttb28-paper/18 pb-4">
<div class="border-r border-ttb28-paper/18 pr-6 font-ttb28-mono">
<p class="text-[11px] leading-snug font-extrabold tracking-[0.2em] uppercase">CodeFronts<br>Foundry</p>
<p class="mt-2 text-[10px] font-medium tracking-[0.2em] text-ttb28-mut">SPEC · 2026</p>
</div>
<div role="radiogroup" aria-label="Cut" class="flex items-baseline gap-5">
<label class="min-h-11 origin-bottom-left cursor-pointer text-[32px] leading-none font-bold text-ttb28-mut transition-[color,scale] duration-400 ease-[cubic-bezier(0.34,1.56,0.64,1)] hover:text-ttb28-paper has-checked:scale-115 has-checked:text-ttb28-red has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-ttb28-red motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb28" id="ttb28-r1" checked><span class="sr-only">Roman</span><span aria-hidden="true" class="font-normal">Aa</span></label>
<label class="min-h-11 origin-bottom-left cursor-pointer text-[32px] leading-none font-bold text-ttb28-mut transition-[color,scale] duration-400 ease-[cubic-bezier(0.34,1.56,0.64,1)] hover:text-ttb28-paper has-checked:scale-115 has-checked:text-ttb28-red has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-ttb28-red motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb28" id="ttb28-r2"><span class="sr-only">Bold</span><span aria-hidden="true" class="font-black">Bb</span></label>
<label class="min-h-11 origin-bottom-left cursor-pointer text-[32px] leading-none font-bold text-ttb28-mut transition-[color,scale] duration-400 ease-[cubic-bezier(0.34,1.56,0.64,1)] hover:text-ttb28-paper has-checked:scale-115 has-checked:text-ttb28-red has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-ttb28-red motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb28" id="ttb28-r3"><span class="sr-only">Small caps</span><span aria-hidden="true" class="font-medium [font-variant-caps:small-caps]">Cc</span></label>
</div>
</div>
<div class="pt-5">
<div class="hidden group-has-[#ttb28-r1:checked]/tabs:block"><p class="text-[28px] leading-tight font-normal text-balance">Sphinx of black quartz, judge my vow.</p><p class="mt-2 text-[13px] text-ttb28-mut italic">Upright Roman · 400 · optical size auto</p></div>
<div class="hidden group-has-[#ttb28-r2:checked]/tabs:block"><p class="text-[28px] leading-tight font-black text-balance">Sphinx of black quartz, judge my vow.</p><p class="mt-2 text-[13px] text-ttb28-mut italic">Bold · 900 · display weight</p></div>
<div class="hidden group-has-[#ttb28-r3:checked]/tabs:block"><p class="text-[28px] leading-tight font-medium text-balance [font-variant-caps:small-caps]">Sphinx of black quartz, judge my vow.</p><p class="mt-2 text-[13px] text-ttb28-mut italic">Small caps · 500 · for running heads</p></div>
</div>
</div>
<p aria-hidden="true" class="rounded-full border border-ttb28-paper/12 px-3.5 py-2 font-ttb28-mono text-[11.5px] text-ttb28-mut">items-baseline · has-checked:scale-115 · live pangram per cut</p>
</div>
</section>@import "tailwindcss";
@theme {
--color-ttb28-bg: #141414;
--color-ttb28-bg: oklch(0.191 0 0);
--color-ttb28-card: #1c1c1c;
--color-ttb28-card: oklch(0.226 0 0);
--color-ttb28-paper: #ece6d4;
--color-ttb28-paper: oklch(0.925 0.025 91.6);
--color-ttb28-mut: #a8a293;
--color-ttb28-mut: oklch(0.713 0.022 88.8);
--color-ttb28-red: #e0574c;
--color-ttb28-red: oklch(0.635 0.173 27.6);
--font-ttb28-serif: 'Fraunces', Georgia, serif;
--font-ttb28-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-28 {
width: 100%;
min-height: 100svh;
}@import "tailwindcss";
@theme {
--color-ttb28-bg: #141414;
--color-ttb28-bg: oklch(0.191 0 0);
--color-ttb28-card: #1c1c1c;
--color-ttb28-card: oklch(0.226 0 0);
--color-ttb28-paper: #ece6d4;
--color-ttb28-paper: oklch(0.925 0.025 91.6);
--color-ttb28-mut: #a8a293;
--color-ttb28-mut: oklch(0.713 0.022 88.8);
--color-ttb28-red: #e0574c;
--color-ttb28-red: oklch(0.635 0.173 27.6);
--font-ttb28-serif: 'Fraunces', Georgia, serif;
--font-ttb28-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-28 {
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-ttb28-bg: #141414;
--color-ttb28-bg: oklch(0.191 0 0);
--color-ttb28-card: #1c1c1c;
--color-ttb28-card: oklch(0.226 0 0);
--color-ttb28-paper: #ece6d4;
--color-ttb28-paper: oklch(0.925 0.025 91.6);
--color-ttb28-mut: #a8a293;
--color-ttb28-mut: oklch(0.713 0.022 88.8);
--color-ttb28-red: #e0574c;
--color-ttb28-red: oklch(0.635 0.173 27.6);
--font-ttb28-serif: 'Fraunces', Georgia, serif;
--font-ttb28-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-28 {
width: 100%;
min-height: 100svh;
}@import "tailwindcss";
@theme {
--color-ttb28-bg: #141414;
--color-ttb28-bg: oklch(0.191 0 0);
--color-ttb28-card: #1c1c1c;
--color-ttb28-card: oklch(0.226 0 0);
--color-ttb28-paper: #ece6d4;
--color-ttb28-paper: oklch(0.925 0.025 91.6);
--color-ttb28-mut: #a8a293;
--color-ttb28-mut: oklch(0.713 0.022 88.8);
--color-ttb28-red: #e0574c;
--color-ttb28-red: oklch(0.635 0.173 27.6);
--font-ttb28-serif: 'Fraunces', Georgia, serif;
--font-ttb28-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-28 {
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=Fraunces:ital,opsz,wght@0,9..144,400..900;1,9..144,400..700&family=JetBrains+Mono:wght@400;500;700;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=Fraunces:ital,opsz,wght@0,9..144,400..900;1,9..144,400..700&family=JetBrains+Mono:wght@400;500;700;800&display=swap">What changed in the port
Which parts became utilities, which stayed CSS, and why.
input:checked + .tt16b { color; transform: scale(1.15) }becamehas-checked:text-ttb28-red has-checked:scale-115.- The italic captions became panels whose content is a pangram set in each cut (
font-normal,font-black,[font-variant-caps:small-caps]). - UI upgrade from the CSS original: glyph-only tabs gained
sr-onlynames (screen readers heard "A a, B b"), and the three glyphs now preview their own cut. - UI upgrade: vermilion lifted from 2.8:1 to 4.6:1 on the stage, resting glyphs from 40% to a 6.9:1 token; Fraunces replaces generic
ui-serif.
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: Font Specimen Glyph Tabs in Tailwind CSS
Source: https://codefronts.com/navigation/tailwind-css-tabs/font-specimen-glyph-tabs-tailwind-css/
A foundry specimen card: the foundry mark on the left, large glyph tabs on the right — Aa for the roman, Bb for the bold, Cc for small caps. The chosen glyph pulses vermilion; the panel now shows a full pangram in that cut, set in Fraunces.
## HTML
```html
<section class="ttb-28 group/tabs grid min-h-svh w-full place-items-center bg-ttb28-bg px-5 py-14 font-ttb28-serif text-ttb28-paper" aria-label="Font specimen glyph tabs demo">
<div class="grid w-full max-w-xl justify-items-center gap-7">
<div class="w-full rounded-2xl bg-ttb28-card p-6 ring-1 ring-ttb28-paper/10">
<div class="flex items-stretch gap-6 border-b border-ttb28-paper/18 pb-4">
<div class="border-r border-ttb28-paper/18 pr-6 font-ttb28-mono">
<p class="text-[11px] leading-snug font-extrabold tracking-[0.2em] uppercase">CodeFronts<br>Foundry</p>
<p class="mt-2 text-[10px] font-medium tracking-[0.2em] text-ttb28-mut">SPEC · 2026</p>
</div>
<div role="radiogroup" aria-label="Cut" class="flex items-baseline gap-5">
<label class="min-h-11 origin-bottom-left cursor-pointer text-[32px] leading-none font-bold text-ttb28-mut transition-[color,scale] duration-400 ease-[cubic-bezier(0.34,1.56,0.64,1)] hover:text-ttb28-paper has-checked:scale-115 has-checked:text-ttb28-red has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-ttb28-red motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb28" id="ttb28-r1" checked><span class="sr-only">Roman</span><span aria-hidden="true" class="font-normal">Aa</span></label>
<label class="min-h-11 origin-bottom-left cursor-pointer text-[32px] leading-none font-bold text-ttb28-mut transition-[color,scale] duration-400 ease-[cubic-bezier(0.34,1.56,0.64,1)] hover:text-ttb28-paper has-checked:scale-115 has-checked:text-ttb28-red has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-ttb28-red motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb28" id="ttb28-r2"><span class="sr-only">Bold</span><span aria-hidden="true" class="font-black">Bb</span></label>
<label class="min-h-11 origin-bottom-left cursor-pointer text-[32px] leading-none font-bold text-ttb28-mut transition-[color,scale] duration-400 ease-[cubic-bezier(0.34,1.56,0.64,1)] hover:text-ttb28-paper has-checked:scale-115 has-checked:text-ttb28-red has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-ttb28-red motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb28" id="ttb28-r3"><span class="sr-only">Small caps</span><span aria-hidden="true" class="font-medium [font-variant-caps:small-caps]">Cc</span></label>
</div>
</div>
<div class="pt-5">
<div class="hidden group-has-[#ttb28-r1:checked]/tabs:block"><p class="text-[28px] leading-tight font-normal text-balance">Sphinx of black quartz, judge my vow.</p><p class="mt-2 text-[13px] text-ttb28-mut italic">Upright Roman · 400 · optical size auto</p></div>
<div class="hidden group-has-[#ttb28-r2:checked]/tabs:block"><p class="text-[28px] leading-tight font-black text-balance">Sphinx of black quartz, judge my vow.</p><p class="mt-2 text-[13px] text-ttb28-mut italic">Bold · 900 · display weight</p></div>
<div class="hidden group-has-[#ttb28-r3:checked]/tabs:block"><p class="text-[28px] leading-tight font-medium text-balance [font-variant-caps:small-caps]">Sphinx of black quartz, judge my vow.</p><p class="mt-2 text-[13px] text-ttb28-mut italic">Small caps · 500 · for running heads</p></div>
</div>
</div>
<p aria-hidden="true" class="rounded-full border border-ttb28-paper/12 px-3.5 py-2 font-ttb28-mono text-[11.5px] text-ttb28-mut">items-baseline · has-checked:scale-115 · live pangram per cut</p>
</div>
</section>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-ttb28-bg: #141414;
--color-ttb28-bg: oklch(0.191 0 0);
--color-ttb28-card: #1c1c1c;
--color-ttb28-card: oklch(0.226 0 0);
--color-ttb28-paper: #ece6d4;
--color-ttb28-paper: oklch(0.925 0.025 91.6);
--color-ttb28-mut: #a8a293;
--color-ttb28-mut: oklch(0.713 0.022 88.8);
--color-ttb28-red: #e0574c;
--color-ttb28-red: oklch(0.635 0.173 27.6);
--font-ttb28-serif: 'Fraunces', Georgia, serif;
--font-ttb28-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-28 {
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: Font Specimen Glyph Tabs in Tailwind CSS
Source: https://codefronts.com/navigation/tailwind-css-tabs/font-specimen-glyph-tabs-tailwind-css/
A foundry specimen card: the foundry mark on the left, large glyph tabs on the right — Aa for the roman, Bb for the bold, Cc for small caps. The chosen glyph pulses vermilion; the panel now shows a full pangram in that cut, set in Fraunces.
## HTML
```html
<section class="ttb-28 group/tabs grid min-h-svh w-full place-items-center bg-ttb28-bg px-5 py-14 font-ttb28-serif text-ttb28-paper" aria-label="Font specimen glyph tabs demo">
<div class="grid w-full max-w-xl justify-items-center gap-7">
<div class="w-full rounded-2xl bg-ttb28-card p-6 ring-1 ring-ttb28-paper/10">
<div class="flex items-stretch gap-6 border-b border-ttb28-paper/18 pb-4">
<div class="border-r border-ttb28-paper/18 pr-6 font-ttb28-mono">
<p class="text-[11px] leading-snug font-extrabold tracking-[0.2em] uppercase">CodeFronts<br>Foundry</p>
<p class="mt-2 text-[10px] font-medium tracking-[0.2em] text-ttb28-mut">SPEC · 2026</p>
</div>
<div role="radiogroup" aria-label="Cut" class="flex items-baseline gap-5">
<label class="min-h-11 origin-bottom-left cursor-pointer text-[32px] leading-none font-bold text-ttb28-mut transition-[color,scale] duration-400 ease-[cubic-bezier(0.34,1.56,0.64,1)] hover:text-ttb28-paper has-checked:scale-115 has-checked:text-ttb28-red has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-ttb28-red motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb28" id="ttb28-r1" checked><span class="sr-only">Roman</span><span aria-hidden="true" class="font-normal">Aa</span></label>
<label class="min-h-11 origin-bottom-left cursor-pointer text-[32px] leading-none font-bold text-ttb28-mut transition-[color,scale] duration-400 ease-[cubic-bezier(0.34,1.56,0.64,1)] hover:text-ttb28-paper has-checked:scale-115 has-checked:text-ttb28-red has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-ttb28-red motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb28" id="ttb28-r2"><span class="sr-only">Bold</span><span aria-hidden="true" class="font-black">Bb</span></label>
<label class="min-h-11 origin-bottom-left cursor-pointer text-[32px] leading-none font-bold text-ttb28-mut transition-[color,scale] duration-400 ease-[cubic-bezier(0.34,1.56,0.64,1)] hover:text-ttb28-paper has-checked:scale-115 has-checked:text-ttb28-red has-focus-visible:outline-2 has-focus-visible:outline-offset-4 has-focus-visible:outline-ttb28-red motion-reduce:transition-none"><input class="sr-only" type="radio" name="ttb28" id="ttb28-r3"><span class="sr-only">Small caps</span><span aria-hidden="true" class="font-medium [font-variant-caps:small-caps]">Cc</span></label>
</div>
</div>
<div class="pt-5">
<div class="hidden group-has-[#ttb28-r1:checked]/tabs:block"><p class="text-[28px] leading-tight font-normal text-balance">Sphinx of black quartz, judge my vow.</p><p class="mt-2 text-[13px] text-ttb28-mut italic">Upright Roman · 400 · optical size auto</p></div>
<div class="hidden group-has-[#ttb28-r2:checked]/tabs:block"><p class="text-[28px] leading-tight font-black text-balance">Sphinx of black quartz, judge my vow.</p><p class="mt-2 text-[13px] text-ttb28-mut italic">Bold · 900 · display weight</p></div>
<div class="hidden group-has-[#ttb28-r3:checked]/tabs:block"><p class="text-[28px] leading-tight font-medium text-balance [font-variant-caps:small-caps]">Sphinx of black quartz, judge my vow.</p><p class="mt-2 text-[13px] text-ttb28-mut italic">Small caps · 500 · for running heads</p></div>
</div>
</div>
<p aria-hidden="true" class="rounded-full border border-ttb28-paper/12 px-3.5 py-2 font-ttb28-mono text-[11.5px] text-ttb28-mut">items-baseline · has-checked:scale-115 · live pangram per cut</p>
</div>
</section>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-ttb28-bg: #141414;
--color-ttb28-bg: oklch(0.191 0 0);
--color-ttb28-card: #1c1c1c;
--color-ttb28-card: oklch(0.226 0 0);
--color-ttb28-paper: #ece6d4;
--color-ttb28-paper: oklch(0.925 0.025 91.6);
--color-ttb28-mut: #a8a293;
--color-ttb28-mut: oklch(0.713 0.022 88.8);
--color-ttb28-red: #e0574c;
--color-ttb28-red: oklch(0.635 0.173 27.6);
--font-ttb28-serif: 'Fraunces', Georgia, serif;
--font-ttb28-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-28 {
width: 100%;
min-height: 100svh;
}
```How this works
The specimen is the content. Each panel sets the same pangram in its cut, so choosing a tab is choosing a style:
<p class="hidden group-has-[#ttb28-r3:checked]/tabs:block font-medium [font-variant-caps:small-caps]">
Sphinx of black quartz, judge my vow.
</p>Tab glyphs transform from origin-bottom-left, so the scale grows up and right from the baseline and never collides with the meta column.
Make it yours
- Ligatures or numerals as glyphs:
fi st ctor0 1 2. - Light card: cream stock, ink glyphs, burgundy active.
- Add an issue line under the catalogue id.
Gotchas — read before shipping
- Glyph-only labels need an
sr-onlyname ("Roman", "Bold", "Small caps"). small-capsis synthesised if the font lacks real small caps; Fraunces has them.- Don't put icons inside baseline-aligned tabs — they break the shared baseline.
Browser support
| Chrome | Safari | Firefox | Edge |
|---|---|---|---|
| 111+ | 16.4+ | 128+ | 111+ |
:has() for panels.