Option to invert nav logo on dark mode #3659
Closed
pandermatt
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Something similar is already in .dark .vp-sponsor-grid-image {
filter: grayscale(1) invert(1);
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I used VitePress in some projects already, and I noticed that every logo i used looks bad on dark mode.
I think this might be also the issue for others and instead of having two different icons (light and dark)
it would maybe be preferable to auto invert the icon with
filter: grayscale(1) invert(1);
I was thinking about adding
logoInverted
(orsilhouetteLogoInDark
)themeConfig
and then inVPNavBarTitle.vue
with the class
If this idea does not fit the project, the workaround would be to use following in
styles.css
Beta Was this translation helpful? Give feedback.
All reactions