Source code
Revision control
Copy as Markdown
Other Tools
<!doctype html>
<style>
:root {
forced-color-adjust: none;
}
div {
background-color: light-dark(beige, brown);
color: light-dark(purple, blue);
}
div:first-of-type {
color-scheme: light;
}
div:last-of-type {
color-scheme: dark;
}
</style>
<div>Light</div>
<div>Dark</div>