Tailwind UI Pattern Registry for humans and agents

tabs glass oklch backdrop-filter keyboard accessible interactive color tabs glass oklch backdrop-filter keyboard aria accessible frosted glass tab navigation OKLCH color tab bar accessible tab component with keyboard navigation frosted glass tabs

Glass OKLCH Tabs

Fetch pattern JSON: curl https://webspire.de/patterns/tabs/glass-oklch.json

Details

Family
tabs
Tier
enhanced
Kind
component
Extends
tabs/base
Responsive Dark Mode SSR Safe Copy & Paste
Experimental Draft
tabsglassoklchbackdrop-filterkeyboardaccessibleinteractivecolor

Slots

Name Required Description
tabs Yes Tab buttons with role="tab", aria-selected, aria-controls.
panels Yes Tab panels with role="tabpanel" and aria-labelledby.

Props

Name Type Default Description
--tab-hue number 260 OKLCH hue angle (0–360) for the tab glass color.
--tab-sat number 0.12 OKLCH chroma factor for the tab glass tint.

Glass-style tab bar using oklch() colors with a --tab-hue custom property so the entire color scheme shifts with one value. The tab list has backdrop-filter: blur(12px) and a semi-transparent OKLCH background. Active tabs get a lighter frosted fill with a subtle border. Dark mode overrides are scoped inside @media (prefers-color-scheme: dark). Keyboard navigation implements the ARIA tab pattern: Arrow keys cycle through tabs, Home/End jump to extremes, and tabindex management follows roving focus.