<!DOCTYPE html>
<html>
<head>
<style>

.box {
    color: CanvasText;
    background-color: Canvas;
}

</style>
</head>
<body>

<div class="box" style="color-scheme: dark">Dark</div>
<div class="box" style="color-scheme: light">Light</div>

</body>
</html>
