You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realize this mightn't be possible but it's worth a shot to ask, given how close I am to getting Nextra to look the way I want it to.
So my ideal solution is this: Make the navbar render in dark mode regardless of the global dark/light mode selected. I like allowing the user to choose between light or dark for content, but my logo only looks good on black so I'd like to make the header always dark. Any ideas?
I tried overriding the entire Navbar by copy pasting from the Nextra source. In theory it'd be easy just to remove some classes but unfortunately the Navbar source uses stuff like useMenu, renderComponent, and Anchor which aren't exported with Nextra so I'd have to copy paste a lot of Nextra internals to achieve this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I realize this mightn't be possible but it's worth a shot to ask, given how close I am to getting Nextra to look the way I want it to.
So my ideal solution is this: Make the navbar render in dark mode regardless of the global dark/light mode selected. I like allowing the user to choose between light or dark for content, but my logo only looks good on black so I'd like to make the header always dark. Any ideas?
I tried overriding the entire Navbar by copy pasting from the Nextra source. In theory it'd be easy just to remove some classes but unfortunately the Navbar source uses stuff like
useMenu
,renderComponent
, andAnchor
which aren't exported with Nextra so I'd have to copy paste a lot of Nextra internals to achieve this.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions