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

Adding links to images that can change based on the theme #1772

Open
JeanxPereira opened this issue Jan 31, 2024 · 0 comments
Open

Adding links to images that can change based on the theme #1772

JeanxPereira opened this issue Jan 31, 2024 · 0 comments

Comments

@JeanxPereira
Copy link

I would like to implement an image that changes according to the GitHub theme and has an embedded link. Is there a way to achieve this? Like the example below:

<picture align="center">
  <source media="(prefers-color-scheme: dark)" srcset=".github/preview.png">
  <source media="(prefers-color-scheme: light)" srcset=".github/preview-light.png">
  <a href="LINK-HERE">
    <img alt="project" src=".github/preview.png">
  </a>
</picture>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant