Skip to content

Switch light/dark background color for sidebar-scroll #269

Closed Answered by pradyunsg
edgarriba asked this question in Questions
Discussion options

You must be logged in to vote

The default styling doesn't have any background on the caption and the sidebar has a "fun" padding story (which is thanks to the scrollbars on various platforms) -- anyway, that's why there's no CSS variables provided for it and also why I don't intend to provide any.

is it possible to overwrite for light/dark mode the background-color of the sidebar-scroll ?

Yes, you can write your own CSS that does this FWIW; modelled after how Furo handles it's own CSS declarations:

<style>
body {
{{ declare_css_variables(theme_light_css_variables, furo_pygments.light) }}
}
body[data-t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@edgarriba
Comment options

Answer selected by edgarriba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants