From 21003df0f500542fba75b0b67cbb784961a6c685 Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Tue, 11 Feb 2020 15:54:16 -0500 Subject: [PATCH] docs: Make code blocks dark themed --- docs/.vuepress/config.js | 5 +++++ docs/.vuepress/styles/palette.styl | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index c0e2fd0a..1e33c4fe 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 7836fb0e..39ebb762 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