Dark mode toggle for your website

Add a switch that turns your whole site dark, in your own dark colors, and remembers what each visitor chose. Pick a template, change anything by asking AI and add it to any website.
Create widget for free
No credit card needed
Dark mode toggle for your website

Trusted by over 3,000,000 small businesses, agencies and top global brands worldwide

Create a dark mode toggle for free

Describe your switch and your dark colors, and AI Builder builds the widget. Then add it to your site, and your pages get a dark mode.
  1. 1. Pick a template or build with AI
  2. 2. Add your content
  3. 3. Put it on your site
Why add it

What a dark mode toggle gives your site

Everything a dark mode toggle needs

A floating switch

One tap turns the whole page dark.

A header switch

A sun and moon switch beside your menu.

Remembers the choice

Visitors get the same mode on their next visit.

Follows the device

Starts dark when the visitor’s device is dark.

Your own dark colors

Background, text and links in your brand’s colors.

Dark by the clock

Dark from evening to morning, on your schedule.

Softer photos

Dims bright pictures so they don’t glare.

Anything else?

Just ask AI, and it builds it in.
What you can ask

Tell AI what you need, see it change

Make it your colors

Give AI a link to your site, a screenshot of a design you like or a few words, and it sets your dark palette.

Choose how it switches

A switch in the corner, one in your header or dark by the clock. Ask, and AI rebuilds it.

A no-code editor comes with it

AI is optional. Every color and label is in the widget’s editor, so you can change your dark mode yourself, with no code.

  • Dark colors as simple hex fields
  • Where the switch sits and how the page starts
  • Every change shows in the preview at once
Dark ModePublishClose

Switch

Switch

PreviewReady
Any website

Add it to any site with one code

Your dark mode toggle goes in like any Elfsight widget: paste one installation code, and every change you make with AI appears on your site.

Build your widget

Pick a template or describe your dark mode, set your colors and change anything by asking AI.

Copy the code

Click “Add to website for free” and copy the installation code.

Paste it on your site

Paste the code into your site builder or HTML, on each page that should get the switch, or once in a part every page shares. That’s it.

Made with AI Builder

One builder for any widget you need

This widget is made with Elfsight AI Builder. Describe any other widget in your own words, and AI builds it, ready for your site.
  • Describe it in your wordsSay what the widget should do and how it should look. No templates to hunt for, no code.
  • Refine it by askingColors, layout, new buttons: ask, and see each change live.
  • Ready for any siteOne installation code for WordPress, Wix, Shopify or any other site.
  • Free to startThe free version comes with AI credits to build widgets, refine them and use them on your site.

Other widgets built with AI

Why Elfsight

Built, hosted and supported by Elfsight

Your widget runs on the same service as 90+ Elfsight apps: our cloud, our support team and regular updates.

Changes by asking AI

Ask AI for any change and see the result live. No code, no designer.

Every widget in one account

Your AI widgets and 90+ ready-made Elfsight apps, in one account and one dashboard.

Projects and collaborators

Organize widgets into projects and invite teammates or clients to work on them with you.

Elfsight Cloud

Our own cloud technology runs Elfsight for 3,000,000+ businesses. It delivers every widget with its content and files, and keeps it up to date: nothing to host or maintain on your side.
Uptime 99.99%

Regular updates

New features and fixes reach your widgets on their own, with no work on your side.

Ready-made apps for blogs and business sites

Questions about the dark mode toggle