@media (prefers-color-scheme: dark) {
background: #333;
color: white;
}
@media (prefers-color-scheme: light) {
background: white;
color: #555;
}
/* Set dark/light theme based on system settings: */
@media (prefers-color-scheme: dark) {
body { background: black; color: #ddd; }
}
@media (prefers-color-scheme: light) {
body { background: #eee; color: black; }
}
Code Example |
---|
Css :: transition css |
Css :: css text align center |
Css :: css button click color |
Css :: scss extend |
Css :: responsive table in tailwind css |
Css :: how to use local fonts in css |
Css :: how to change background color in css |
Css :: css button pressed effect |
Css :: css border-left |
Css :: css all clases which start with col- |
Css :: how to remove css from element using jquery |
Css :: how to make a flex container full page |
Css :: vh and vw |
Css :: css font family |
Css :: css table size |
Css :: how to center an overlay button using css transform and translate |
Css :: @media query css |
Css :: responsive width css |
Css :: font-variant |
Css :: change bg color on hover |
Css :: sass mixin |
Css :: center background image css |
Css :: npm registry package not found |
Css :: how to change link color hover button text |
Css :: margin bottom |
Css :: css ordened list style color |
Css :: grid-template-columns |
Css :: tailwind css absolute pin |
Css :: flexbox |
Css :: css flex add second row |