Made in Webflow

Persistent Dark Mode

site profile thumbnail


Persistent dark mode via cookie. Remembers toggle also across pages. If never been triggered looks for the default computer colour scheme (dark / light). If not there, defaults to light mode. Currently adds a class (.light/.dark) to the body. You can also listen to change events directly in Webflow code editor via the 2 functions you find in the homepage body.
Feeling inspired?If this Made In Webflow site sparked some inspo, why not get started on a project of your own? Clone a site, purchase a template or start building from scratch.

We miss comments too!

Right now, Made in Webflow doesn't offer all of the same functionality that Showcase did, like the ability to leave comments. But don't worry: We're working to bring comments back as soon as possible!

As always, we'd love to hear your feedback! Click the link below to take a short survey about Made in Webflow.


More by Federico

See profile
View details
Webgl Image Transition Slider ⟋ webgl