From 0e47f4051e6209a4a020ac103b22b9b1d5125cfe Mon Sep 17 00:00:00 2001 From: jinhojang6 Date: Tue, 28 Nov 2023 22:49:48 +0900 Subject: [PATCH] style: use system theme by default --- docusaurus.config.js | 9 ++++----- package.json | 2 +- yarn.lock | 18 +++++++++--------- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index e7b16500..41963d88 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -51,6 +51,10 @@ const config = { ], ], themeConfig: { + colorMode: { + disableSwitch: false, + respectPrefersColorScheme: true, + }, docs: { sidebar: { hideable: false, @@ -159,11 +163,6 @@ const config = { }, ], }, - colorMode: { - defaultMode: "dark", - disableSwitch: false, - respectPrefersColorScheme: false, - }, }, markdown: { mermaid: true, diff --git a/package.json b/package.json index da97799d..b59c7e3a 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "dependencies": { "@acid-info/docusaurus-fathom": "^1.0.0-alpha.111", - "@acid-info/logos-docusaurus-preset": "^1.0.0-alpha.119", + "@acid-info/logos-docusaurus-preset": "^1.0.0-alpha.122", "@docusaurus/core": "^2.4.1", "@docusaurus/preset-classic": "^2.4.1", "@docusaurus/theme-mermaid": "^2.4.1", diff --git a/yarn.lock b/yarn.lock index a093b65a..7693788c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -36,14 +36,14 @@ satori "^0.10.1" sharp "^0.32.1" -"@acid-info/logos-docusaurus-preset@^1.0.0-alpha.119": - version "1.0.0-alpha.119" - resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-preset/-/logos-docusaurus-preset-1.0.0-alpha.119.tgz#877fffb3d662a082a412836c2e99b90b68b07626" - integrity sha512-rN7OlyYGCGVphm7+ivtaQdDQVw9CppPnAzLUfJLSub878gbD2N1rSzbhwLXCQKc7yP7gsmyuMbq4nEFgTOQihA== +"@acid-info/logos-docusaurus-preset@^1.0.0-alpha.122": + version "1.0.0-alpha.122" + resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-preset/-/logos-docusaurus-preset-1.0.0-alpha.122.tgz#17413393d9c7a77db5faf4b9333a8760446feebc" + integrity sha512-evBg2XFiU8/F8B78mIA/Ii1oP0zSKZ2qn1eMgx+4t8fyDr0w8VyqCBSInWmWjYkkzOrAEQWDrL0ZxNp/Ct47KA== dependencies: "@acid-info/docusaurus-og" "^1.0.0-alpha.111" "@acid-info/logos-docusaurus-search-local" "^1.0.0-alpha.111" - "@acid-info/logos-docusaurus-theme" "^1.0.0-alpha.119" + "@acid-info/logos-docusaurus-theme" "^1.0.0-alpha.122" "@docusaurus/core" "^2.4.1" "@docusaurus/module-type-aliases" "^2.4.1" "@docusaurus/preset-classic" "^2.4.1" @@ -71,10 +71,10 @@ "@easyops-cn/docusaurus-search-local" "^0.33.6" lodash "^4.17.21" -"@acid-info/logos-docusaurus-theme@^1.0.0-alpha.119": - version "1.0.0-alpha.119" - resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-theme/-/logos-docusaurus-theme-1.0.0-alpha.119.tgz#6c911305979eae077ef29747a0542a8f63df663d" - integrity sha512-hlQwQWtPvJOnauhhOgdMT75oR0ZjftEU36LTnz15bg23ciINflEHaMSUrOzWEYjTMydPlg0rD4bQZ4Ifimk+IQ== +"@acid-info/logos-docusaurus-theme@^1.0.0-alpha.122": + version "1.0.0-alpha.122" + resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-theme/-/logos-docusaurus-theme-1.0.0-alpha.122.tgz#4da98bf673acb11ebcaad685d8b1cab5f634b26f" + integrity sha512-0GKEb94cObPzgfuH21X7MNro7j/zSisI+/7710VMOyidoI9W2OSfe7KwCuIQbW7Y9N+oyw+2YLYKu69RfiLbZg== dependencies: "@acid-info/docusaurus-og" "^1.0.0-alpha.111" "@acid-info/lsd-react" "^0.1.0-alpha.21"