@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

Shaga Odyssey

11.12.24

Flighty

11.12.24

11x AI

11.12.24

Travel Next Level

11.12.24

Lapz

11.7.24
Featured
Preview

Osmo

View item

Unblocked AI Figma Plugin

11.7.24

Onx UI

11.7.24

Webflow With Cloudflare Proxy On (My New Kickass Method!)

10.30.24

1-800-D2C

10.30.24

Perplexity Supply

10.30.24

Glyphic

10.30.24

Wand

10.30.24

Check

10.29.24

Flow Sparrow

10.29.24

FlowMapp

10.29.24

Popcorn

10.29.24

Autopilot

10.29.24

ShareClub

10.29.24

Fitonist App

10.29.24

Wayfinder Ventures

10.29.24

Groteskly Yours Studio

10.28.24

Reweb

10.27.24

MINO

10.27.24

Biograph

10.27.24

Bleed Design Studio

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