diff --git a/packages/web/components/elements/LogoBox.tsx b/packages/web/components/elements/LogoBox.tsx index ef359babb..079659068 100644 --- a/packages/web/components/elements/LogoBox.tsx +++ b/packages/web/components/elements/LogoBox.tsx @@ -1,4 +1,5 @@ import { LIBRARY_LEFT_MENU_WIDTH } from '../templates/homeFeed/LibraryFilterMenu' +import { theme } from '../tokens/stitches.config' import { OmnivoreFullLogo } from './images/OmnivoreFullLogo' import { OmnivoreNameLogo } from './images/OmnivoreNameLogo' import { SpanBox } from './LayoutPrimitives' @@ -17,7 +18,10 @@ export function LogoBox(): JSX.Element { }, }} > - + { const LineSeparator = styled(Separator, { width: '100%', margin: 0, - borderBottom: `1px solid ${theme.colors.grayLine.toString()}`, + borderBottom: `1px solid ${theme.colors.thHighContrast.toString()}`, my: '8px', }) return props.layout == 'side' ? : <> @@ -79,7 +79,10 @@ export function ArticleActionsMenu( tooltipSide={props.layout == 'side' ? 'right' : 'bottom'} > - + @@ -124,7 +127,10 @@ export function ArticleActionsMenu( }, }} > - + )} @@ -139,7 +145,7 @@ export function ArticleActionsMenu( }, }} > - + @@ -162,7 +171,7 @@ export function ArticleActionsMenu( tooltipContent="Edit title & description" tooltipSide={props.layout == 'side' ? 'right' : 'bottom'} > - + @@ -178,7 +187,7 @@ export function ArticleActionsMenu( tooltipContent="Delete" tooltipSide={props.layout == 'side' ? 'right' : 'bottom'} > - + @@ -191,7 +200,10 @@ export function ArticleActionsMenu( tooltipContent="Archive" tooltipSide={props.layout == 'side' ? 'right' : 'bottom'} > - + ) : ( @@ -203,7 +215,7 @@ export function ArticleActionsMenu( tooltipContent="Unarchive" tooltipSide={props.layout == 'side' ? 'right' : 'bottom'} > - + )} diff --git a/packages/web/components/templates/homeFeed/LibraryFilterMenu.tsx b/packages/web/components/templates/homeFeed/LibraryFilterMenu.tsx index de9b5190f..d9fc50cc6 100644 --- a/packages/web/components/templates/homeFeed/LibraryFilterMenu.tsx +++ b/packages/web/components/templates/homeFeed/LibraryFilterMenu.tsx @@ -318,7 +318,11 @@ function LabelButton(props: LabelButtonProps): JSX.Element { > {props.label.name} - + - + - + - - {/* - - */} ) } diff --git a/packages/web/components/tokens/stitches.config.ts b/packages/web/components/tokens/stitches.config.ts index c4b8da1d3..6d54de329 100644 --- a/packages/web/components/tokens/stitches.config.ts +++ b/packages/web/components/tokens/stitches.config.ts @@ -109,8 +109,12 @@ export const { styled, css, theme, getCssText, globalCss, keyframes, config } = }, zIndices: {}, transitions: {}, + + colorScheme: { + colorScheme: 'light', + }, + colors: { - // Grayscale grayBase: '#F8F8F8', grayBg: '#FFFFFF', grayBgActive: '#e6e6e6', @@ -191,7 +195,7 @@ export const { styled, css, theme, getCssText, globalCss, keyframes, config } = thProgressFg: '#FFD234', - thHighContrast: '#D9D9D9', + thHighContrast: '#3D3D3D', }, }, media: { @@ -209,6 +213,9 @@ export const { styled, css, theme, getCssText, globalCss, keyframes, config } = }) const darkThemeSpec = { + colorScheme: { + colorScheme: 'dark', + }, colors: { grayBase: '#252525', grayBg: '#3B3938', @@ -260,6 +267,7 @@ const darkThemeSpec = { // New theme, special naming to keep things straigh // once all switch over, we will rename // DARK + colorScheme: 'dark', thBackground: '#2A2A2A', thBackground2: '#3D3D3D', thBackground3: '#242424', @@ -329,6 +337,7 @@ export const lighterTheme = createTheme(ThemeId.Lighter, {}) // Apply global styles in here export const globalStyles = globalCss({ body: { + colorScheme: 'var(--colorScheme-colorScheme)', backgroundColor: '$thBackground2', }, '*': {