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

Featured
Preview

Collaborate on designs and website review

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

Illustration.lol

10.4.22

Use Airtable Scripts to Resize and Crop Images

10.3.22

GetScreenshot

10.3.22

Moment.js

10.3.22

Bryte

9.30.22

Belka

9.30.22

Potential Motors

9.28.22

Eraser

9.28.22

Auth0 + Webflow

9.28.22

Metaballs

9.24.22

TailGraph

9.23.22

Where Whalesync Really Wails

9.21.22

Winden

9.20.22

Gameto

9.16.22

Debut

9.16.22

Webflow Go Live Checklist

$0+
9.15.22

VANA

9.15.22

Rothy's Brand Platform

9.12.22

Marco Cornacchia

9.8.22

Custom multi-select field in Webflow Form

9.7.22

Commercial Type

9.6.22

The Audacious Project

9.6.22

Finsweet Nobull

9.6.22

Aro

9.5.22

Creator Roadmap

$0+
9.4.22

Finsweet Attributes Ready JS Method

8.31.22

Attentive Holiday

8.30.22

Homerun Style System

8.30.22

Surfer

8.30.22

Effect All Siblings on Hover With CSS

8.30.22

Fable

8.29.22

Herman Mold + Tooling, Inc.

8.28.22

Framer

8.28.22

SystemFlow

8.28.22

Webflow

8.28.22

Building a CMS Quiz in Webflow using WeBlocks

8.28.22

Top 3 tricks for CMS collection lists in Webflow

8.28.22

Creating Lottie Files Using Illustrator & After Effects for Webflow

8.28.22

Building a Liquid Nav in Webflow

8.28.22

Timothy Ricks JQuery Builder Course

8.28.22

Adaptive Page Loader in Webflow

8.28.22

Top 5 CSS Tricks You Must Know for Webflow

8.28.22

Using VS Code and GitHub with Webflow

8.28.22

The Webflow Masterclass - Learn how to build websites in Webflow

$695
8.28.22

Create Award Winning Animation and Interaction Design in Webflow

$110
8.28.22

JQuery Basics Tutorial for Webflow

8.28.22

Let your client add, remove, & rearrange page sections from the Webflow Editor

8.28.22

Improve UX Using Cookies in Webflow

8.28.22

Building a basic game in Webflow

8.28.22

Overlapping Page Transitions in Webflow

8.28.22

Using Airtable to power the data on your Webflow site

8.28.22
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.