Toggle Dark Mode with CSS :has()

Toggle Dark Mode with CSS :has()

The CSS :has() selector can be used to toggle dark mode, light mode, and themes with zero Javascript, just HTML and CSS. :has() finally arrived in all major browsers, having dropped in Firefox December 2023.

Have feedback or a question related to this item? Drop us some feedback!

Curated: 
1.14.24

Similar items

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

NeoCultural Couture

4.3.24

Sister Mary

4.3.24

Alice App

4.2.24

Hide Section if Child CMS Collection is Empty in Webflow

4.2.24

Arensbak

4.2.24

Ben's Bites

4.1.24

Happy Valley Farms

4.1.24

gfluo Webflow App

4.1.24

Nomad Animations

4.1.24

Basefront

4.1.24

WES

4.1.24

Datalands

3.29.24

What You Need to Know about Modern CSS (Spring 2024 Edition)

3.29.24

Olivia King

3.29.24

Vandejong

3.29.24

Advocacy Through Walls

3.28.24

Logo System

3.28.24

Sergey Stanchev

3.27.24

SVGator

3.27.24

Disruptive Technology Index

3.27.24

Hothouse

3.26.24

MØDDEN

3.25.24

Phind

3.22.24

Thenty

3.22.24

Qudrix

3.21.24

The Generalist

3.21.24

xSync Webflow App

3.21.24

Saddle

3.21.24

Thread

3.20.24

Curation of Curations

3.20.24

Insert Frame

3.20.24

How to make numbers count using Webflow interactions

3.20.24

ToyJoy

3.20.24

Fabric

3.18.24

Yulia

3.18.24

Cycle

3.18.24

Navbar Gallery

3.18.24

Koala UI

€119+
3.17.24

Matt Stobo

3.17.24

CSS Only Animations

3.16.24

Cloudinary

3.16.24

Unicorn Studio

3.16.24

Para

3.15.24

Reshape

3.15.24

Superorganism

3.15.24

The Bang

3.15.24

Kreyda

3.15.24

Way

3.15.24

Interface Friends at Config

3.14.24

TopTier Miami Rentals

3.14.24

Side School

3.14.24

Tom Parkes

3.12.24
Load more

Bummer, no results

Try a different search/filter combo, or drop us some feedback if there is something missing you would love to see!

Reset filters

Subscribe for updates

Get updates on the latest curated resources and be the first to hear of new features.