# Dark Mode Toggle A one-click, site-wide dark mode switch — using the colour palette you've already built in Elementor. ## The problem it solves Dark mode is one of the most-requested features on modern websites, but building it properly usually means maintaining a whole second stylesheet, or wiring up custom CSS variables by hand across every template. ## How it helps Dark Mode Toggle works directly with Elementor's own global colours — no separate stylesheet, no custom code. Add the toggle anywhere on your site, choose a dark palette, and one click flips your entire site into dark mode instantly, remembered for that visitor on their next visit too. Crucially, it speaks **both** of Elementor's colour systems: - The **classic Global Colors** (Primary, Secondary, Text, Accent) that traditional widgets use. - The **newer Elementor 4.x global variables** used by the latest atomic widgets. Real sites are increasingly a mix of the two, so the toggle can remap both at once — meaning your dark mode stays complete as you build with newer Elementor widgets, not just the old ones. ## The result A genuine site-wide dark mode, built entirely from colours you already control through Elementor — future-proofed for the newer widget system, with nothing extra to maintain. *Note: this widget relies on your theme and Elementor Kit consistently using Elementor's global colours and variables throughout your design — the more consistently they're used, the more complete the dark mode effect will be.*