From d68c79a2eb959a04e69435371303c0f107d6c6fb Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 3 Mar 2023 16:58:19 +0800 Subject: [PATCH] Dark / light mode tweaks --- .../elements/images/OmnivoreNameLogo.tsx | 3 +-- .../components/templates/PrimaryLayout.tsx | 3 --- .../templates/article/ArticleContainer.tsx | 2 +- .../templates/homeFeed/LibraryHeader.tsx | 23 +++++++++++++++---- .../web/components/tokens/stitches.config.ts | 3 +++ 5 files changed, 24 insertions(+), 10 deletions(-) diff --git a/packages/web/components/elements/images/OmnivoreNameLogo.tsx b/packages/web/components/elements/images/OmnivoreNameLogo.tsx index 80378280d..06e371390 100644 --- a/packages/web/components/elements/images/OmnivoreNameLogo.tsx +++ b/packages/web/components/elements/images/OmnivoreNameLogo.tsx @@ -31,8 +31,7 @@ export function OmnivoreSmallLogo(props: OmnivoreLogoProps): JSX.Element { > diff --git a/packages/web/components/templates/PrimaryLayout.tsx b/packages/web/components/templates/PrimaryLayout.tsx index 6ec9e7067..790dd7b2c 100644 --- a/packages/web/components/templates/PrimaryLayout.tsx +++ b/packages/web/components/templates/PrimaryLayout.tsx @@ -85,9 +85,6 @@ export function PrimaryLayout(props: PrimaryLayoutProps): JSX.Element { width: '100vw', height: '100vh', bg: 'transparent', - '@smDown': { - bg: '$thBackground2', - }, }} > - - + + ) } diff --git a/packages/web/components/tokens/stitches.config.ts b/packages/web/components/tokens/stitches.config.ts index 01e4018f8..8de256f11 100644 --- a/packages/web/components/tokens/stitches.config.ts +++ b/packages/web/components/tokens/stitches.config.ts @@ -176,6 +176,7 @@ export const { styled, css, theme, getCssText, globalCss, keyframes, config } = thBackground: '#FFFFFF', thBackground2: '#F3F3F3', thBackground3: '#FFFFFF', + thBackgroundContrast: '#FFFFFF', thTextContrast: '#1E1E1E', thTextContrast2: '#3D3D3D', @@ -259,6 +260,8 @@ const darkThemeSpec = { thBackground: '#2A2A2A', thBackground2: '#3D3D3D', thBackground3: '#242424', + thBackgroundContrast: '#000000', + thTextContrast: '#FFFFFF', thTextContrast2: '#EBEBEB',