How-to guide

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
Light Switch: How to add dark mode to your websiteTry 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.

  1. In WordPress, go to Plugins → Add New and install a header and footer code plugin such as WPCode.
  2. Open Code Snippets → Add Snippet → Add Your Custom Code, and choose HTML snippet.
  3. Paste your Fluri snippet, set Location to Site Wide Footer and switch the snippet to Active.
  4. 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

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.