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

Osmo

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

Quillow

2.22.24

Which Webflow framework should I use for my project?

2.22.24

Keystroke Pro

2.21.24

EverArt

2.21.24

Art Department Club

2.21.24

Macu Studio

2.19.24

Accessibility Maturity Model

2.19.24

Redchurch

2.19.24

Lavender

2.19.24

Tomorro

2.19.24

Ben

2.19.24

Airtable vs Asana for project management: a guide for nerds

2.19.24

Huemint

2.19.24

House on a Hill

2.15.24

Figmatica

2.15.24

Unsection

2.15.24

Flowmads

2.15.24

Glaze

2.15.24

Swamp

2.15.24

v0

2.15.24

Master Gorgeous UI Design Course

$149
2.15.24

Seb

2.15.24

VANHA Digital

2.15.24

Iteration X

2.14.24

MaxiBestOf

2.14.24

YouBallin

2.14.24

Superpower

2.14.24

FeedSpring

2.13.24

Sage East

2.13.24

Figma Brand Guide Template

$49
2.13.24

Southeast Christian Church

2.13.24

Weave

2.13.24

Durable

2.13.24

Mann Sales Co.

2.13.24

Widelab

2.13.24

Maneken

2.13.24

Build Anything Online

2.12.24

xAtom

2.12.24

CROO

2.12.24

Airscript

2.9.24

BuiltOnAir Script List

2.9.24

Vikas' Airtable Scripting Custom GPT

2.9.24

Lummi

2.9.24

Kemari

2.9.24

Deep Checks

2.9.24

Brandbeet

2.7.24

Aida Oliva Studio

2.7.24

Tipai

2.7.24

OutThere

2.7.24

Balky Essentials

2.7.24

The Carter Ogunsola

2.7.24

Together AI

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