how to make darkmode css code example
Example 1: dark mode css
body {
background-color: black;
color: white;
}
@media screen and (prefers-color-scheme: light) {
body {
background-color: white;
color: black;
}
}
Example 2: css darkmode
@media (prefers-color-scheme: dark) {
}