Barebones
Barebones copied to clipboard
Apply prefers-color-scheme media query to :root instead of :html.
This fixes the dark mode. Previously, prefers-color-scheme wouldn't be applied globally on a website that uses barebones.css.
I tested this on Firefox 67. See also CSS Custom Properties for details.