Step-by-Step Tutorial: Setting Up a
Smart Night Mode Toggle in 3 Minutes
No developer skills required. Install, configure the essentials, and have a fully working flash-free night mode toggle live on your WordPress site — faster than you expect.
Updated 2026
Beginner-Friendly
You do not need to be a developer to set up a professional night mode toggle on your WordPress site. You do not need to edit theme files, write CSS, or understand how browsers render pages. What you need is the right plugin — one that handles the technical complexity correctly by design — and about three minutes of your time.
This tutorial walks you through the complete setup process from installation through final testing. Every step is shown as it actually appears in the WordPress admin. By the end, your site will have a flash-free night mode toggle that automatically detects your visitors’ OS preferences, remembers their choices, and looks professional on every device.
We use Nexu Eclipse — the WordPress night mode plugin that sets up in minutes with no coding required throughout this tutorial, because it is the implementation that gets the technical details right out of the box: no white flash, no image distortion, OS sync from day one.
If you have any existing dark mode plugins installed, deactivate and delete them before installing Nexu Eclipse. Running two dark mode plugins simultaneously causes conflicts. Check your active plugins list for anything with “dark mode,” “night mode,” or “dark theme” in the name and remove it before proceeding.
The complete setup: 8 steps to a working night mode toggle
From your WordPress dashboard, go to Plugins → Add New Plugin. In the search box, type Nexu Eclipse. When the plugin appears in the results, click Install Now, then click Activate once installation completes. The plugin is now active and its settings panel is available in your WordPress admin sidebar.
If you purchased the premium version, download the .zip file from your account, then go to Plugins → Add New Plugin → Upload Plugin and upload the file instead of searching the repository.
In the WordPress sidebar, locate Nexu Eclipse and click it to open the settings panel. You will see several tabs across the top of the settings area: General, Switch Style, Colors, Exclusions, and Advanced. You will configure each of these in the steps that follow. Start with the General tab, which should be active by default.
In the General tab, you will find the core behavior settings. The most important setting here is Sync with OS Preference — enable this. It tells the plugin to automatically detect whether a visitor’s device is in dark mode and apply your night mode accordingly. This detection works via the CSS prefers-color-scheme media query, which is supported across all modern browsers including Chrome, Safari, Firefox, and Edge.
Set Default Mode to Light. This ensures that visitors without any OS dark mode preference, and visitors on devices that do not support color scheme detection, see your site in its standard appearance. The OS sync setting will override this for visitors who have expressed a dark preference.
Save your settings after each tab before moving to the next. Use the Save Changes button at the bottom of the settings panel.

Click the Switch Style tab. You will see a visual gallery of toggle design options — different shapes, icon sets, and labeled variants. Click the one that fits your site’s visual style. If your site uses rounded corners and a minimal aesthetic, an icon-only circular toggle looks cleanest. If your site is more functional and clarity matters more than restraint, a labeled “Light / Dark” slider is more immediately understandable to new visitors.
Below the style gallery, set the Toggle Position. For most sites, Fixed Floating (positioned in a corner of the screen) is the fastest to set up and always visible to visitors. If your theme’s header has a navigation bar with available space, Header placement feels more integrated — visitors find it exactly where they expect to find UI controls. Pick the position that suits your site’s layout and save.
Click the Colors tab. This is where you define what your site actually looks like in dark mode. You will see color pickers for the main elements: page background, primary text, secondary text, links, and borders. If you want to get a working result quickly, use these starting values — they are a neutral, professional dark palette that works well with most themes:
#1a1a1a
#e8e8e8
#a0a0a0
#60a5fa
#333333
#252525
The values above are a neutral starting point. When adjusting them, always verify your text/background combinations against the WebAIM Contrast Checker to confirm your dark palette meets WCAG AA requirements (4.5:1 ratio for normal text) before going live. You can always come back and adjust any individual value until the dark theme looks right for your specific design.

Click the Exclusions tab. Nexu Eclipse protects images from color transformation by default — this means your photos and product images will display accurately in dark mode without any inversion or tinting. Verify that the Exclude Images option is enabled (it should be on by default).
If your site has a logo that was designed for a light background, add it to the exclusions here. Find your logo’s CSS selector using your browser’s developer tools (right-click on the logo, choose “Inspect”), then paste the selector into the exclusions field. Common selectors for logos are .site-logo, .custom-logo, or #logo img depending on your theme.
Click the Advanced tab. Find the Transition Duration setting and set it to 250ms — this is the sweet spot that makes the mode switch feel smooth and deliberate without feeling sluggish. If your site uses a faster, more dynamic visual style, try 180ms. If your site is editorial and calm, 300ms feels more considered. Save your changes.
While you are in the Advanced tab, you will also find the Scheduling options. If you want night mode to activate automatically at sunset and switch back at sunrise, you can configure this here. For the quick setup, this is optional — you can return to it later.
Open your site in a new browser tab and run through these five checks. Each one confirms a specific aspect of the setup:
If all five checks pass, your night mode toggle is fully set up and working correctly. You are done with the essential configuration.
What your site looks like before and after
Once the setup is complete, visitors who arrive with OS dark mode enabled will see the dark version immediately — no toggle required, no flash, no adjustment period. The transformation should look intentional and polished, not like a filter applied over your existing design.
Quick troubleshooting: three things that sometimes need a fix after setup
Most likely cause: a caching plugin is modifying how the initialization script loads. Temporarily deactivate all caching plugins, clear your cache, and retest. If the flash disappears, your caching plugin needs to be configured to exclude the Nexu Eclipse script from defer, async, or combination optimizations. Check your caching plugin’s JavaScript settings for a script exclusion list.
Go back to the Exclusions tab and verify that the image exclusion toggle is enabled. If images are still affected, your theme may be loading images inside a container div rather than as direct img elements — add the container’s CSS selector to the exclusions list instead of, or in addition to, the img selector.
Return to the Switch Style tab and change the Toggle Position to Fixed Floating. This placement is theme-independent and will always work regardless of your theme’s header structure. Once the toggle is visible, you can experiment with Header or Footer placement if you prefer a more integrated appearance.
Where to go next: optional refinements
With the core setup complete and all five test checks passing, your night mode toggle is live and working. The following refinements are optional — things to return to when you want to polish the result beyond the baseline.
Return to the Colors tab and adjust any values that do not feel quite right. Compare your light and dark modes side by side. Adjust background warmth, text brightness, and accent color saturation until both modes feel like the same site in different lighting.
Go to Advanced → Scheduling and configure sunset/sunrise switching. This automatically activates night mode when the sun sets in the visitor’s timezone — the most natural and frictionless dark mode experience possible.
If any page on your site has a custom dark or high-contrast design that does not benefit from night mode processing, add its URL to the page exclusions in the Exclusions tab. Night mode will skip that page entirely.
Open your site on an iPhone or Android phone with OS dark mode enabled. This is where the majority of your evening visitors will experience it — verify the toggle is discoverable, the colors look good on an OLED screen, and the transition is smooth at mobile rendering speed.
That is the complete setup. From installation through testing, Nexu Eclipse — the WordPress night mode plugin that delivers a professional result with zero coding required — takes care of the technical complexity so you can focus on the configuration decisions. The result is a night mode experience that your visitors will notice for being right rather than notice for being broken.
Ready to install? The whole setup takes less time than this article took to read.
Nexu Eclipse handles FOUC elimination, OS sync, image protection, and smooth transitions automatically. You set the colors and choose the toggle style. Everything else is done.





Hey! just followed your tutorial to add the night mode toggle to our school's WordPress site super easy, no coding required. My only question is about the toggle style
Got night mode set up in like 5 minutes flat. Synced right away no issues
Quick question how do you actually pick the toggle style that best fits your site's vibe? the tutorial mentions a visual gallery, but I can't seem to find it in the settings
Quick question do I need to turn on