tomayac’s avatartomayac’s Twitter Archive—№ 13,081

  1. …in reply to @t_a_w
    @t_a_w @chibichibibr Yes there is: you can use <dark-mode-toggle> (github.com/GoogleChromeLabs/dark-mode-toggle), a custom element that lets you author your CSS with the media query syntax and your site visitors can then use the toggle to select their color scheme. web.dev/prefers-color-scheme/#dark-mode-but-add-an-opt-out