css prefers-color-scheme example

This uses the @media and prefers-color-scheme to check which one you have as a setting in your browser

CSS

body { background: white; color: black; }

@media (prefers-color-scheme: light) {
  body { background: white; color: #666; }
}

@media (prefers-color-scheme: dark) {
  body { background: black; color: #666; }
}

Other Items in css
Page Views

This page has been viewed 75 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

âĪðŸ‘Đ‍ðŸ’ŧðŸ•đ

Random Quote
I believe that success can be measured in the number of uncomfortable conversations you're willing to have.
Unknown