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

Dark theme images for docs #4391

Merged
merged 2 commits into from
May 13, 2024
Merged

Dark theme images for docs #4391

merged 2 commits into from
May 13, 2024

Conversation

KrystalDelusion
Copy link
Member

What are the reasons/motivation for this change?
#4385

Explain how this is achieved.
New invert-helper css class uses svg color filter matrix from @jix (via #4385 (comment)) to invert brightness for images when using dark theme.

If applicable, please suggest to reviewers how they can test the change.
Make docs locally, check images in both light and dark mode, using both the forced light/dark mode selector and the auto mode with browser/OS selected light/dark mode.

KrystalDelusion and others added 2 commits May 11, 2024 10:40
Use svg color filter matrix from @jix to invert brightness for images when using dark theme.

Co-authored-by: Jannis Harder <[email protected]>
@KrystalDelusion KrystalDelusion linked an issue May 10, 2024 that may be closed by this pull request
Copy link
Member

@jix jix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested it locally, lgtm

@mmicko mmicko merged commit 2326d9c into main May 13, 2024
24 checks passed
@mmicko mmicko deleted the dark-theme-docs branch May 13, 2024 13:03
KrystalDelusion added a commit to YosysHQ/furo-ys that referenced this pull request May 14, 2024
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

Successfully merging this pull request may close these issues.

Documentation is unreadable if the system theme is dark
3 participants