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.

Get hired at Toggle Dark Mode with CSS :has()

We've partnered with startups.gallery to help you find new opportunities at the leading startups in design, development, and AI.

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.

Gabi Robins

9.19.25

Webflow

9.17.25

town.com

9.16.25

xmcp

9.9.25

Opal by Google

9.9.25

Skiper UI

9.9.25

Mammoth Murals

9.9.25

Lithosquare

9.2.25

AI SEO Copilot Webflow App

9.2.25

shadcn designer

9.2.25

Sasha Birukoff

9.2.25

Streamline Defense

9.2.25

You.com

9.1.25

SafetyKit

8.30.25

Flow

8.30.25

Duracell

8.28.25

Muse

8.28.25

Flora

8.28.25

Composio

8.26.25

DONE Prebiotic Protein Drink

8.25.25

Parable

8.25.25

Chronicle

8.24.25

Walrus

8.24.25

Anything

8.24.25

Magic Patterns

8.24.25

Diff

8.20.25

Skarlo

8.17.25

Supaframe

8.17.25

Ledger Brandbook

8.15.25

Flow My Go Album

8.13.25

Daymark

8.11.25

Bloxspring

8.11.25

Paylater Travel

8.11.25

Bevel

8.7.25

Juno

8.7.25

Jords+Co

8.6.25

Palm UI

8.6.25

Bindery

8.4.25

aeo.press

8.2.25

Cyphr

8.2.25

Reve Image

8.2.25

S-2K

7.31.25

Anthem Creative

7.31.25

Eagle's Nest

7.25.25

Despia

7.25.25

Manifold Bio

7.25.25

Diego

7.22.25

opencode

7.22.25

DreamFlow

7.22.25

FaithTech

7.22.25

Style Find & Replace Webflow App

7.22.25

Lucidly

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