Re: [csswg-drafts] [css-ui] Add a way for authors to indicate that they want dark-mode form controls etc (#3299)

> I think dark mode will need a different default UA stylesheet.

I've thought a little bit about what would be required for a `dark-mode.css`, and it seems that since [chromium](https://github.com/chromium/chromium/blob/2ca8c5037021c9d2ecc00b787d58a31ed8fc8bcb/third_party/blink/renderer/core/css/html.css), [gecko](https://github.com/mozilla/gecko-dev/blob/aaac9a77dd456360551dd764ffba4ca4899dcb56/layout/style/res/html.css), and [webkit](https://github.com/WebKit/webkit/blob/master/Source/WebCore/css/html.css) all have slightly different `html.css` user-agent stylesheets, to do a 'dark mode' base CSS stylesheet properly you'd probably need to create a new stylesheet that had light-on-dark default colors, and that included rules from all three user-agent stylesheets to make sure it was looking the same in all browsers. The resulting stylesheet would be big, and probably pretty ugly 😆

I'm not sure that just one browser alone could implement a 'dark-mode.css' stylesheet that would be helpful for CSS authors to develop on top of if it wasn't necessarily catching every default style that another browser's user-agent stylesheet was setting.

If anybody is interested in making some kind of `dark-mode.css` base stylesheet that CSS authors can build dark themes on top, please ping me. I'm interested in helping to assemble something like this, but haven't gotten around to starting that yet!

-- 
GitHub Notification of comment by tomhodgins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3299#issuecomment-446082227 using your GitHub account

Received on Tuesday, 11 December 2018 05:57:53 UTC