\n

Toggle Components

Modern toggles, switches and checkboxes designed with pure CSS. Lightweight and easy to integrate.

14 Components CSS Only No JavaScript Needed
Classic
iOS
Neon
Classic Toggle Popular
Disabled
Enabled

Smooth animated classic toggle with modern purple accent.

.toggle-classic input:checked + label{
  background:#6c5ce7;
}
iOS Toggle Popular
Wi-Fi
Bluetooth
Notifications

Apple-inspired smooth iOS style switch.

.toggle-ios input:checked + label{
  background:#34c759;
}
Neon Toggle Trending
Off
Glow

Glowing cyberpunk neon switch for dark UIs.

.toggle-neon input:checked + label{
  box-shadow:0 0 16px rgba(167,139,250,.7);
}
Text Toggle Essential
Switch Mode

A simple toggle featuring distinct internal text displays for state representation.

.toggle-text input:checked + label::before{
  content:"ON";
}
Flat Toggle Essential
Selectable option

A minimal and modern flat switch featuring a bright coral background color when active.

.toggle-flat input:checked + label{
  background:#ff6b6b;
}
Gradient Toggle Trending
Gradient transition

An elegant styled toggle utilizing a vivid dual-color gradient overlay when enabled.

.toggle-gradient input:checked + label{
  background:linear-gradient(90deg, #eb6835, #6c5ce7);
}
Icon Toggle Popular
Active mode switch

A beautiful design displaying a sun and moon representation for day and night transitions.

.toggle-icon input:checked + label .icon-thumb{
  transform:translateX(36px);
}
Outline Toggle Essential
Outline mode

A clean hollow border toggle switch featuring neat color transformations on state changes.

.toggle-outline input:checked + label{
  border-color:#eb6835;
}
Large Toggle Essential
Enhanced sizing

An oversized responsive toggle widget intended to maximize accessibility and ease of use.

.toggle-large input:checked + label::after{
  transform:translateX(36px);
}
Cyberpunk Toggle Trending
SYS_ACTIVE

Futuristic theme toggle utilizing neon cyan, glowing hot pink, and digital corner clips.

.toggle-cyberpunk input:checked + label{
  border-color:#ff007f;
}
3D Tactile Toggle Popular
Tactile Switch

Highly polished three-dimensional physical switch replicating tactile pushing effects.

.toggle-3d label{
  box-shadow:inset 0 3px 8px rgba(0, 0, 0, 0.8);
}
Liquid Jelly Toggle Trending
Jelly bounce

An organic toggle exhibiting elastic squash and stretch jelly physics on transitions.

.toggle-liquid input:checked + label::after{
  animation: jelly-bounce-css 0.4s linear;
}
Day/Night Solar Popular
Astronomy Toggle

Advanced theme transition switch showing a detailed glowing sun and cratered moon.

.toggle-solar input:checked + label .solar-stars{
  opacity:1;
}
Retro Arcade Trending
JOY_STATE_OK

A classic red arcade joystick switcher tilting dynamically with organic 3D rotations.

.toggle-arcade input:checked + label .arcade-knob{
  transform:rotate(15deg);
}
Glass Toggle Popular
Frosted UI

A modern frosted glass style toggle with subtle blur and bright active gradient.

.toggle-glass input:checked + label{ background:linear-gradient(90deg,#6c5ce7,#eb6835); }
Retro Slider Trending
Retro Mode

Classic retro slider with bold knob and strong color transitions for status indication.

.toggle-retro input:checked + label::after{ transform:translateX(30px); }
Minimal Dot Essential
Compact

Tiny, unobtrusive toggle designed for space-constrained UIs.

.toggle-minimal input:checked + label{ background:#34d399; }
Swirl Toggle Popular
Animated

A playful animated knob that rotates while sliding, adding motion personality.

.toggle-swirl input:checked + label::after{ transform:translateX(34px) rotate(360deg); }
Flat Dark Toggle Basic
Minimalist

A simple flat, slightly rounded dark-themed toggle.

.toggle-flat-dark input:checked + label { background-color: #1e293b; }
Sharp Square Toggle Basic
Angular

A sharp-edged, strictly rectangular toggle for a rigid UI style.

.toggle-sharp input:checked + label { background-color: var(--accent-green-core); }
Thin Track Toggle Popular
Elegant

A toggle with a thin track background and a prominent thumb.

.toggle-thin label::after { box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
Outline Shift Toggle Basic
Outline

A hollow toggle where checking it fills the thumb and colors the border.

.toggle-outline-shift input:checked + label { border-color: var(--accent-cyan-core); }
Dual Color Toggle Trending
Gradient shift

The background smoothly transitions between red and green using gradient position.

.toggle-dual-color input:checked + label { background-position: right bottom; }
Pulse Toggle Popular
Animated

A toggle that pulses with an animated box-shadow when active.

@keyframes pulseToggle { 0% { box-shadow: 0 0 0 0 rgba(236,72,153,0.4); } ... }
Retro Toggle Trending
8-bit vibe

A retro, 90s-inspired hard shadowed toggle component.

.toggle-retro label { border: 3px solid #000; box-shadow: 3px 3px 0 #000; }
Material Toggle Basic
Android style

Inspired by the classic Material Design toggle switch.

.toggle-material input:checked + label { background-color: rgba(16, 185, 129, 0.5); }
Ghost Toggle Basic
Transparent

A subtle, fully transparent track with an opaque active thumb.

.toggle-ghost label { background-color: transparent; }
Sliding Text Toggle Trending
Dynamic labels

Text labels (YES/NO) that slide dynamically when toggled.

.toggle-sliding-text input:checked + label::before { content: "YES"; left: 10px; }
Day/Night Swap New

A classic sun/moon icon swap toggle.

/* See preview for CSS */
Cyberpunk Theme New

A neon cyberpunk style toggle for edgy interfaces.

/* See preview for CSS */
Eclipse Toggle New

Smooth eclipse transition from sky blue to deep night.

/* See preview for CSS */
Minimal Text New

Minimalist L/D text toggle for clean dashboards.

/* See preview for CSS */
Expanding Glow New

Toggle thumb expands and glows upon entering dark mode.

/* See preview for CSS */
Slide Theme Switch New

Wider toggle providing distinct DAY and NTE active zones.

/* See preview for CSS */
3D Rotate Theme New

The entire track flips in 3D space when changing themes.

/* See preview for CSS */
Neumorphic Switch New

Soft neumorphic shadows that adapt to dark mode.

/* See preview for CSS */
Cloud & Stars New

Clouds transform into tiny stars when the theme switches.

/* See preview for CSS */
Emoji Theme Switch New

Playful emoji-based theme indicator with rotation animation.

/* See preview for CSS */
Copied to clipboard!