Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark mode theme #365

Open
tschbc opened this issue May 29, 2024 · 2 comments
Open

Dark mode theme #365

tschbc opened this issue May 29, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@tschbc
Copy link

tschbc commented May 29, 2024

Related component

Styles - Colours

Description

Create a new colour palette to be used for dark mode themes.

Rationale

Dark mode can be a more pleasant experience¹ than traditional light themes and has official support in major platforms (Windows, OSX, Android, iOS) and browsers.

¹ When done correctly, rather than relying on automatic plugins

Additional information

@tschbc tschbc added the enhancement New feature or request label May 29, 2024
@mkernohanbc
Copy link
Contributor

Thanks @tschbc — we'll add this to our backlog for investigation. Out of curiosity, do you know of any examples of existing B.C. gov digital services that support dark mode? I'd be interested to see how they've approached it in production.

@bcgov/design-system-team some top-of-mind things to contemplate when we get here:

  • Tokens: structural implications of implementing a dark mode (or any other alternate 'theme'.) How would these tokens fit into the overall schema?
  • Components: how is setting an alternative theme controlled — at the component level, or globally? Is it a simple toggle, or something more configurable? Is 'supports dark mode' a line item in the DoD for each new component?

Some interesting avenues to explore here around theming more broadly.

@tschbc
Copy link
Author

tschbc commented May 29, 2024

@mkernohanbc I don't know of any existing BC gov service that uses dark mode in production.

That being said, I'm currently working on a mobile app for the social sector and have had great interest in supporting dark mode since we started. The only reason we haven't made it yet is priority for other features.

Also, when you get around to it looking over it, the articles I linked have in-depth UX information and some implementation information to base off of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants