@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

Tempo Labs

1.27.25

Hishaam

1.27.25

Vellar Sound

1.27.25

Studio Direction

1.27.25

Digidop

1.27.25

Onlook

1.27.25

Bulk edit SEO title and description in Webflow

1.25.25

Val town

1.23.25

Sygnal Attributes

1.23.25

Dropbox Brand Guidelines

1.18.25

SingleStore

1.14.25

Radius Calculator

1.14.25

Snowhouse Studio | Year in Review 2024

1.14.25

Framer Commerce

1.11.25

State of JavaScript 2024

1.8.25

Agent Pages

1.7.25

Bland AI

1.7.25

Lindy.ai

1.7.25

E2B

1.7.25

Phidata

1.7.25

Greenlite

1.7.25

Relevance AI

1.7.25

HTMLtoflow Webflow App

1.6.25

NIKI Studio

1.6.25

Midday

1.6.25

Cursor Directory

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