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

Fix background color for dark themes #6073

Merged
merged 1 commit into from May 8, 2018

Conversation

j8r
Copy link
Contributor

@j8r j8r commented May 7, 2018

For browsers using a dark theme, the dark text was on a dark background.
Now the background is a very light grey for every browsers.

@RX14
Copy link
Contributor

RX14 commented May 8, 2018

We shouldn't reduce contrast unneccesarily. What do you mean by "dark theme"? If you're using custom css then that's your compatibility to solve, not ours.

@straight-shoota
Copy link
Member

It's actually good practice when specifying a foreground color to also define the background color instead of relying on a default.

It should be #FFFFFF though. #F5F5F5 doesn't fit with the light background color #f8f8f8 applied to signatures.

@j8r
Copy link
Contributor Author

j8r commented May 8, 2018

I've chosen a light grey, but whatever light color including white will fix this.

I use a dark theme on my desktop, and my browser use it too. The default background color depends on this, and for me its a dark one.

Most use default light themes, that's why the background color when not set is light for them.

@j8r j8r changed the title Fix backgound color for dark themes Fix background color for dark themes May 8, 2018
For browsers using a dark theme, the dark text was on a dark background
@sdogruyol sdogruyol merged commit 2cef785 into crystal-lang:master May 8, 2018
@RX14 RX14 added this to the Next milestone May 8, 2018
@j8r j8r deleted the docs-background-fix branch May 8, 2018 16:40
chris-huxtable pushed a commit to chris-huxtable/crystal that referenced this pull request Jun 6, 2018
For browsers using a dark theme, the dark text was on a dark background
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants