Skip to content

Giscus displays dark background in light mode #6938

Answered by stalomeow
SohamTilekar asked this question in Q&A
Discussion options

You must be logged in to vote

This is caused by the color-scheme: light property of the .md-typeset iframe. If you disable it, the weird black background disappears.

Currently you can add an additional css file containing the following code to temporarily fix this issue.

.md-typeset iframe.giscus-frame {
    color-scheme: light dark !important;
}

Replies: 3 comments 4 replies

Comment options

alexvoss
Mar 19, 2024
Collaborator Sponsor

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@SohamTilekar
Comment options

@squidfunk
Comment options

@squidfunk
Comment options

@squidfunk
Comment options

Answer selected by SohamTilekar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #6932 on March 20, 2024 00:50.