tomayac’s avatartomayac’s Twitter Archive—№ 16,782

  1. …in reply to @SimmerVigor
    @SimmerVigor @mnot @CherryJimbo For the main doc, adding :root {color-scheme: dark light} to your style suffices (web.dev/color-scheme/). Then all you need to do is choose a different background-color for .docinfo based on prefers-color-scheme (web.dev/prefers-color-scheme/), ideally via CSS custom props.