Dark mode
Vara SaaS ships with a complete dark mode. It is not a filter — the color tokens are designed to be remapped.
The toggle
A light/dark switch appears in the navbar, on desktop and on mobile. Admin path: Appearance → Customize → Vara SaaS → General → Show theme toggle in navbarHow it works
What changes in dark mode
You do not configure dark colors. The remapping is automatic.
Customizing dark mode
Target dark mode in CSS
The theme adds a class or attribute to the root element when dark mode is active:<html> or <body> element with the toggle on.
Force light mode
If you want light mode only, add this to a child theme:Offer a system preference
To follow the operating system’s light/dark setting rather than defaulting to light:Dark mode and Elementor
This matters more than it sounds. When dark mode is active, the theme remaps Elementor’s global colors so builder content stays legible — backgrounds darken, text lightens, and accent colors adjust for contrast. Your Elementor pages therefore work in both modes without a second design.
Dark mode and images
Images are not modified. This is usually what you want — your logos and photography stay as they are. If a specific image has a white background that glares in dark mode, you have three options:Use a transparent image
Use a transparent image
A PNG or SVG with transparency works in both modes.
Use an SVG
Use an SVG
Best option. A monochrome SVG can take
currentColor and adapt automatically.Swap it with CSS
Swap it with CSS
In a child theme, show a light-mode image in light mode and a dark-mode image in dark mode.
Testing dark mode
1
Toggle every page type
Home, a builder page, the blog index, a single post, an archive, search, 404, and any page with a form.
2
Check contrast on text
Body copy, muted metadata, and especially any accent-colored text.
3
Check images and logos
Anything with an opaque light background.
Check form fields
Inputs, textareas, and placeholder text.
5
Check Elementor content
Especially sections with hardcoded background colors.
6
Reload and confirm persistence
Your choice should survive a reload.
Troubleshooting
The toggle isn't visible
The toggle isn't visible
Check Show theme toggle in navbar in the General section.
A flash of light before dark mode loads
A flash of light before dark mode loads
A plugin is probably loading before the theme’s inline script, or a caching plugin is serving a cached page with the wrong script. Clear your cache and test with caching disabled.
My choice doesn't persist
My choice doesn't persist
The preference is stored per browser. Private browsing clears it. Also confirm you are not on HTTP — see Requirements.
Dark mode is on but the page looks light
Dark mode is on but the page looks light
Either a caching plugin is serving stale CSS, or Elementor content has hardcoded colors. Hardcoded colors win over the theme’s remapping.
