From 3f3055d24a1a4e295ce8720ff530614f54db79c9 Mon Sep 17 00:00:00 2001 From: Eugene <91225197+jewhyena@users.noreply.github> Date: Sat, 4 Jan 2025 23:48:45 +0200 Subject: [PATCH] fix: respect users preferred color scheme --- docusaurus.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docusaurus.config.js b/docusaurus.config.js index 84c9add7..b6ca6feb 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -91,6 +91,9 @@ const config = { ({ // https://docusaurus.io/docs/api/themes/configuration image: 'img/logos/fastify-black.svg', + colorMode: { + respectPrefersColorScheme: true, + }, docs: { sidebar: { autoCollapseCategories: true,