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

img: Add dark-mode logo (Fixes #4) #9

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

ochosi
Copy link
Contributor

@ochosi ochosi commented Jan 22, 2024

This commit sets a dark-mode logo.
While our logo is an svg, the usual approach of resorting to a ThemedImage doesn't work.
Instead, the navbar's srcDark field needs to be set to a different logl.

See

Note: I'm aware that #4 refers to more than just the logo, but I feel the logo is the main pain point. All the other svgs are still legible.

This commit sets a dark-mode logo.
While our logo is an svg, the usual approach of resorting to a
ThemedImage doesn't work.
Instead, the navbar's srcDark field needs to be set to a different logl.

See
https://docusaurus.io/docs/next/markdown-features/assets#themed-images
https://docusaurus.io/docs/api/themes/configuration#navbar-logo
@ondrejbudai ondrejbudai enabled auto-merge (rebase) January 23, 2024 08:30
@ondrejbudai ondrejbudai merged commit d2f3d23 into osbuild:main Jan 23, 2024
1 check passed
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.

2 participants