-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Consistent Dark Mode Scheme #1417
Comments
Go ahead! Let's try to keep discussions about the palette here. For now you can use the palettes that's currently being used and build upon it with a little research from looking at accessibility guides too :) Resources: |
The current dark theme is great 👍 . Some minor suggestions I would like to posit. Can we have something similar to what twiter has? It shows three options to the user -
There are some colors in the palette which are quite difficult to see. I'm comparing the visibility with the one we have in the default (light) theme. #1400 Using dev-tools I quickly changed the color of the element shown in the screenshot above and according to the Material guideline, the medium emphasis text color on a darker surface should be - So I agree with @SensehacK that we need to use variables to maintain a consistent style and to have better visibility (accessibility) of texts as compared to what we have currently. Extending the above point, I also played with the After reducing to Let me know your thoughts @jeremyphilemon |
@balrajsingh9 Nice insight on 3 options for UX. Also font weight makes quite the difference, I'm currently swamped till next week with my final year project and thats the reason I wasn't able to put some design thinking towards this enhancement. If you have any Color palettes in mind, you could share it using a table
So that we can all collectively agree on color scheme and have an overall consistent UX. |
Thank you @SensehacK. Let me know if you need any help with writing code for this. I can take out some time out of my job 😆 |
Twitter has 6 primary colors and they remain the same for all the theme variants. They have chosen a very nice set of primary color scheme which doesn't look odd or creates any visibility issues. Here is a short video that I recorded demonstrating my above point - GDrive |
So they have played around with opacity of every element like Basic Color (h1-h6, span, text) & just change the primary prominent feature of UI with only 5 UIColors options. By checking your video, only thing they change of the 3 UI Modes is the background color as the basic contrast color blends well with it. This approach is minimalist and I really appreciate it but its @jeremyphilemon decision or moderators whether we should steer in that direction. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@balrajsingh9 Which colors are we choosing for the theme? |
@SensehacK I would recommend going with the twitter colors as they work well with all kinds of background we would want to have, light, dim, Lights out/Pitch black, etc... RGBs for Primary Colors -
RGBs/Hex for Background Colors -
More work to do on font colors. Haven't finalized yet, but we can take inspiration/copy from Twitter or any other good looking website. We may refer to these palettes as well - https://colorhunt.co/palettes/dark |
@balrajsingh9 Looks great! |
@SensehacK As you have claimed this, are you going to work on it or you want to collaborate? |
@balrajsingh9 So I'm new to React - I would love to collaborate as I still haven't found time to wrap my head around React state management. Let me know what works for you. You can raise an PR as well, I'll also work in parallel & always wanted to try Pair programming on Github fork branches? If you're up for it. |
@SensehacK All in. I went through the source code to check how the current theme toggle is working and found that we are using use-dark-mode lib to toggle the theme and switch the styles. This prevents us to implement a 3rd variant of background color to choose from, as we can only have either light or a dark theme and not the three variants as we discussed. Would have worked - But the only problem is that we cannot update the config object after passing it initially 😞 So all in all, we can either -
|
Got a workaround. NVM 😀 |
@balrajsingh9 Looks nice & where is the code base, I visited your fork didn't seem that you have pushed the code. |
Fixing lint issues. @SensehacK https://github.com/balrajsingh9/covid19india-react/tree/feat/theme-overhaul |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is your feature request related to a problem? Please describe.
I love dark mode everything,
Describe the solution you'd like
Would like to propose a consistent dark mode color scheme / palette across the whole web app.
So that some pages would look consistent with the overall color schemes.
Relevant Issues:
#1385
#1416
#1400
Describe alternatives you've considered
Dark Reader extension fairly does great job of dark mode, but isn't officially supported on the web.
Additional context
We could utilize SASS variables for better scalability in terms of web development in future.
The text was updated successfully, but these errors were encountered: