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

adobe-fonts.github.io color issues #244

Closed
532910 opened this issue May 3, 2020 · 11 comments
Closed

adobe-fonts.github.io color issues #244

532910 opened this issue May 3, 2020 · 11 comments
Labels

Comments

@532910
Copy link

532910 commented May 3, 2020

https://adobe-fonts.github.io/source-sans-pro/, https://adobe-fonts.github.io/source-serif-pro/ and https://adobe-fonts.github.io/source-code-pro/ doesn't redefine colors, so all of them look fine in the dark browsers:

image

But when mouse is over, all are completely unreadable:
image

You should define both foreground and background colors together, implicitly, or not define them at all. Really you shouldn't reproduce it (just define both fg and bg and don't rely on common defaults), but if you want, it is firefox with browser.display.use_system_colors = true and env GTK_THEME=Adwaita:dark

@pauldhunt pauldhunt added the bug label May 13, 2020
@pauldhunt
Copy link
Contributor

can you update the source and submit a pull request? or provide the code necessary for me to plug into it? thanks.

@532910
Copy link
Author

532910 commented Jul 28, 2020

  1. I don't see web page source in this repo.

  2. The issue is here:

div:hover
{
    background-color: #EEE;
}

@frankrolf
Copy link
Member

I am currently fixing this problem for the Source Serif specimen page, but I could not get a dark background to appear, even when setting dark mode globally.
The solution would be setting the colors explicitly, like this:


        @media (prefers-color-scheme: dark) {
            body {
                background-color: #222;
                color: #FFF;
            }
            div:hover
            {
                background-color: #333;
            }
        }
        @media (prefers-color-scheme: light) {
            body {
                background-color: #FFF;
                color: #000;
            }
            div:hover
            {
                background-color: #EEE;
            }
        }

This keeps the current hover color intact for light themes, and redefines background-, font-, and hover colors in dark mode.
The grey for the h2 can stay as-is IMO.

Screen Shot 2020-11-05 at 10 02 19

Screen Shot 2020-11-05 at 10 02 34

@532910
Copy link
Author

532910 commented Nov 5, 2020

could not get a dark background to appear

did you set browser.display.use_system_colors = true and restarted firefox?

@frankrolf
Copy link
Member

I did not, and even when I do – it does not change a thing (except darkening the text on the ribbon). So I take it that it’s safer to just specify the color directly.
Screen Shot 2020-11-05 at 16 29 53

@532910
Copy link
Author

532910 commented Nov 9, 2020

Still not fixed.

@frankrolf
Copy link
Member

You’ll find out here as soon as it is!

@pauldhunt
Copy link
Contributor

@532910 can you confirm the issue is now resolved? thanks.

@532910
Copy link
Author

532910 commented Nov 17, 2020

Only for sans and code. Serif still looks the same.

@frankrolf
Copy link
Member

The specimen for Source Serif will change completely in the next few weeks, so I did decide not to update the old CSS there.
Thanks for pointing out the issue!

@532910
Copy link
Author

532910 commented Nov 17, 2020

Thank you for resolving!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants