opensourcediversity.org
opensourcediversity.org copied to clipboard
Dark theme for opensourcediversity
A glimpse of the dark theme:
Also, some links were unnecessary so I have fixed them.
Please review my PR and let me know if any changes are to be made. Thanks in advance.
Hi @siddhanth339, good stuff! :) Here’s some points:
- [ ] Easier than having 2 full CSS files would be using CSS variables
- [ ] Instead of the toggle and the Javascript, using whatever people set on their platform could be nice :) This can be done by using
prefers-color-scheme
in the CSS: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme - [ ] Might be nice to keep the heading in the branded green?
What do you think? :)
Good idea! I am working on it and will make a commit soon. Thanks for your time!
@jancborchardt please review my latest commit https://github.com/opensourcediversity/opensourcediversity.org/pull/118/commits/1f4252363c70ec6084cd1a2205835ded24e4ca7e
- [x] CSS variables are used and there is only one file "styles.css" for both light and dark themes
- [x] Toggle for the theme is removed and
prefers-color-scheme
is used to detect theme - [x] Heading is in branded green colour for the dark mode
@jancborchardt any updates?