Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css dark mode

@media (prefers-color-scheme: dark) {
  body {
    background-color: black;
    color: white;
  }
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #css #dark #mode
ADD COMMENT
Topic
Name
8+5 =