Tabs – 8 Free Tab Templates (CSS & Vanilla JS)

Tabs is a pack of eight tab components, each a single self-contained HTML file with ARIA roles, inline CSS, and at most twenty lines of vanilla JavaScript — one design uses none at all.

What’s included

  • Sliding underline (ink bar) and pill segmented control with moving thumb
  • Vertical settings tabs that flip horizontal on mobile
  • Boxed browser-style tabs and icon tabs with unread badges
  • Pure-CSS tabs (:checked, zero JS) and dark app tabs with count chips
  • Responsive tabs that become an accordion under 560px
Pill segmented control tabs with sliding thumb

How to use

Copy a design’s markup, CSS block, and the short script. The switcher is the same ten lines in most designs — swap the markup, keep the script. Full write-ups on the tab templates page; demos on the demo index.

FAQ

Can I use these in commercial projects?

Yes — the pack follows the standard uiCookies license.

Aigars Silkalns

Designed & written by Aigars Silkalns

Aigars Silkalns is a Latvian entrepreneur and web developer who founded Colorlib, a hub for distinctive WordPress themes. Trained in technology and design, he began as a freelancer and launched Colorlib in 2013, earning acclaim for user-friendly, modern, responsive themes. A champion of open source, Silkalns shares insights on web trends and entrepreneurship. His mission is to make web design simple and accessible, empowering people worldwide to build professional sites with ease.

XLinkedInMore about uiCookies →

Free
Demo