diff options
author | Matan Kushner <hello@matchai.dev> | 2020-02-11 15:54:16 -0500 |
---|---|---|
committer | Matan Kushner <hello@matchai.dev> | 2020-02-11 15:54:16 -0500 |
commit | 21003df0f500542fba75b0b67cbb784961a6c685 (patch) | |
tree | ad6799d5b18837b75173ca179ea1b228f96a717c | |
parent | 0e8b1c659dfcd8ceb1c753c3c6b396ae2f7f7ddf (diff) |
docs: Make code blocks dark themed
-rw-r--r-- | docs/.vuepress/config.js | 5 | ||||
-rw-r--r-- | docs/.vuepress/styles/palette.styl | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index c0e2fd0a5..1e33c4fee 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -61,6 +61,11 @@ module.exports = { apiKey: "107bdc34b894d5d1dd0824b420184c2d", indexName: "starship" }, + postcss: { + plugins: [ + require('css-prefers-color-scheme/postcss'), + ] + }, locales: { "/": { // text for the language dropdown diff --git a/docs/.vuepress/styles/palette.styl b/docs/.vuepress/styles/palette.styl index 7836fb0ea..39ebb762f 100644 --- a/docs/.vuepress/styles/palette.styl +++ b/docs/.vuepress/styles/palette.styl @@ -2,4 +2,5 @@ $accentColor = #DD0B78 $accentDarkColor = #ff33b8 $textColor = #2c3e50 $borderColor = #eaecef -$codeBgColor = #282c34 +$codeBgLightColor = #282c34 +$preTextLightColor = #fff |