Closed ststimac closed 5 years ago
We are using highlightjs so maybe there's a theme that can be used for dark mode.
Yes, highlightjs has themes we can use for dark mode as a quick fix (right now we're just using the default theme for both light/dark which is the root of the issue). The options even include some light/dark pairings such as "solarized-light" and "solarized-dark".
That said, longer term I'd like to see us create our own light/dark syntax themes to align with the coloring used in the Sources/Debugger tabs for the browser we're running in. Bonus points if we can convince all our target browsers to expose their theme colors through a common API, injected CSS variables, etc.
@ststimac I fixed this by including an explicit highlight.js dark theme for now:
Any objections to closing this issue?
Running Firefox Developer tools in dark mode:
The code results are not accessible due to color contrast. A short term solution would just make the code container box white, but that's also incredibly harsh contrast-wise.
I will work on getting some color codes for the intial dark theme for @antross