-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
Readability during dark-mode #183
Comments
@alshedivat I've been playing around with the css and have resolved most of the major offenders; however I want input on fixing the code blocks. There are a few possible fixes for the legibility of code blocks.
Sidenote : I think that the background color of the code during light mode should be light-grey. It's a bit hard to delineate the code sections. |
@alshedivat Should we continue the discussion about the distill css here? |
Hi! Thank you for all your work on this topic. I'm just wondering is there a way to set the light theme as the default one when we first open the site? Currently, the default is set to the dark theme. |
@huyen-nguyen I believe that it was written to be based off your computer settings. Check the theme.js file for the logic. This is for the first time you jump on the website, and then it stores said preference in local memory. If you're having issues where it's consistently loading up in dark-mode :
|
@huyen-nguyen Additionally you can rewrite the logic on lines 4-7 of theme.js if you need it to start in light theme. |
That makes sense. Got it. Thanks! By local storage do you mean cache and stuff? |
Yup. Just clear that stuff and you should be good to go. |
@Jongwoo-Shim, thanks for opening this issue. Just got a chance to take a look.
|
|
@Jongwoo-Shim, let's keep a single issue for readability. Feel free to create a separate PR that resolves non-distill issues. For the distill stuff, I think the best way to go about it is to update styles in my mirror of color: rgba(0, 0, 0, 0.8); to (I think it's better to create separate variables for distill, for example color: var(--global-text-color); After such changes are made, I'll need to re-generate |
Here are some of the fixes : #192 I'll get around to the distill stuff and code theme toggling when I get the chance, bit swamped at the moment. |
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. |
Acknowledge the following
[For usage questions, please use gitter chat instead of raising an issue.]
Describe the bug
Several areas are difficult to read during dark mode.
I found that the main offenders are the following :
To Reproduce
Steps to reproduce the behavior:
Screenshots
System (please complete the following information):
The text was updated successfully, but these errors were encountered: