Generate a responsive CSS light/dark mode toggle switch with prebuilt styles and theme variables. Customize theme colors, preview in real-time, and export clean HTML, CSS, and JavaScript for your site or app.
Create customizable light/dark mode toggles for your website with just a few clicks
This is some example content to demonstrate how the color scheme changes affect text and background.
Configure your toggle and click "Generate Code"
Configure your toggle and click "Generate Code"
Configure your toggle and click "Generate Code"
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
Fully customizable color scheme for both light and dark modes
Works perfectly on all device sizes and screen resolutions
Minimal code footprint with maximum performance
Remembers user preference and respects system settings
Choose from switch, button, checkbox, icon or custom HTML
Simple copy/paste implementation with no dependencies
Switch between light and dark appearances using CSS variables.
Define your own primary, background, and text colors for each mode.
Build a functional and styled toggle button with animation support.
See your theme switch dynamically before copying code.
Export a working snippet of HTML, CSS, and JavaScript.