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

Add Dark Mode #11

Closed
3 of 4 tasks
darekkay opened this issue Jul 13, 2020 · 9 comments
Closed
3 of 4 tasks

Add Dark Mode #11

darekkay opened this issue Jul 13, 2020 · 9 comments
Assignees
Labels
Type: Enhancement New feature or request

Comments

@darekkay
Copy link
Owner

darekkay commented Jul 13, 2020

Prerequesites:

  • CSS colors should be refactored into CSS custom properties
  • SVGs have to be moved out of CSS (base64) into the markup to allow changing their colors. To keep the markup size small, the SVGs should probably be reused via <use> (MDN).

TODO:

  • Define dark theme, probably based on this.
  • Add theme switcher

All changes have to be done in this repository.

@darekkay darekkay added the Type: Enhancement New feature or request label Jul 13, 2020
@sarveshh
Copy link

Hey @darekkay I would love to give this a try. Is that okay?

@darekkay
Copy link
Owner Author

Hey @sarveshh , sure, feel free :) But it might not be that simple given the not so up-to-date architecture of https://github.com/darekkay/static-marks-app/

@12nick12
Copy link

this would be awesome, only if I was smart enough to help :-( good luck

@devnikesh
Copy link

Hi, @darekkay I gave it a try. For now, just implemented for theme preference, it's gonna show up according to the user theme preference in their browser settings. Looking forward to your approval to continue along. :)
Dark Mode

@darekkay
Copy link
Owner Author

darekkay commented Jan 13, 2022

Hey @devnikesh , the work in progress looks good to me 👍 I also agree that it's good to start with the browser preferences first before implementing a theme switcher later.

As a hint, have a look into the (newly added) atomic color classes that will match the CSS custom properties: https://github.com/darekkay/static-marks-app/blob/master/src/styles/_atomic.scss

@devnikesh
Copy link

@darekkay , yeah sure thank you, glad you liked it.. 😄

@devnikesh
Copy link

Hey @darekkay , I'm done with the browser preference part, earlier the menu item icons and text color were not changing on dark mode, now it's fixed. Can we proceed to implement the feature ?
Dark Mode)
.

@devnikesh
Copy link

Hi @darekkay, was waiting for your approval, I've done the testing and have opened a PR. Devnikesh/add dark mode 11

Here's a Screenshot of the test result:

Screenshot (1352)

@darekkay
Copy link
Owner Author

darekkay commented Jan 23, 2022

Version 2.4.0 published, including a Dark Mode. Thanks everyone 🎉

image

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

No branches or pull requests

4 participants