diff --git a/site/src/theme/static/highlight.dark.less b/site/src/theme/static/highlight.dark.less new file mode 100644 index 000000000..ad1ab49fb --- /dev/null +++ b/site/src/theme/static/highlight.dark.less @@ -0,0 +1,16 @@ +html[data-doc-theme='dark'] { + pre code { + background: #262626; + border-color: #262626; + } + + code[class*='language-'], + pre[class*='language-'] { + color: black; + } + + :not(pre) > code[class*='language-'], + pre[class*='language-'] { + background: #262626; + } +} diff --git a/site/src/theme/static/index.less b/site/src/theme/static/index.less index d92aaaaa3..343d461e2 100644 --- a/site/src/theme/static/index.less +++ b/site/src/theme/static/index.less @@ -9,6 +9,7 @@ @import './toc'; @import './not-found'; @import './highlight'; +@import './highlight.dark'; @import './demo'; @import './icons'; @import './mock-browser';