Use github's color variables to support dark mode #139
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Original issue => #137
Here's my approach to integrate with github's dark mode - I'm using github's CSS custom properties so that it grabs the same colour as github's theme.
There are a few colours I didn't really know which one to pick... For those ones it currently does the job, but we have no guarantee it will look alright if github decides to change it.
Which also makes me think that if github removes some of these variables, this extension will need to be updated again - I'm absolutely open to suggestions or better implementations.
Normal


Search


^^^^ This search one is an example where it could get better. Maybe we need to also have our own "fallback" palette that it depends on
html[data-color-mode]attribute?