w3c / tr-design

CSS used by W3C specs (this repo is not about the w3.org/TR index page)
https://w3c.github.io/tr-design/src/README
Other
64 stars 29 forks source link

.dark class for dark mode #349

Closed xfq closed 7 months ago

xfq commented 7 months ago

It would be useful to add a .dark class via fixup.js when the spec is in dark mode, because many specs have customized styles and we can adapt the styles using media query using :not(.dark) in specs.

/cc @deniak

deniak commented 7 months ago

I've submitted a PR to add a class darkmode: https://github.com/w3c/tr-design/pull/350

xfq commented 7 months ago

There seems to be a bug. My system is in light mode and I selected auto, but there is still a darkmode class on body.

deniak commented 7 months ago

Fixed by #352