32 / 39
All 39 in 39 Tailwind CSS Breadcrumbs
- 01Tailwind Accessible Breadcrumb with Schema.org Microdata & ARIA
- 02Tailwind Responsive Collapsing Breadcrumb Bar with Container Queries
- 03Tailwind Adaptive Light & Dark Mode Breadcrumb Bar with Theme Tokens
- 04Tailwind E-Commerce Filter & Facet Breadcrumb with Removable Chips
- 05Tailwind Glassmorphism Floating Breadcrumb Pill with Shimmer Sweep
- 06Tailwind Neumorphic Soft UI Breadcrumb with Dual Box Shadows
- 07Tailwind Sticky Scroll-Shrink Breadcrumb Header with Scroll-Driven Animation
- 08Tailwind Material Design Flat Breadcrumb Bar with Ink Ripple
- 09Tailwind Isometric 3D Layered Breadcrumb with Extruded Tiles
- 10Tailwind Breadcrumb Bar with Built-In Dropdown Sibling Menus
- 11Tailwind Full-Width Block-Style Segmented Breadcrumb Bar
- 12Tailwind Accent-Colour Toggle Breadcrumb with Persisted Theme
- 13Tailwind Seamless Arrow-Cutout Breadcrumb Trail with clip-path
- 14Tailwind Compact Icon-Only Home Node Breadcrumb Bar
- 15Tailwind Segmented Rounded-Outline Pill Breadcrumb
- 16Tailwind Neumorphic Soft Inset-Shadow Breadcrumb Channel
- 17Tailwind CSS Grid Auto-Fitting Responsive Breadcrumb Trail
- 18Tailwind Holographic Shimmer Web3 Breadcrumb with Animated @property
- 19Tailwind SaaS Gradient-Text Breadcrumb Bar with Animated Clip
- 20Tailwind Marketplace Filter-Chip Breadcrumb with Icon Chips
- 21Tailwind Editorial Breadcrumb with Animated SVG Wave Underline
- 22Tailwind Developer Docs Breadcrumb with One-Click Path Copy
- 23Tailwind Modern Arrow Breadcrumb Bar using clip-path Polygons
- 24Tailwind Multi-Line Aligned Breadcrumb Layout with CSS Subgrid
- 25Tailwind Breadcrumb Links with Animated Underline Glow
- 26Tailwind Minimalist Breadcrumb with Swappable Masked SVG Separators
- 27Tailwind Multi-Step Checkout & Wizard Breadcrumb Indicator
- 28Tailwind Ribbon-Style Chevron Breadcrumb Trail
- 29Tailwind Pill-Shape Badge Breadcrumb Bar
- 30Tailwind Clean Line-Separator Minimalist Breadcrumbs
- 31Tailwind Gradient Background Glow Breadcrumb Bar
- 32Tailwind Floating Card Shadow Breadcrumb Navigation
- 33Tailwind Truncated Ellipsis Compact Mobile Breadcrumb
- 34Tailwind Inline Bullet-Dot Separator Breadcrumb
- 35Tailwind Skewed Parallelogram Breadcrumb Bar
- 36Tailwind Outline Border-Only Geometric Breadcrumbs
- 37Tailwind Circular Icon & Numbered Step Breadcrumbs
- 38Tailwind Frosted Glass Dark UI Breadcrumb Component
- 39Tailwind Micro-Interaction Animated Hover Breadcrumbs
Tailwind Floating Card Shadow Breadcrumb Navigation
Each crumb is an elevated white card linked by faint dotted connectors, lifting on hover and resting at top elevation when current. Three elevation levels as three arbitrary shadow pairs, and the connector is a dotted border on a pseudo-element.
Untitled UI Pro: 5,000+ React + Tailwind CSS v4 components · from $349 one-time
Untitled UI React · Affiliate link
The code
<section class="tbc-32 w-full min-h-svh grid place-items-center bg-tbc32-bg font-tbc32-sans px-7 py-9">
<nav aria-label="Breadcrumb">
<ol class="flex flex-wrap items-center gap-5 list-none m-0 p-0">
<li class="relative flex items-center"><a href="#" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-semibold text-tbc32-ink no-underline bg-white shadow-[0_1px_2px_oklch(0.25_0.05_265/0.1),0_3px_8px_oklch(0.25_0.05_265/0.08)] transition-[translate,box-shadow,color] duration-200 hover:-translate-y-0.5 hover:text-tbc32-acc hover:shadow-[0_3px_6px_oklch(0.25_0.05_265/0.12),0_10px_22px_oklch(0.25_0.05_265/0.14)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2 motion-reduce:transition-[box-shadow,color] motion-reduce:hover:translate-y-0">Home</a></li>
<li class="relative flex items-center before:content-[''] before:absolute before:-left-5 before:z-0 before:w-5 before:border-t-2 before:border-dotted before:border-tbc32-dots"><a href="#" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-semibold text-tbc32-ink no-underline bg-white shadow-[0_1px_2px_oklch(0.25_0.05_265/0.1),0_3px_8px_oklch(0.25_0.05_265/0.08)] transition-[translate,box-shadow,color] duration-200 hover:-translate-y-0.5 hover:text-tbc32-acc hover:shadow-[0_3px_6px_oklch(0.25_0.05_265/0.12),0_10px_22px_oklch(0.25_0.05_265/0.14)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2 motion-reduce:transition-[box-shadow,color] motion-reduce:hover:translate-y-0">Library</a></li>
<li class="relative flex items-center before:content-[''] before:absolute before:-left-5 before:z-0 before:w-5 before:border-t-2 before:border-dotted before:border-tbc32-dots"><a href="#" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-semibold text-tbc32-ink no-underline bg-white shadow-[0_1px_2px_oklch(0.25_0.05_265/0.1),0_3px_8px_oklch(0.25_0.05_265/0.08)] transition-[translate,box-shadow,color] duration-200 hover:-translate-y-0.5 hover:text-tbc32-acc hover:shadow-[0_3px_6px_oklch(0.25_0.05_265/0.12),0_10px_22px_oklch(0.25_0.05_265/0.14)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2 motion-reduce:transition-[box-shadow,color] motion-reduce:hover:translate-y-0">Courses</a></li>
<li class="relative flex items-center before:content-[''] before:absolute before:-left-5 before:z-0 before:w-5 before:border-t-2 before:border-dotted before:border-tbc32-dots"><a href="#" aria-current="page" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-bold text-tbc32-acc no-underline cursor-default bg-white shadow-[0_4px_8px_oklch(0.25_0.05_265/0.14),0_14px_30px_oklch(0.25_0.05_265/0.16),inset_0_0_0_1.5px_color-mix(in_oklab,var(--color-tbc32-acc)_40%,transparent)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2">CSS Mastery</a></li>
</ol>
</nav>
</section><section class="tbc-32 w-full min-h-svh grid place-items-center bg-tbc32-bg font-tbc32-sans px-7 py-9">
<nav aria-label="Breadcrumb">
<ol class="flex flex-wrap items-center gap-5 list-none m-0 p-0">
<li class="relative flex items-center"><a href="#" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-semibold text-tbc32-ink no-underline bg-white shadow-[0_1px_2px_oklch(0.25_0.05_265/0.1),0_3px_8px_oklch(0.25_0.05_265/0.08)] transition-[translate,box-shadow,color] duration-200 hover:-translate-y-0.5 hover:text-tbc32-acc hover:shadow-[0_3px_6px_oklch(0.25_0.05_265/0.12),0_10px_22px_oklch(0.25_0.05_265/0.14)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2 motion-reduce:transition-[box-shadow,color] motion-reduce:hover:translate-y-0">Home</a></li>
<li class="relative flex items-center before:content-[''] before:absolute before:-left-5 before:z-0 before:w-5 before:border-t-2 before:border-dotted before:border-tbc32-dots"><a href="#" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-semibold text-tbc32-ink no-underline bg-white shadow-[0_1px_2px_oklch(0.25_0.05_265/0.1),0_3px_8px_oklch(0.25_0.05_265/0.08)] transition-[translate,box-shadow,color] duration-200 hover:-translate-y-0.5 hover:text-tbc32-acc hover:shadow-[0_3px_6px_oklch(0.25_0.05_265/0.12),0_10px_22px_oklch(0.25_0.05_265/0.14)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2 motion-reduce:transition-[box-shadow,color] motion-reduce:hover:translate-y-0">Library</a></li>
<li class="relative flex items-center before:content-[''] before:absolute before:-left-5 before:z-0 before:w-5 before:border-t-2 before:border-dotted before:border-tbc32-dots"><a href="#" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-semibold text-tbc32-ink no-underline bg-white shadow-[0_1px_2px_oklch(0.25_0.05_265/0.1),0_3px_8px_oklch(0.25_0.05_265/0.08)] transition-[translate,box-shadow,color] duration-200 hover:-translate-y-0.5 hover:text-tbc32-acc hover:shadow-[0_3px_6px_oklch(0.25_0.05_265/0.12),0_10px_22px_oklch(0.25_0.05_265/0.14)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2 motion-reduce:transition-[box-shadow,color] motion-reduce:hover:translate-y-0">Courses</a></li>
<li class="relative flex items-center before:content-[''] before:absolute before:-left-5 before:z-0 before:w-5 before:border-t-2 before:border-dotted before:border-tbc32-dots"><a href="#" aria-current="page" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-bold text-tbc32-acc no-underline cursor-default bg-white shadow-[0_4px_8px_oklch(0.25_0.05_265/0.14),0_14px_30px_oklch(0.25_0.05_265/0.16),inset_0_0_0_1.5px_color-mix(in_oklab,var(--color-tbc32-acc)_40%,transparent)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2">CSS Mastery</a></li>
</ol>
</nav>
</section>@import "tailwindcss";
@theme {
--color-tbc32-bg: #eef0f4;
--color-tbc32-bg: oklch(0.95 0.006 250);
--color-tbc32-ink: #575c69;
--color-tbc32-ink: oklch(0.42 0.02 250);
--color-tbc32-acc: #3f5cc4;
--color-tbc32-acc: oklch(0.52 0.16 260);
--color-tbc32-dots: #bfc3cc;
--color-tbc32-dots: oklch(0.78 0.01 250);
--font-tbc32-sans: 'Space Grotesk', system-ui, sans-serif;
}
.tbc-32 {
width: 100%;
min-height: 100svh;
}@import "tailwindcss";
@theme {
--color-tbc32-bg: #eef0f4;
--color-tbc32-bg: oklch(0.95 0.006 250);
--color-tbc32-ink: #575c69;
--color-tbc32-ink: oklch(0.42 0.02 250);
--color-tbc32-acc: #3f5cc4;
--color-tbc32-acc: oklch(0.52 0.16 260);
--color-tbc32-dots: #bfc3cc;
--color-tbc32-dots: oklch(0.78 0.01 250);
--font-tbc32-sans: 'Space Grotesk', system-ui, sans-serif;
}
.tbc-32 {
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-tbc32-bg: #eef0f4;
--color-tbc32-bg: oklch(0.95 0.006 250);
--color-tbc32-ink: #575c69;
--color-tbc32-ink: oklch(0.42 0.02 250);
--color-tbc32-acc: #3f5cc4;
--color-tbc32-acc: oklch(0.52 0.16 260);
--color-tbc32-dots: #bfc3cc;
--color-tbc32-dots: oklch(0.78 0.01 250);
--font-tbc32-sans: 'Space Grotesk', system-ui, sans-serif;
}
.tbc-32 {
width: 100%;
min-height: 100svh;
}@import "tailwindcss";
@theme {
--color-tbc32-bg: #eef0f4;
--color-tbc32-bg: oklch(0.95 0.006 250);
--color-tbc32-ink: #575c69;
--color-tbc32-ink: oklch(0.42 0.02 250);
--color-tbc32-acc: #3f5cc4;
--color-tbc32-acc: oklch(0.52 0.16 260);
--color-tbc32-dots: #bfc3cc;
--color-tbc32-dots: oklch(0.78 0.01 250);
--font-tbc32-sans: 'Space Grotesk', system-ui, sans-serif;
}
.tbc-32 {
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=Space+Grotesk:wght@400;500;600;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=Space+Grotesk:wght@400;500;600;700&display=swap">What changed in the port
Which parts became utilities, which stayed CSS, and why.
- The original declared the current card's
box-shadowtwice (a plain pair, then the same pair plus an inset ring). Porting surfaced the dead declaration, and only the second survives. - Keeping
hover:-translate-y-0.5next to its deeper shadow is the point: the two halves of a lift are one design decision, and utilities put them on the same line. - UI change from the CSS original: the accent darkened to clear AA at 13.5px, and
motion-reduce:now keeps the shadow-and-colour change while dropping only the movement.
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: Tailwind Floating Card Shadow Breadcrumb Navigation
Source: https://codefronts.com/navigation/tailwind-css-breadcrumbs/tailwind-floating-card-shadow-breadcrumb-navigation/
Each crumb is an elevated white card linked by faint dotted connectors, lifting on hover and resting at top elevation when current. Three elevation levels as three arbitrary shadow pairs, and the connector is a dotted border on a pseudo-element.
## HTML
```html
<section class="tbc-32 w-full min-h-svh grid place-items-center bg-tbc32-bg font-tbc32-sans px-7 py-9">
<nav aria-label="Breadcrumb">
<ol class="flex flex-wrap items-center gap-5 list-none m-0 p-0">
<li class="relative flex items-center"><a href="#" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-semibold text-tbc32-ink no-underline bg-white shadow-[0_1px_2px_oklch(0.25_0.05_265/0.1),0_3px_8px_oklch(0.25_0.05_265/0.08)] transition-[translate,box-shadow,color] duration-200 hover:-translate-y-0.5 hover:text-tbc32-acc hover:shadow-[0_3px_6px_oklch(0.25_0.05_265/0.12),0_10px_22px_oklch(0.25_0.05_265/0.14)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2 motion-reduce:transition-[box-shadow,color] motion-reduce:hover:translate-y-0">Home</a></li>
<li class="relative flex items-center before:content-[''] before:absolute before:-left-5 before:z-0 before:w-5 before:border-t-2 before:border-dotted before:border-tbc32-dots"><a href="#" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-semibold text-tbc32-ink no-underline bg-white shadow-[0_1px_2px_oklch(0.25_0.05_265/0.1),0_3px_8px_oklch(0.25_0.05_265/0.08)] transition-[translate,box-shadow,color] duration-200 hover:-translate-y-0.5 hover:text-tbc32-acc hover:shadow-[0_3px_6px_oklch(0.25_0.05_265/0.12),0_10px_22px_oklch(0.25_0.05_265/0.14)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2 motion-reduce:transition-[box-shadow,color] motion-reduce:hover:translate-y-0">Library</a></li>
<li class="relative flex items-center before:content-[''] before:absolute before:-left-5 before:z-0 before:w-5 before:border-t-2 before:border-dotted before:border-tbc32-dots"><a href="#" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-semibold text-tbc32-ink no-underline bg-white shadow-[0_1px_2px_oklch(0.25_0.05_265/0.1),0_3px_8px_oklch(0.25_0.05_265/0.08)] transition-[translate,box-shadow,color] duration-200 hover:-translate-y-0.5 hover:text-tbc32-acc hover:shadow-[0_3px_6px_oklch(0.25_0.05_265/0.12),0_10px_22px_oklch(0.25_0.05_265/0.14)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2 motion-reduce:transition-[box-shadow,color] motion-reduce:hover:translate-y-0">Courses</a></li>
<li class="relative flex items-center before:content-[''] before:absolute before:-left-5 before:z-0 before:w-5 before:border-t-2 before:border-dotted before:border-tbc32-dots"><a href="#" aria-current="page" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-bold text-tbc32-acc no-underline cursor-default bg-white shadow-[0_4px_8px_oklch(0.25_0.05_265/0.14),0_14px_30px_oklch(0.25_0.05_265/0.16),inset_0_0_0_1.5px_color-mix(in_oklab,var(--color-tbc32-acc)_40%,transparent)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2">CSS Mastery</a></li>
</ol>
</nav>
</section>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-tbc32-bg: #eef0f4;
--color-tbc32-bg: oklch(0.95 0.006 250);
--color-tbc32-ink: #575c69;
--color-tbc32-ink: oklch(0.42 0.02 250);
--color-tbc32-acc: #3f5cc4;
--color-tbc32-acc: oklch(0.52 0.16 260);
--color-tbc32-dots: #bfc3cc;
--color-tbc32-dots: oklch(0.78 0.01 250);
--font-tbc32-sans: 'Space Grotesk', system-ui, sans-serif;
}
.tbc-32 {
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: Tailwind Floating Card Shadow Breadcrumb Navigation
Source: https://codefronts.com/navigation/tailwind-css-breadcrumbs/tailwind-floating-card-shadow-breadcrumb-navigation/
Each crumb is an elevated white card linked by faint dotted connectors, lifting on hover and resting at top elevation when current. Three elevation levels as three arbitrary shadow pairs, and the connector is a dotted border on a pseudo-element.
## HTML
```html
<section class="tbc-32 w-full min-h-svh grid place-items-center bg-tbc32-bg font-tbc32-sans px-7 py-9">
<nav aria-label="Breadcrumb">
<ol class="flex flex-wrap items-center gap-5 list-none m-0 p-0">
<li class="relative flex items-center"><a href="#" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-semibold text-tbc32-ink no-underline bg-white shadow-[0_1px_2px_oklch(0.25_0.05_265/0.1),0_3px_8px_oklch(0.25_0.05_265/0.08)] transition-[translate,box-shadow,color] duration-200 hover:-translate-y-0.5 hover:text-tbc32-acc hover:shadow-[0_3px_6px_oklch(0.25_0.05_265/0.12),0_10px_22px_oklch(0.25_0.05_265/0.14)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2 motion-reduce:transition-[box-shadow,color] motion-reduce:hover:translate-y-0">Home</a></li>
<li class="relative flex items-center before:content-[''] before:absolute before:-left-5 before:z-0 before:w-5 before:border-t-2 before:border-dotted before:border-tbc32-dots"><a href="#" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-semibold text-tbc32-ink no-underline bg-white shadow-[0_1px_2px_oklch(0.25_0.05_265/0.1),0_3px_8px_oklch(0.25_0.05_265/0.08)] transition-[translate,box-shadow,color] duration-200 hover:-translate-y-0.5 hover:text-tbc32-acc hover:shadow-[0_3px_6px_oklch(0.25_0.05_265/0.12),0_10px_22px_oklch(0.25_0.05_265/0.14)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2 motion-reduce:transition-[box-shadow,color] motion-reduce:hover:translate-y-0">Library</a></li>
<li class="relative flex items-center before:content-[''] before:absolute before:-left-5 before:z-0 before:w-5 before:border-t-2 before:border-dotted before:border-tbc32-dots"><a href="#" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-semibold text-tbc32-ink no-underline bg-white shadow-[0_1px_2px_oklch(0.25_0.05_265/0.1),0_3px_8px_oklch(0.25_0.05_265/0.08)] transition-[translate,box-shadow,color] duration-200 hover:-translate-y-0.5 hover:text-tbc32-acc hover:shadow-[0_3px_6px_oklch(0.25_0.05_265/0.12),0_10px_22px_oklch(0.25_0.05_265/0.14)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2 motion-reduce:transition-[box-shadow,color] motion-reduce:hover:translate-y-0">Courses</a></li>
<li class="relative flex items-center before:content-[''] before:absolute before:-left-5 before:z-0 before:w-5 before:border-t-2 before:border-dotted before:border-tbc32-dots"><a href="#" aria-current="page" class="relative z-1 inline-flex items-center min-h-10 px-4 rounded-xl text-[13.5px] font-bold text-tbc32-acc no-underline cursor-default bg-white shadow-[0_4px_8px_oklch(0.25_0.05_265/0.14),0_14px_30px_oklch(0.25_0.05_265/0.16),inset_0_0_0_1.5px_color-mix(in_oklab,var(--color-tbc32-acc)_40%,transparent)] focus-visible:outline-2 focus-visible:outline-tbc32-acc focus-visible:outline-offset-2">CSS Mastery</a></li>
</ol>
</nav>
</section>
```
## CSS
```css
@import "tailwindcss";
@theme {
--color-tbc32-bg: #eef0f4;
--color-tbc32-bg: oklch(0.95 0.006 250);
--color-tbc32-ink: #575c69;
--color-tbc32-ink: oklch(0.42 0.02 250);
--color-tbc32-acc: #3f5cc4;
--color-tbc32-acc: oklch(0.52 0.16 260);
--color-tbc32-dots: #bfc3cc;
--color-tbc32-dots: oklch(0.78 0.01 250);
--font-tbc32-sans: 'Space Grotesk', system-ui, sans-serif;
}
.tbc-32 {
width: 100%;
min-height: 100svh;
}
```How this works
Elevation is a pair, not a number. Each level uses a tight contact shadow plus a wide ambient one; the port keeps both in one arbitrary value so a level can never be half-edited. Three levels, three utilities, all on the crumb.
The connector has to match the gap. before:-left-5 before:w-5 against gap-5 on the list — three numbers that must agree, and they now sit within a line of each other.
Lift and shadow move as one. transition-[translate,box-shadow,color] and both changes under the same variant, so the card never appears to float without a shadow.
Make it yours
- Elevation: the three shadow pairs; halve the blurs for a flatter system.
- Connector:
before:border-dotted→border-dashed, or delete for floating cards with no path. - Accent:
--color-tbc32-accdrives hover ink, the current ink and the inset ring.
Gotchas — read before shipping
- Gap and connector width are the same number in two places; change one and the dots detach.
- The crumb needs
relative z-1above the connector'sz-0, or the dots draw over the card edge. motion-reduce:must drop the translate but keep the shadow change, or reduced-motion users lose the hover feedback entirely.
Browser support
| Chrome | Safari | Firefox | Edge |
|---|---|---|---|
| 111+ | 16.4+ | 128+ | 111+ |
Layered shadows and dotted borders are universal; color-mix() is v4's own floor.