diff --git a/.vitepress/theme/styles/landing.css b/.vitepress/theme/styles/landing.css index fa48359e..8dc44bc3 100644 --- a/.vitepress/theme/styles/landing.css +++ b/.vitepress/theme/styles/landing.css @@ -4,17 +4,11 @@ html:has(.landing) { --vp-c-bg: #101010; - background-color: #101010; - - body { - background-color: #101010; - } } .landing { overflow-x: hidden; - background-color: #101010; * { -webkit-font-smoothing: antialiased !important; diff --git a/index.md b/index.md index 3bac83f0..9d46b028 100644 --- a/index.md +++ b/index.md @@ -1,6 +1,8 @@ --- title: Vite titleTemplate: 次世代フロントエンドツール +# add `dark` here to apply dark mode on initial load, +# since `onMounted` doesn't run during SSR pageClass: landing dark layout: home @@ -10,6 +12,9 @@ markdownStyles: false ---