Skip to content

Blog · 30 November 2026

Beam theme toggle: a free dark mode switch with a wave of light

Beam is the theme toggle from our own website, rebuilt as one free JavaScript file. Press it and the new theme sweeps across the page from the button as a rippling front of light with a mint edge. It works on any site, needs no framework, and falls back to an instant switch in older browsers. Download it below and add it in three steps.

Published
Related services
Web applications & SaaS

How we can help

Questions we get asked

Is the Beam theme toggle free to use?

Yes. It is released under the MIT license, so you can use it in personal and commercial projects. Keep the licence line at the top of the file.

Does it need React, Tailwind or a build step?

No. It is one plain JavaScript file. Add a script tag and a button with the data-beam-toggle attribute. It also works inside React, Next.js, Vue or any other framework.

What happens in browsers that do not support view transitions?

The theme switches instantly, without the sweep. The page and the saved choice work the same way.

Can I change the colour of the line of light?

Yes. Set data-rim-color on the button, or pass rimColor to BeamThemeToggle.init. You can also change its width with rim and the speed with duration.

Tell us what you need built.

Send a short brief and an engineer will reply, usually within one working day. You can also call or WhatsApp us on +92 309 4800198.

Start a project