From 190e1825a544bafcb87c1f5f3a48b0c0dbe66d5d Mon Sep 17 00:00:00 2001 From: Ky Lee Date: Tue, 6 Aug 2024 14:22:03 -0700 Subject: [PATCH] update styles for light mode --- site/docs/styles.css | 26 ++++++++++++++------------ site/vocs.config.tsx | 16 ++++++++++++---- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/site/docs/styles.css b/site/docs/styles.css index 97a76516fb..dfb8c4c37b 100644 --- a/site/docs/styles.css +++ b/site/docs/styles.css @@ -17,16 +17,18 @@ } } -.vocs_CodeGroup, -.vocs_Tabs_list, -.vocs_Tabs_content, -.vocs_CodeBlock, -.vocs_CodeTitle, -.vocs_Pre_wrapper, -.vocs_Heading::before, -.vocs_Code { - background-color: #1F2937 !important; - border-color: #1F2937 !important; +.dark { + .vocs_CodeGroup, + .vocs_Tabs_list, + .vocs_Tabs_content, + .vocs_CodeBlock, + .vocs_CodeTitle, + .vocs_Pre_wrapper, + .vocs_Heading::before, + .vocs_Code { + background-color: #1F2937 !important; + border-color: #1F2937 !important; + } } .vocs_Tabs_trigger { @@ -122,7 +124,7 @@ padding: 60px 0px 0px 0px; } -.dark .vocs_Content:has(#blobs) { +.vocs_Content:has(#blobs) { padding: 60px 0px 0px 0px; background-color: #030713; } @@ -131,7 +133,7 @@ display: none; } -.dark .css-main-container { +.css-main-container { background-color: #111827; } diff --git a/site/vocs.config.tsx b/site/vocs.config.tsx index 412a3d7ae8..ed66eef8cf 100644 --- a/site/vocs.config.tsx +++ b/site/vocs.config.tsx @@ -80,12 +80,20 @@ export default defineConfig({ ], theme: { accentColor: '#73F7FF', - colorScheme: 'dark', variables: { color: { - background: '#151A26', - backgroundDark: '#0F131E', - textAccent: 'white', + background: { + dark: '#151A26', + light: 'white', + }, + backgroundDark: { + dark: '#0F131E', + light: '#F3F4F6', + }, + textAccent: { + dark: 'white', + light: '#030712', + }, }, }, },