mirror of https://github.com/luizdepra/hugo-coder.git

Alphonse Mariya
16.37.2021 29a7a942b7c6e494dd8cfb941f0950504769528c
refs
author Alphonse Mariya <alphonse.mariya@hotmail.com>
Thursday, December 16, 2021 22:37 +0100
committer GitHub <noreply@github.com>
Thursday, December 16, 2021 22:37 +0100
commit29a7a942b7c6e494dd8cfb941f0950504769528c
tree 7a4f36dd3247491fa7c49be1d7d103c66470d1d2 tree | zip | gz
parent 263be7cebc84993e099d662181cd4e4c5e937111 view | diff
Fix bad syntax highlighting color schemes (#630)

Some pygment color schemes (like `bw`, which we use as default in the
exampleSite) do not set a foreground color explicitly, which makes those
themes look bad/illegible when using the dark mode of hugo-coder. Most
such themes are light themes (it seems after a quick research), which
explains this phenomenon.

This commit adds a fix for such color schemes by setting the default
foreground color to the one used in the light hugo-coder colorscheme.
It is overridden by proper syntax highlighting schemes.
5 files modified
83 ■■■■■ changed files
assets/scss/_base_dark.scss 7 ●●●●● diff | view | raw | blame | history
exampleSite/resources/_gen/assets/scss/scss/coder-dark.scss_9e20ccd2d8034c8e0fd83b11fb6e2bd5.content 36 ●●●●● diff | view | raw | blame | history
resources/_gen/assets/scss/scss/coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.content 2 ●●● diff | view | raw | blame | history
resources/_gen/assets/scss/scss/coder-dark.scss_1fcd9040f1144c65015c77e7b93bc5ac.json 2 ●●● diff | view | raw | blame | history
resources/_gen/assets/scss/scss/coder-dark.scss_9e20ccd2d8034c8e0fd83b11fb6e2bd5.content 36 ●●●●● diff | view | raw | blame | history