@Media Prefers Dark/Light [Snippet] <> No-Code Supply Co.
@Media Prefers Dark/Light
@media (prefers-color-scheme: dark) {
--lightness: 90%;
--text-1: hsl(200 10% var(--lightness));
}
/*Other uses:*/
@media (prefers-contrast: high) {...}
@media (prefers-reduce-transparency: reduce) {...}
@media (forced-colors: high) {...}
@media (light-level: dim) {...}

Use CSS to adjust the default colors on a site based on the users color preferences in their OS. Try using the Chrome Dev Tools rendering tab to test this.

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

Curated: 
11.21.19

Similar items

Rotato

10.24.24

También Studio Courses

$99+
10.24.24

CSS Hamburgers

10.24.24

X Shack

10.24.24

AI/ML API

10.24.24
Featured
Preview

Osmo

View item

Angel & Anchor

10.22.24

Uplink

10.22.24

Gev Design

10.22.24

August Health

10.22.24

ShopiFrame

10.21.24

Juno

10.21.24

Live Near Friends

10.21.24

The Real Hotels

10.18.24

GSAP is Joining Webflow

10.18.24

Goodnight

10.17.24

Bookselects

10.17.24

Veloce Media Group

10.17.24

Origin IQ

10.17.24

Kick

10.17.24

Feta

10.17.24

Ghost

10.17.24

Port

10.17.24

Rapid301

10.16.24

Carthagos

10.15.24

VisualDX

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