How to add dark mode to your website
Many visitors read at night and prefer a dark page. You don’t have to design a second colour scheme: one line adds a switch that darkens the site you already have and leaves your photos alone.
- One-time payment
- Any website builder
- Live in about 5 minutes
Try it live ↓
Try Light Switch right here
Pull the cord at the top right (drag it down, or click it) and the lights go out.
Works on the site you already have: no second stylesheet to write
Photos and videos keep their real colours
The visitor’s choice is remembered for their next visit
How to add it to your website
Buy once, add your website in Fluri and pick Light Switch. You get one line of code like this:
<script defer src="https://fluri.xyz/install/loader.js" data-site="your-site-key"></script>
After that, change settings, pause it or switch themes from your dashboard. You never edit your site again.
- In WordPress, go to Plugins → Add New and install a header and footer code plugin such as WPCode.
- Open Code Snippets → Add Snippet → Add Your Custom Code, and choose HTML snippet.
- Paste your Fluri snippet, set Location to Site Wide Footer and switch the snippet to Active.
- Save, open your website and press Check installation in your Fluri dashboard.
On a classic theme you can instead paste the snippet just before </body> in your theme’s footer.php (use a child theme so updates don’t remove it). Full WordPress guide
- In Shopify admin, go to Online Store → Themes.
- Next to your live theme, open the … menu and choose Edit code.
- Open layout/theme.liquid and paste your Fluri snippet just before </body>.
- Save, then open your store and press Check installation in your Fluri dashboard.
Register your store’s real domain (for example shop.com). If you only use the myshopify.com address, register that instead. Full Shopify guide
- Open your project and go to Site settings → Custom code.
- Paste your Fluri snippet into Footer code.
- Save changes and publish your site.
- Open the published site and press Check installation in your Fluri dashboard.
Custom code requires a paid Webflow site plan. Register the domain you publish to. Full Webflow guide
- In your Wix dashboard, open Settings → Custom code (under Advanced).
- Click + Add Custom Code and paste your Fluri snippet.
- Choose All pages, set Place code in to Body – end, and apply.
- Open your published site and press Check installation in your Fluri dashboard.
Wix only runs custom code on a premium plan with a connected domain. Full Wix guide
- Go to Settings → Advanced → Code Injection.
- Paste your Fluri snippet into the Footer box.
- Save, then open your live site.
- Press Check installation in your Fluri dashboard.
Code Injection is available on Squarespace Core plans and higher. Full Squarespace guide
- Open your project and go to Site Settings → General → Custom Code.
- Paste your Fluri snippet into End of <body> tag.
- Publish your site.
- Open the published site and press Check installation in your Fluri dashboard.
Register the domain you publish to (your custom domain or the framer.app address). Full Framer guide
- Open the HTML file or template that every page shares (often a layout or footer file).
- Paste your Fluri snippet just before the closing </body> tag.
- Deploy or upload the change.
- Open the live site and press Check installation in your Fluri dashboard.
Works with React, Next.js, Astro, Vue and static sites. In Next.js, use the Script component with strategy="afterInteractive" and the same attributes. Full HTML / any site guide
More effects to try
Every theme is included for $19. Switch whenever you like.
Questions
Something else? Send us a message.
Do I have to write dark mode CSS?
No. The switch darkens the page you already have and keeps photos and videos as they are, so there is no second colour scheme to design and maintain.
Is the choice remembered?
Yes. A visitor who turns the lights out finds them out on their next visit, on every page.
Can it be used with a keyboard or a screen reader?
Yes. The pull cord is a real button, so it can be reached with Tab and pressed with Enter, and it is announced by screen readers.
How much does it cost?
$19 once, with no subscription. That includes Light Switch and all 65 other themes, on as many websites as you like.
Give your website a little life today.
Pick a theme, pay once, paste one line. It’s live in minutes.







