Tabs

Tab Styles — CSS Vars Framework

.tabs — Default
Overview

The default .tabs style — driven entirely by --control-* and --panel-* tokens.

Features

Out-of-the-box behaviour with no extra classes. Panel background, border, radius, padding and shadow all follow their token defaults.

Pricing

Adapts automatically to your theme — change --color-1 at the root and everything updates.

.tabs.tabs-underline — Underline
Overview

Only a bottom border marks the active tab. Zero chrome on the labels — ideal for dashboards and data-heavy UIs.

Features

The panel is fully transparent — content flows directly onto the page surface.

Pricing

Overrides --control-bg, --control-border and --control-shadow to transparent/none, then adds a single bottom-border accent on the active label.

.tabs.tabs-boxed — Bordered Box
Product Description

The classic browser-tab pattern. The active label merges into the panel by matching --body-bg and hiding its bottom border.

Specifications

A negative margin on labels pulls them down to overlap the panel's top border — creating the open-bottom illusion.

Reviews

The panel uses border-radius: 0 0.25rem 0.25rem 0.25rem so its top-left corner aligns flush with the first tab label.

.tabs — Pill (token override)
All items

Pill shape via style="--control-radius: 9999px" on the container. No new classes — just an inline token override.

Active items

Works on any background. Combine with .bg-light-grey or .bg-color-1 on the wrapper for contrast.

Archived items

All other tokens remain at their defaults — only the radius changes.

.tabs-vertical — Vertical Sidebar
Profile Settings

Vertical tabs using .tabs-vertical, .tabs-vertical-nav and .tabs-vertical-content — all existing framework classes. Collapses to horizontal on narrow viewports.

Security Settings

The active label is driven by :has() — no JavaScript needed. Scales to many tabs without wrapping.

Notification Preferences

The border-l border-solid border-grey classes on the content area provide the sidebar separator.

.tabs — Ghost / Outline (token override)
HTML

Ghost tabs via inline token overrides — --control-bg: transparent and --control-border: 0.125rem solid var(--color-1). No new class needed.

CSS

The active state fills via --surface-selected — the same token the default tabs use, so it stays on-brand automatically.

JavaScript

Pairs well with ghost/outline buttons from the same framework for a visually consistent UI.

.tabs — Floating Cards (token override)
Summary

--control-bg: var(--body-bg) gives each label a white card surface; --control-shadow lifts it off the tinted background. No new CSS.

Details

Works best on a tinted container — use .bg-light-grey or a custom surface colour on the wrapper element.

History

The active state uses --surface-selected — a light tint of --color-1 — reading as a gentle highlight against the plain card labels.

← Previous Next →
{C}

Built with love by Kim Majali, EITO team, and contributors.