-
Notifications
You must be signed in to change notification settings - Fork 44
Add dark mode theme #148
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 theme #148
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice. I'm personally not a huge fan of dark mode, but this seems to work quite well. I guess moving forward we need to consider the switch when adding new images.
One issue remains: The icons e.g. on the bottom of the home page or on top of the documentation page are almost invisible. I believe those are all font-awesome glyphs, so I hope it's easy to tag them with a class that is switching colors too.
I think some of the icons where using transparency to differentiate themselves. I'll take a look and push the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice. Thank you!
This change adds a dark mode theme and the required code infrastructure for switching themes.
The theme is my best interpretation of a dark mode version of the current theme (only changes colours).
The change includes a switcher widget at the top of the page to select between
OS Default
,Light
andDark
modes.The display mode is persisted (in local storage) between loads, with the default mode based on your current operation system (or browser) theme.
Theming is utilising the light_dark function.