diff --git a/packages/web/components/elements/EditLabelChip.tsx b/packages/web/components/elements/EditLabelChip.tsx index 586758031..930f9f739 100644 --- a/packages/web/components/elements/EditLabelChip.tsx +++ b/packages/web/components/elements/EditLabelChip.tsx @@ -2,6 +2,7 @@ import { Button } from './Button' import { SpanBox, HStack } from './LayoutPrimitives' import { Circle, X } from 'phosphor-react' import { isDarkTheme } from '../../lib/themeUpdater' +import { theme } from '../tokens/stitches.config' type EditLabelChipProps = { text: string @@ -13,9 +14,12 @@ type EditLabelChipProps = { export function EditLabelChip(props: EditLabelChipProps): JSX.Element { const isDark = isDarkTheme() - const selectedBorder = isDark ? '#FFEA9F' : '#D9D9D9' + const selectedBorder = isDark ? '#FFEA9F' : '$omnivoreGray' const unSelectedBorder = isDark ? 'transparent' : '#DEDEDE' - const xUnselectedColor = isDark ? '#6A6968' : '#DEDEDE' + const xSelectedColor = isDark + ? '#FFEA9F' + : theme.colors.omnivoreGray.toString() + const xUnselectedColor = isDark ? '#6A6968' : '#2A2A2A' return ( diff --git a/packages/web/components/elements/EditLabelChipStack.tsx b/packages/web/components/elements/EditLabelChipStack.tsx index d31d1496a..2844f2264 100644 --- a/packages/web/components/elements/EditLabelChipStack.tsx +++ b/packages/web/components/elements/EditLabelChipStack.tsx @@ -4,6 +4,7 @@ import { Circle, X } from 'phosphor-react' import { isDarkTheme } from '../../lib/themeUpdater' import { Label } from '../../lib/networking/fragments/labelFragment' import { useMemo } from 'react' +import { theme } from '../tokens/stitches.config' type EditLabelChipStackProps = { labels: Label[] @@ -16,7 +17,7 @@ export function EditLabelChipStack( ): JSX.Element { const isDark = isDarkTheme() - const selectedBorder = isDark ? '#FFEA9F' : '#D9D9D9' + const selectedBorder = isDark ? '#FFEA9F' : '$omnivoreGray' const unSelectedBorder = isDark ? 'transparent' : '#DEDEDE' const colors = useMemo(() => {