From 32b9d06f8e1d0d52ec6108b2b1d65ddfab52e711 Mon Sep 17 00:00:00 2001 From: David Zwart Date: Thu, 25 Jan 2024 21:33:07 +0100 Subject: [PATCH] feat: system decided background color --- docusaurus.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 83a53e0..6b5a1d7 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -124,6 +124,11 @@ const config: Config = { copyright: `Copyright © ${new Date().getFullYear()} David Zwart. Built with Docusaurus.` }, prism: { + colorMode: { + // Let the system decide with 'respectPrefersColorScheme' below + // defaultMode: 'dark', + respectPrefersColorScheme: true, + }, theme: prismThemes.github, darkTheme: prismThemes.dracula }