gctools-outilsgc / aurora-website

Aurora is a central design system for all products and applications for the Open, Accessible Digital Workspace. This repo is for all code and issues related to the Aurora documentation website.
https://design.gccollab.ca/
MIT License
16 stars 9 forks source link

Dark Mode Support #296

Open mgifford opened 5 years ago

mgifford commented 5 years ago

I realize it hasn't quite come to the Windows world, but would love to have support for Dark mode built into Aurora. Would love to see this tie into WET as well.

There are going to be a bunch of related issues around assets: https://github.com/wet-boew/wet-boew/issues/8691

RobJohnston commented 4 years ago

Windows 10 provides a dark theme, and a website can determine the user's preference and present itself with it's own dark theme, as in the example provided from this Stack Overflow answer: https://stackoverflow.com/a/52986538/4930982

See also "Detecting the desire for light or dark color schemes: the prefers-color-scheme feature", at https://drafts.csswg.org/mediaqueries-5/#prefers-color-scheme

Edit: Instructions to set the new dark mode in Windows (requires a recent update that not everyone would have yet) https://www.cnet.com/how-to/windows-10-dark-mode-is-here-turn-it-on-now/