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

Show image according to site style #287

Open
TheGroundZero opened this issue Apr 8, 2021 · 0 comments
Open

Show image according to site style #287

TheGroundZero opened this issue Apr 8, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@TheGroundZero
Copy link

Hi,

The site can be displayed in dark/light mode depending on the user-agent's preferences (or the toggle since #253 ).
This is a great feature, which makes the site match the visitor's preferences.

However, when using images on the site with a transparent background and light/dark text, this may cause the image to be visible in one mode and unreadable/invisible in the other.

Is there a way to show e.g. the 'light' version of an image when in dark mode and visa-versa?

Compare for example the logos of Hyperion which I'd like to display in a blog post.

Hyperion logo - light
Hyperion logo - dark

The 'dark' version at the bottom won't display nicely on a white background.
At the same time, the 'light' version at the top doesn't display well on a dark background.

@rhazdon rhazdon added the enhancement New feature or request label Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants