diff --git a/src/components/AccountDetails/Copy.tsx b/src/components/AccountDetails/Copy.tsx index c1b3cba828..27569b11c4 100644 --- a/src/components/AccountDetails/Copy.tsx +++ b/src/components/AccountDetails/Copy.tsx @@ -6,7 +6,7 @@ import styled from 'styled-components/macro' import { LinkStyledButton } from 'theme' const CopyIcon = styled(LinkStyledButton)` - color: ${({ color, theme }) => color || theme.text3}; + color: ${({ color, theme }) => color || theme.deprecated_text3}; flex-shrink: 0; display: flex; text-decoration: none; @@ -14,7 +14,7 @@ const CopyIcon = styled(LinkStyledButton)` :active, :focus { text-decoration: none; - color: ${({ color, theme }) => color || theme.text2}; + color: ${({ color, theme }) => color || theme.deprecated_text2}; } ` const StyledText = styled.span` diff --git a/src/components/AccountDetails/Transaction.tsx b/src/components/AccountDetails/Transaction.tsx index 3fb822021f..958cc4087b 100644 --- a/src/components/AccountDetails/Transaction.tsx +++ b/src/components/AccountDetails/Transaction.tsx @@ -27,11 +27,12 @@ const TransactionState = styled(ExternalLink)<{ pending: boolean; success?: bool padding: 0.25rem 0rem; font-weight: 500; font-size: 0.825rem; - color: ${({ theme }) => theme.primary1}; + color: ${({ theme }) => theme.deprecated_primary1}; ` const IconWrapper = styled.div<{ pending: boolean; success?: boolean }>` - color: ${({ pending, success, theme }) => (pending ? theme.primary1 : success ? theme.green1 : theme.red1)}; + color: ${({ pending, success, theme }) => + pending ? theme.deprecated_primary1 : success ? theme.deprecated_green1 : theme.deprecated_red1}; ` export default function Transaction({ hash }: { hash: string }) { diff --git a/src/components/AccountDetails/index.tsx b/src/components/AccountDetails/index.tsx index 8f85236ac5..50c961db37 100644 --- a/src/components/AccountDetails/index.tsx +++ b/src/components/AccountDetails/index.tsx @@ -24,7 +24,7 @@ const HeaderRow = styled.div` ${({ theme }) => theme.flexRowNoWrap}; padding: 1rem 1rem; font-weight: 500; - color: ${(props) => (props.color === 'blue' ? ({ theme }) => theme.primary1 : 'inherit')}; + color: ${(props) => (props.color === 'blue' ? ({ theme }) => theme.deprecated_primary1 : 'inherit')}; ${({ theme }) => theme.mediaWidth.upToMedium` padding: 1rem; `}; @@ -52,7 +52,7 @@ const UpperSection = styled.div` const InfoCard = styled.div` padding: 1rem; - border: 1px solid ${({ theme }) => theme.bg3}; + border: 1px solid ${({ theme }) => theme.deprecated_bg3}; border-radius: 20px; position: relative; display: grid; @@ -65,7 +65,7 @@ const AccountGroupingRow = styled.div` justify-content: space-between; align-items: center; font-weight: 400; - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; div { ${({ theme }) => theme.flexRowNoWrap} @@ -95,14 +95,14 @@ const LowerSection = styled.div` padding: 1.5rem; flex-grow: 1; overflow: auto; - background-color: ${({ theme }) => theme.bg2}; + background-color: ${({ theme }) => theme.deprecated_bg2}; border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; h5 { margin: 0; font-weight: 400; - color: ${({ theme }) => theme.text3}; + color: ${({ theme }) => theme.deprecated_text3}; } ` @@ -130,12 +130,12 @@ const AccountControl = styled.div` const AddressLink = styled(ExternalLink)<{ hasENS: boolean; isENS: boolean }>` font-size: 0.825rem; - color: ${({ theme }) => theme.text3}; + color: ${({ theme }) => theme.deprecated_text3}; margin-left: 1rem; font-size: 0.825rem; display: flex; :hover { - color: ${({ theme }) => theme.text2}; + color: ${({ theme }) => theme.deprecated_text2}; } ` @@ -151,7 +151,7 @@ const CloseIcon = styled.div` const CloseColor = styled(Close)` path { - stroke: ${({ theme }) => theme.text4}; + stroke: ${({ theme }) => theme.deprecated_text4}; } ` @@ -159,7 +159,7 @@ const WalletName = styled.div` width: initial; font-size: 0.825rem; font-weight: 500; - color: ${({ theme }) => theme.text3}; + color: ${({ theme }) => theme.deprecated_text3}; ` const TransactionListWrapper = styled.div` @@ -351,7 +351,7 @@ export default function AccountDetails({ ) : ( - + Your transactions will appear here... diff --git a/src/components/AddressInputPanel/index.tsx b/src/components/AddressInputPanel/index.tsx index 345f5474cf..9f0eaca6e0 100644 --- a/src/components/AddressInputPanel/index.tsx +++ b/src/components/AddressInputPanel/index.tsx @@ -15,7 +15,7 @@ const InputPanel = styled.div` ${({ theme }) => theme.flexColumnNoWrap} position: relative; border-radius: 1.25rem; - background-color: ${({ theme }) => theme.bg1}; + background-color: ${({ theme }) => theme.deprecated_bg1}; z-index: 1; width: 100%; ` @@ -25,10 +25,10 @@ const ContainerRow = styled.div<{ error: boolean }>` justify-content: center; align-items: center; border-radius: 1.25rem; - border: 1px solid ${({ error, theme }) => (error ? theme.red1 : theme.bg2)}; + border: 1px solid ${({ error, theme }) => (error ? theme.deprecated_red1 : theme.deprecated_bg2)}; transition: border-color 300ms ${({ error }) => (error ? 'step-end' : 'step-start')}, color 500ms ${({ error }) => (error ? 'step-end' : 'step-start')}; - background-color: ${({ theme }) => theme.bg1}; + background-color: ${({ theme }) => theme.deprecated_bg1}; ` const InputContainer = styled.div` @@ -42,15 +42,15 @@ const Input = styled.input<{ error?: boolean }>` border: none; flex: 1 1 auto; width: 0; - background-color: ${({ theme }) => theme.bg1}; + background-color: ${({ theme }) => theme.deprecated_bg1}; transition: color 300ms ${({ error }) => (error ? 'step-end' : 'step-start')}; - color: ${({ error, theme }) => (error ? theme.red1 : theme.text1)}; + color: ${({ error, theme }) => (error ? theme.deprecated_red1 : theme.deprecated_text1)}; overflow: hidden; text-overflow: ellipsis; font-weight: 500; width: 100%; ::placeholder { - color: ${({ theme }) => theme.text4}; + color: ${({ theme }) => theme.deprecated_text4}; } padding: 0px; -webkit-appearance: textfield; @@ -65,7 +65,7 @@ const Input = styled.input<{ error?: boolean }>` } ::placeholder { - color: ${({ theme }) => theme.text4}; + color: ${({ theme }) => theme.deprecated_text4}; } ` @@ -108,7 +108,7 @@ export default function AddressInputPanel({ - + {label ?? Recipient} {address && chainId && ( diff --git a/src/components/Badge/RangeBadge.tsx b/src/components/Badge/RangeBadge.tsx index 32c8990965..0e2ce2ee4f 100644 --- a/src/components/Badge/RangeBadge.tsx +++ b/src/components/Badge/RangeBadge.tsx @@ -17,7 +17,7 @@ const BadgeText = styled.div` ` const ActiveDot = styled.span` - background-color: ${({ theme }) => theme.success}; + background-color: ${({ theme }) => theme.deprecated_success}; border-radius: 50%; height: 8px; width: 8px; diff --git a/src/components/Badge/index.tsx b/src/components/Badge/index.tsx index 4a071f29ec..4ecc084fe8 100644 --- a/src/components/Badge/index.tsx +++ b/src/components/Badge/index.tsx @@ -20,24 +20,24 @@ interface BadgeProps { function pickBackgroundColor(variant: BadgeVariant | undefined, theme: DefaultTheme): Color { switch (variant) { case BadgeVariant.NEGATIVE: - return theme.error + return theme.deprecated_error case BadgeVariant.POSITIVE: - return theme.success + return theme.deprecated_success case BadgeVariant.PRIMARY: - return theme.primary1 + return theme.deprecated_primary1 case BadgeVariant.WARNING: - return theme.warning + return theme.deprecated_warning case BadgeVariant.WARNING_OUTLINE: return 'transparent' default: - return theme.bg2 + return theme.deprecated_bg2 } } function pickBorder(variant: BadgeVariant | undefined, theme: DefaultTheme): string { switch (variant) { case BadgeVariant.WARNING_OUTLINE: - return `1px solid ${theme.warning}` + return `1px solid ${theme.deprecated_warning}` default: return 'unset' } @@ -46,15 +46,15 @@ function pickBorder(variant: BadgeVariant | undefined, theme: DefaultTheme): str function pickFontColor(variant: BadgeVariant | undefined, theme: DefaultTheme): string { switch (variant) { case BadgeVariant.NEGATIVE: - return readableColor(theme.error) + return readableColor(theme.deprecated_error) case BadgeVariant.POSITIVE: - return readableColor(theme.success) + return readableColor(theme.deprecated_success) case BadgeVariant.WARNING: - return readableColor(theme.warning) + return readableColor(theme.deprecated_warning) case BadgeVariant.WARNING_OUTLINE: - return theme.warning + return theme.deprecated_warning default: - return readableColor(theme.bg2) + return readableColor(theme.deprecated_bg2) } } diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsx index 38414fa35e..16f80158d2 100644 --- a/src/components/Button/index.tsx +++ b/src/components/Button/index.tsx @@ -23,7 +23,7 @@ export const BaseButton = styled(RebassButton)< border-radius: ${({ $borderRadius }) => $borderRadius ?? '20px'}; outline: none; border: 1px solid transparent; - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; text-decoration: none; display: flex; justify-content: center; @@ -52,24 +52,24 @@ export const BaseButton = styled(RebassButton)< ` export const ButtonPrimary = styled(BaseButton)` - background-color: ${({ theme }) => theme.primary1}; + background-color: ${({ theme }) => theme.deprecated_primary1}; color: white; &:focus { - box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.05, theme.primary1)}; - background-color: ${({ theme }) => darken(0.05, theme.primary1)}; + box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.05, theme.deprecated_primary1)}; + background-color: ${({ theme }) => darken(0.05, theme.deprecated_primary1)}; } &:hover { - background-color: ${({ theme }) => darken(0.05, theme.primary1)}; + background-color: ${({ theme }) => darken(0.05, theme.deprecated_primary1)}; } &:active { - box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.1, theme.primary1)}; - background-color: ${({ theme }) => darken(0.1, theme.primary1)}; + box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.1, theme.deprecated_primary1)}; + background-color: ${({ theme }) => darken(0.1, theme.deprecated_primary1)}; } &:disabled { background-color: ${({ theme, altDisabledStyle, disabled }) => - altDisabledStyle ? (disabled ? theme.primary1 : theme.bg2) : theme.bg2}; + altDisabledStyle ? (disabled ? theme.deprecated_primary1 : theme.deprecated_bg2) : theme.deprecated_bg2}; color: ${({ altDisabledStyle, disabled, theme }) => - altDisabledStyle ? (disabled ? theme.white : theme.text2) : theme.text2}; + altDisabledStyle ? (disabled ? theme.deprecated_white : theme.deprecated_text2) : theme.deprecated_text2}; cursor: auto; box-shadow: none; border: 1px solid transparent; @@ -78,26 +78,26 @@ export const ButtonPrimary = styled(BaseButton)` ` export const ButtonLight = styled(BaseButton)` - background-color: ${({ theme }) => theme.primary5}; - color: ${({ theme }) => theme.primaryText1}; + background-color: ${({ theme }) => theme.deprecated_primary5}; + color: ${({ theme }) => theme.deprecated_primaryText1}; font-size: 16px; font-weight: 500; &:focus { - box-shadow: 0 0 0 1pt ${({ theme, disabled }) => !disabled && darken(0.03, theme.primary5)}; - background-color: ${({ theme, disabled }) => !disabled && darken(0.03, theme.primary5)}; + box-shadow: 0 0 0 1pt ${({ theme, disabled }) => !disabled && darken(0.03, theme.deprecated_primary5)}; + background-color: ${({ theme, disabled }) => !disabled && darken(0.03, theme.deprecated_primary5)}; } &:hover { - background-color: ${({ theme, disabled }) => !disabled && darken(0.03, theme.primary5)}; + background-color: ${({ theme, disabled }) => !disabled && darken(0.03, theme.deprecated_primary5)}; } &:active { - box-shadow: 0 0 0 1pt ${({ theme, disabled }) => !disabled && darken(0.05, theme.primary5)}; - background-color: ${({ theme, disabled }) => !disabled && darken(0.05, theme.primary5)}; + box-shadow: 0 0 0 1pt ${({ theme, disabled }) => !disabled && darken(0.05, theme.deprecated_primary5)}; + background-color: ${({ theme, disabled }) => !disabled && darken(0.05, theme.deprecated_primary5)}; } :disabled { opacity: 0.4; :hover { cursor: auto; - background-color: ${({ theme }) => theme.primary5}; + background-color: ${({ theme }) => theme.deprecated_primary5}; box-shadow: none; border: 1px solid transparent; outline: none; @@ -106,37 +106,37 @@ export const ButtonLight = styled(BaseButton)` ` export const ButtonGray = styled(BaseButton)` - background-color: ${({ theme }) => theme.bg1}; - color: ${({ theme }) => theme.text2}; + background-color: ${({ theme }) => theme.deprecated_bg1}; + color: ${({ theme }) => theme.deprecated_text2}; font-size: 16px; font-weight: 500; &:hover { - background-color: ${({ theme, disabled }) => !disabled && darken(0.05, theme.bg2)}; + background-color: ${({ theme, disabled }) => !disabled && darken(0.05, theme.deprecated_bg2)}; } &:active { - background-color: ${({ theme, disabled }) => !disabled && darken(0.1, theme.bg2)}; + background-color: ${({ theme, disabled }) => !disabled && darken(0.1, theme.deprecated_bg2)}; } ` export const ButtonSecondary = styled(BaseButton)` - border: 1px solid ${({ theme }) => theme.primary4}; - color: ${({ theme }) => theme.primary1}; + border: 1px solid ${({ theme }) => theme.deprecated_primary4}; + color: ${({ theme }) => theme.deprecated_primary1}; background-color: transparent; font-size: 16px; border-radius: 12px; padding: ${({ padding }) => (padding ? padding : '10px')}; &:focus { - box-shadow: 0 0 0 1pt ${({ theme }) => theme.primary4}; - border: 1px solid ${({ theme }) => theme.primary3}; + box-shadow: 0 0 0 1pt ${({ theme }) => theme.deprecated_primary4}; + border: 1px solid ${({ theme }) => theme.deprecated_primary3}; } &:hover { - border: 1px solid ${({ theme }) => theme.primary3}; + border: 1px solid ${({ theme }) => theme.deprecated_primary3}; } &:active { - box-shadow: 0 0 0 1pt ${({ theme }) => theme.primary4}; - border: 1px solid ${({ theme }) => theme.primary3}; + box-shadow: 0 0 0 1pt ${({ theme }) => theme.deprecated_primary4}; + border: 1px solid ${({ theme }) => theme.deprecated_primary3}; } &:disabled { opacity: 50%; @@ -148,17 +148,17 @@ export const ButtonSecondary = styled(BaseButton)` ` export const ButtonOutlined = styled(BaseButton)` - border: 1px solid ${({ theme }) => theme.bg2}; + border: 1px solid ${({ theme }) => theme.deprecated_bg2}; background-color: transparent; - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; &:focus { - box-shadow: 0 0 0 1px ${({ theme }) => theme.bg4}; + box-shadow: 0 0 0 1px ${({ theme }) => theme.deprecated_bg4}; } &:hover { - box-shadow: 0 0 0 1px ${({ theme }) => theme.bg4}; + box-shadow: 0 0 0 1px ${({ theme }) => theme.deprecated_bg4}; } &:active { - box-shadow: 0 0 0 1px ${({ theme }) => theme.bg4}; + box-shadow: 0 0 0 1px ${({ theme }) => theme.deprecated_bg4}; } &:disabled { opacity: 50%; @@ -167,21 +167,21 @@ export const ButtonOutlined = styled(BaseButton)` ` export const ButtonYellow = styled(BaseButton)` - background-color: ${({ theme }) => theme.yellow3}; + background-color: ${({ theme }) => theme.deprecated_yellow3}; color: white; &:focus { - box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.05, theme.yellow3)}; - background-color: ${({ theme }) => darken(0.05, theme.yellow3)}; + box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.05, theme.deprecated_yellow3)}; + background-color: ${({ theme }) => darken(0.05, theme.deprecated_yellow3)}; } &:hover { - background-color: ${({ theme }) => darken(0.05, theme.yellow3)}; + background-color: ${({ theme }) => darken(0.05, theme.deprecated_yellow3)}; } &:active { - box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.1, theme.yellow3)}; - background-color: ${({ theme }) => darken(0.1, theme.yellow3)}; + box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.1, theme.deprecated_yellow3)}; + background-color: ${({ theme }) => darken(0.1, theme.deprecated_yellow3)}; } &:disabled { - background-color: ${({ theme }) => theme.yellow3}; + background-color: ${({ theme }) => theme.deprecated_yellow3}; opacity: 50%; cursor: auto; } @@ -189,7 +189,7 @@ export const ButtonYellow = styled(BaseButton)` export const ButtonEmpty = styled(BaseButton)` background-color: transparent; - color: ${({ theme }) => theme.primary1}; + color: ${({ theme }) => theme.deprecated_primary1}; display: flex; justify-content: center; align-items: center; @@ -232,39 +232,39 @@ export const ButtonText = styled(BaseButton)` ` const ButtonConfirmedStyle = styled(BaseButton)` - background-color: ${({ theme }) => theme.bg3}; - color: ${({ theme }) => theme.text1}; - /* border: 1px solid ${({ theme }) => theme.green1}; */ + background-color: ${({ theme }) => theme.deprecated_bg3}; + color: ${({ theme }) => theme.deprecated_text1}; + /* border: 1px solid ${({ theme }) => theme.deprecated_green1}; */ &:disabled { opacity: 50%; - background-color: ${({ theme }) => theme.bg2}; - color: ${({ theme }) => theme.text2}; + background-color: ${({ theme }) => theme.deprecated_bg2}; + color: ${({ theme }) => theme.deprecated_text2}; cursor: auto; } ` const ButtonErrorStyle = styled(BaseButton)` - background-color: ${({ theme }) => theme.red1}; - border: 1px solid ${({ theme }) => theme.red1}; + background-color: ${({ theme }) => theme.deprecated_red1}; + border: 1px solid ${({ theme }) => theme.deprecated_red1}; &:focus { - box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.05, theme.red1)}; - background-color: ${({ theme }) => darken(0.05, theme.red1)}; + box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.05, theme.deprecated_red1)}; + background-color: ${({ theme }) => darken(0.05, theme.deprecated_red1)}; } &:hover { - background-color: ${({ theme }) => darken(0.05, theme.red1)}; + background-color: ${({ theme }) => darken(0.05, theme.deprecated_red1)}; } &:active { - box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.1, theme.red1)}; - background-color: ${({ theme }) => darken(0.1, theme.red1)}; + box-shadow: 0 0 0 1pt ${({ theme }) => darken(0.1, theme.deprecated_red1)}; + background-color: ${({ theme }) => darken(0.1, theme.deprecated_red1)}; } &:disabled { opacity: 50%; cursor: auto; box-shadow: none; - background-color: ${({ theme }) => theme.red1}; - border: 1px solid ${({ theme }) => theme.red1}; + background-color: ${({ theme }) => theme.deprecated_red1}; + border: 1px solid ${({ theme }) => theme.deprecated_red1}; } ` @@ -312,14 +312,14 @@ export function ButtonDropdownLight({ disabled = false, children, ...rest }: { d const ActiveOutlined = styled(ButtonOutlined)` border: 1px solid; - border-color: ${({ theme }) => theme.primary1}; + border-color: ${({ theme }) => theme.deprecated_primary1}; ` const Circle = styled.div` height: 17px; width: 17px; border-radius: 50%; - background-color: ${({ theme }) => theme.primary1}; + background-color: ${({ theme }) => theme.deprecated_primary1}; display: flex; align-items: center; justify-content: center; @@ -354,7 +354,7 @@ export function ButtonRadioChecked({ active = false, children, ...rest }: { acti {children} - + diff --git a/src/components/Card/index.tsx b/src/components/Card/index.tsx index 723d473ed2..c84e4a30eb 100644 --- a/src/components/Card/index.tsx +++ b/src/components/Card/index.tsx @@ -10,38 +10,38 @@ const Card = styled(Box)<{ width?: string; padding?: string; border?: string; $b export default Card export const LightCard = styled(Card)` - border: 1px solid ${({ theme }) => theme.bg2}; - background-color: ${({ theme }) => theme.bg1}; + border: 1px solid ${({ theme }) => theme.deprecated_bg2}; + background-color: ${({ theme }) => theme.deprecated_bg1}; ` export const LightGreyCard = styled(Card)` - background-color: ${({ theme }) => theme.bg2}; + background-color: ${({ theme }) => theme.deprecated_bg2}; ` export const GreyCard = styled(Card)` - background-color: ${({ theme }) => theme.bg3}; + background-color: ${({ theme }) => theme.deprecated_bg3}; ` export const DarkGreyCard = styled(Card)` - background-color: ${({ theme }) => theme.bg2}; + background-color: ${({ theme }) => theme.deprecated_bg2}; ` export const DarkCard = styled(Card)` - background-color: ${({ theme }) => theme.bg0}; + background-color: ${({ theme }) => theme.deprecated_bg0}; ` export const OutlineCard = styled(Card)` - border: 1px solid ${({ theme }) => theme.bg3}; + border: 1px solid ${({ theme }) => theme.deprecated_bg3}; ` export const YellowCard = styled(Card)` background-color: rgba(243, 132, 30, 0.05); - color: ${({ theme }) => theme.yellow3}; + color: ${({ theme }) => theme.deprecated_yellow3}; font-weight: 500; ` export const BlueCard = styled(Card)` - background-color: ${({ theme }) => theme.primary5}; - color: ${({ theme }) => theme.blue2}; + background-color: ${({ theme }) => theme.deprecated_primary5}; + color: ${({ theme }) => theme.deprecated_blue2}; border-radius: 12px; ` diff --git a/src/components/ConnectedAccountBlocked/index.tsx b/src/components/ConnectedAccountBlocked/index.tsx index 5c31273746..91f6c69223 100644 --- a/src/components/ConnectedAccountBlocked/index.tsx +++ b/src/components/ConnectedAccountBlocked/index.tsx @@ -16,7 +16,7 @@ const ContentWrapper = styled(Column)` const WarningIcon = styled(AlertOctagon)` min-height: 22px; min-width: 22px; - color: ${({ theme }) => theme.warning}; + color: ${({ theme }) => theme.deprecated_warning}; ` const Copy = styled(CopyHelper)` font-size: 12px; @@ -49,7 +49,7 @@ export default function ConnectedAccountBlocked(props: ConnectedAccountBlockedPr If you believe this is an error, please send an email including your address to {' '} - + compliance@uniswap.org diff --git a/src/components/CurrencyInputPanel/FiatValue.tsx b/src/components/CurrencyInputPanel/FiatValue.tsx index 8467f7829b..f0fc108ff4 100644 --- a/src/components/CurrencyInputPanel/FiatValue.tsx +++ b/src/components/CurrencyInputPanel/FiatValue.tsx @@ -20,24 +20,24 @@ export function FiatValue({ const theme = useTheme() const priceImpactColor = useMemo(() => { if (!priceImpact) return undefined - if (priceImpact.lessThan('0')) return theme.green1 + if (priceImpact.lessThan('0')) return theme.deprecated_green1 const severity = warningSeverity(priceImpact) - if (severity < 1) return theme.text3 - if (severity < 3) return theme.yellow1 - return theme.red1 - }, [priceImpact, theme.green1, theme.red1, theme.text3, theme.yellow1]) + if (severity < 1) return theme.deprecated_text3 + if (severity < 3) return theme.deprecated_yellow1 + return theme.deprecated_red1 + }, [priceImpact, theme.deprecated_green1, theme.deprecated_red1, theme.deprecated_text3, theme.deprecated_yellow1]) const p = Number(fiatValue?.toFixed()) const visibleDecimalPlaces = p < 1.05 ? 4 : 2 return ( - + {fiatValue ? ( $ ) : ( diff --git a/src/components/CurrencyInputPanel/index.tsx b/src/components/CurrencyInputPanel/index.tsx index b4f4f44d14..c2ecf9c341 100644 --- a/src/components/CurrencyInputPanel/index.tsx +++ b/src/components/CurrencyInputPanel/index.tsx @@ -26,7 +26,7 @@ const InputPanel = styled.div<{ hideInput?: boolean }>` ${({ theme }) => theme.flexColumnNoWrap} position: relative; border-radius: ${({ hideInput }) => (hideInput ? '16px' : '20px')}; - background-color: ${({ theme, hideInput }) => (hideInput ? 'transparent' : theme.bg2)}; + background-color: ${({ theme, hideInput }) => (hideInput ? 'transparent' : theme.deprecated_bg2)}; z-index: 1; width: ${({ hideInput }) => (hideInput ? '100%' : 'initial')}; transition: height 1s ease; @@ -38,7 +38,7 @@ const FixedContainer = styled.div` height: 100%; position: absolute; border-radius: 20px; - background-color: ${({ theme }) => theme.bg2}; + background-color: ${({ theme }) => theme.deprecated_bg2}; display: flex; align-items: center; justify-content: center; @@ -47,21 +47,21 @@ const FixedContainer = styled.div` const Container = styled.div<{ hideInput: boolean }>` border-radius: ${({ hideInput }) => (hideInput ? '16px' : '20px')}; - border: 1px solid ${({ theme }) => theme.bg0}; - background-color: ${({ theme }) => theme.bg1}; + border: 1px solid ${({ theme }) => theme.deprecated_bg0}; + background-color: ${({ theme }) => theme.deprecated_bg1}; width: ${({ hideInput }) => (hideInput ? '100%' : 'initial')}; :focus, :hover { - border: 1px solid ${({ theme, hideInput }) => (hideInput ? ' transparent' : theme.bg3)}; + border: 1px solid ${({ theme, hideInput }) => (hideInput ? ' transparent' : theme.deprecated_bg3)}; } ` const CurrencySelect = styled(ButtonGray)<{ visible: boolean; selected: boolean; hideInput?: boolean }>` align-items: center; - background-color: ${({ selected, theme }) => (selected ? theme.bg2 : theme.primary1)}; + background-color: ${({ selected, theme }) => (selected ? theme.deprecated_bg2 : theme.deprecated_primary1)}; box-shadow: ${({ selected }) => (selected ? 'none' : '0px 6px 10px rgba(0, 0, 0, 0.075)')}; box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.075); - color: ${({ selected, theme }) => (selected ? theme.text1 : theme.white)}; + color: ${({ selected, theme }) => (selected ? theme.deprecated_text1 : theme.deprecated_white)}; cursor: pointer; border-radius: 16px; outline: none; @@ -76,7 +76,8 @@ const CurrencySelect = styled(ButtonGray)<{ visible: boolean; selected: boolean; margin-left: ${({ hideInput }) => (hideInput ? '0' : '12px')}; :focus, :hover { - background-color: ${({ selected, theme }) => (selected ? theme.bg3 : darken(0.05, theme.primary1))}; + background-color: ${({ selected, theme }) => + selected ? theme.deprecated_bg3 : darken(0.05, theme.deprecated_primary1)}; } visibility: ${({ visible }) => (visible ? 'visible' : 'hidden')}; ` @@ -91,13 +92,13 @@ const InputRow = styled.div<{ selected: boolean }>` const LabelRow = styled.div` ${({ theme }) => theme.flexRowNoWrap} align-items: center; - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; font-size: 0.75rem; line-height: 1rem; padding: 0 1rem 1rem; span:hover { cursor: pointer; - color: ${({ theme }) => darken(0.2, theme.text2)}; + color: ${({ theme }) => darken(0.2, theme.deprecated_text2)}; } ` @@ -118,7 +119,7 @@ const StyledDropDown = styled(DropDown)<{ selected: boolean }>` height: 35%; path { - stroke: ${({ selected, theme }) => (selected ? theme.text1 : theme.white)}; + stroke: ${({ selected, theme }) => (selected ? theme.deprecated_text1 : theme.deprecated_white)}; stroke-width: 1.5px; } ` @@ -130,10 +131,10 @@ const StyledTokenName = styled.span<{ active?: boolean }>` const StyledBalanceMax = styled.button<{ disabled?: boolean }>` background-color: transparent; - background-color: ${({ theme }) => theme.primary5}; + background-color: ${({ theme }) => theme.deprecated_primary5}; border: none; border-radius: 12px; - color: ${({ theme }) => theme.primary1}; + color: ${({ theme }) => theme.deprecated_primary1}; cursor: pointer; font-size: 11px; font-weight: 500; @@ -281,7 +282,7 @@ export default function CurrencyInputPanel({ ` ` const CodeBlockWrapper = styled.div` - background: ${({ theme }) => theme.bg0}; + background: ${({ theme }) => theme.deprecated_bg0}; overflow: auto; white-space: pre; box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 24px 32px rgba(0, 0, 0, 0.01); border-radius: 24px; padding: 18px 24px; - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; ` const LinkWrapper = styled.div` - color: ${({ theme }) => theme.blue1}; + color: ${({ theme }) => theme.deprecated_blue1}; padding: 6px 24px; ` diff --git a/src/components/FeeSelector/index.tsx b/src/components/FeeSelector/index.tsx index 722557ff5e..2dbd5204cc 100644 --- a/src/components/FeeSelector/index.tsx +++ b/src/components/FeeSelector/index.tsx @@ -34,8 +34,8 @@ const pulse = (color: string) => keyframes` } ` const FocusedOutlineCard = styled(Card)<{ pulsing: boolean }>` - border: 1px solid ${({ theme }) => theme.bg2}; - animation: ${({ pulsing, theme }) => pulsing && pulse(theme.primary1)} 0.6s linear; + border: 1px solid ${({ theme }) => theme.deprecated_bg2}; + animation: ${({ pulsing, theme }) => pulsing && pulse(theme.deprecated_primary1)} 0.6s linear; align-self: center; ` diff --git a/src/components/Header/ChainConnectivityWarning.tsx b/src/components/Header/ChainConnectivityWarning.tsx index 2a57dbb353..a4cd25690f 100644 --- a/src/components/Header/ChainConnectivityWarning.tsx +++ b/src/components/Header/ChainConnectivityWarning.tsx @@ -7,14 +7,14 @@ import styled from 'styled-components/macro' import { ExternalLink, MEDIA_WIDTHS } from 'theme' const BodyRow = styled.div` - color: ${({ theme }) => theme.black}; + color: ${({ theme }) => theme.deprecated_black}; font-size: 12px; ` const CautionIcon = styled(AlertOctagon)` - color: ${({ theme }) => theme.black}; + color: ${({ theme }) => theme.deprecated_black}; ` const Link = styled(ExternalLink)` - color: ${({ theme }) => theme.black}; + color: ${({ theme }) => theme.deprecated_black}; text-decoration: underline; ` const TitleRow = styled.div` @@ -31,7 +31,7 @@ const TitleText = styled.div` margin: 0px 12px; ` const Wrapper = styled.div` - background-color: ${({ theme }) => theme.yellow3}; + background-color: ${({ theme }) => theme.deprecated_yellow3}; border-radius: 12px; bottom: 60px; display: none; diff --git a/src/components/Header/NetworkSelector.tsx b/src/components/Header/NetworkSelector.tsx index 7851f9f0b5..b582cee356 100644 --- a/src/components/Header/NetworkSelector.tsx +++ b/src/components/Header/NetworkSelector.tsx @@ -25,7 +25,7 @@ const ActiveRowLinkList = styled.div` padding: 0 8px; & > a { align-items: center; - color: ${({ theme }) => theme.text2}; + color: ${({ theme }) => theme.deprecated_text2}; display: flex; flex-direction: row; font-size: 14px; @@ -41,14 +41,14 @@ const ActiveRowLinkList = styled.div` } ` const ActiveRowWrapper = styled.div` - background-color: ${({ theme }) => theme.bg1}; + background-color: ${({ theme }) => theme.deprecated_bg1}; border-radius: 8px; cursor: pointer; padding: 8px; width: 100%; ` const FlyoutHeader = styled.div` - color: ${({ theme }) => theme.text2}; + color: ${({ theme }) => theme.deprecated_text2}; font-weight: 400; ` const FlyoutMenu = styled.div` @@ -63,7 +63,7 @@ const FlyoutMenu = styled.div` ` const FlyoutMenuContents = styled.div` align-items: flex-start; - background-color: ${({ theme }) => theme.bg0}; + background-color: ${({ theme }) => theme.deprecated_bg0}; box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 24px 32px rgba(0, 0, 0, 0.01); border-radius: 20px; @@ -78,7 +78,7 @@ const FlyoutMenuContents = styled.div` ` const FlyoutRow = styled.div<{ active: boolean }>` align-items: center; - background-color: ${({ active, theme }) => (active ? theme.bg1 : 'transparent')}; + background-color: ${({ active, theme }) => (active ? theme.deprecated_bg1 : 'transparent')}; border-radius: 8px; cursor: pointer; display: flex; @@ -89,7 +89,7 @@ const FlyoutRow = styled.div<{ active: boolean }>` width: 100%; ` const FlyoutRowActiveIndicator = styled.div` - background-color: ${({ theme }) => theme.green1}; + background-color: ${({ theme }) => theme.deprecated_green1}; border-radius: 50%; height: 9px; width: 9px; @@ -123,10 +123,10 @@ const SelectorLabel = styled(NetworkLabel)` ` const SelectorControls = styled.div` align-items: center; - background-color: ${({ theme }) => theme.bg0}; - border: 2px solid ${({ theme }) => theme.bg0}; + background-color: ${({ theme }) => theme.deprecated_bg0}; + border: 2px solid ${({ theme }) => theme.deprecated_bg0}; border-radius: 16px; - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; display: flex; font-weight: 500; justify-content: space-between; diff --git a/src/components/Header/Polling.tsx b/src/components/Header/Polling.tsx index 6dded8eb58..1c5a3965ef 100644 --- a/src/components/Header/Polling.tsx +++ b/src/components/Header/Polling.tsx @@ -24,7 +24,7 @@ const StyledPolling = styled.div<{ warning: boolean }>` right: 0; bottom: 0; padding: 1rem; - color: ${({ theme, warning }) => (warning ? theme.yellow3 : theme.green1)}; + color: ${({ theme, warning }) => (warning ? theme.deprecated_yellow3 : theme.deprecated_green1)}; transition: 250ms ease color; ${({ theme }) => theme.mediaWidth.upToMedium` @@ -53,12 +53,12 @@ const StyledPollingDot = styled.div<{ warning: boolean }>` min-width: 8px; border-radius: 50%; position: relative; - background-color: ${({ theme, warning }) => (warning ? theme.yellow3 : theme.green1)}; + background-color: ${({ theme, warning }) => (warning ? theme.deprecated_yellow3 : theme.deprecated_green1)}; transition: 250ms ease background-color; ` const StyledGasDot = styled.div` - background-color: ${({ theme }) => theme.text3}; + background-color: ${({ theme }) => theme.deprecated_text3}; border-radius: 50%; height: 4px; min-height: 4px; @@ -84,7 +84,7 @@ const Spinner = styled.div<{ warning: boolean }>` border-top: 1px solid transparent; border-right: 1px solid transparent; border-bottom: 1px solid transparent; - border-left: 2px solid ${({ theme, warning }) => (warning ? theme.yellow3 : theme.green1)}; + border-left: 2px solid ${({ theme, warning }) => (warning ? theme.deprecated_yellow3 : theme.deprecated_green1)}; background: transparent; width: 14px; height: 14px; @@ -143,7 +143,7 @@ export default function Polling() { {priceGwei ? ( - + diff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsx index 666da28064..a1dfffdc83 100644 --- a/src/components/Header/index.tsx +++ b/src/components/Header/index.tsx @@ -39,10 +39,10 @@ const HeaderFrame = styled.div<{ showBackground: boolean }>` z-index: 21; position: relative; /* Background slide effect on scroll. */ - background-image: ${({ theme }) => `linear-gradient(to bottom, transparent 50%, ${theme.bg0} 50% )}}`}; + background-image: ${({ theme }) => `linear-gradient(to bottom, transparent 50%, ${theme.deprecated_bg0} 50% )}}`}; background-position: ${({ showBackground }) => (showBackground ? '0 -100%' : '0 0')}; background-size: 100% 200%; - box-shadow: 0px 0px 0px 1px ${({ theme, showBackground }) => (showBackground ? theme.bg2 : 'transparent;')}; + box-shadow: 0px 0px 0px 1px ${({ theme, showBackground }) => (showBackground ? theme.deprecated_bg2 : 'transparent;')}; transition: background-position 0.1s, box-shadow 0.1s; background-blend-mode: hard-light; @@ -88,7 +88,7 @@ const HeaderElement = styled.div` const HeaderLinks = styled(Row)` justify-self: center; - background-color: ${({ theme }) => theme.bg0}; + background-color: ${({ theme }) => theme.deprecated_bg0}; width: fit-content; padding: 2px; border-radius: 16px; @@ -112,8 +112,8 @@ const HeaderLinks = styled(Row)` bottom: 0; right: 50%; transform: translate(50%,-50%); margin: 0 auto; - background-color: ${({ theme }) => theme.bg0}; - border: 1px solid ${({ theme }) => theme.bg2}; + background-color: ${({ theme }) => theme.deprecated_bg0}; + border: 1px solid ${({ theme }) => theme.deprecated_bg2}; box-shadow: 0px 6px 10px rgb(0 0 0 / 2%); `}; ` @@ -122,7 +122,7 @@ const AccountElement = styled.div<{ active: boolean }>` display: flex; flex-direction: row; align-items: center; - background-color: ${({ theme, active }) => (!active ? theme.bg0 : theme.bg0)}; + background-color: ${({ theme, active }) => (!active ? theme.deprecated_bg0 : theme.deprecated_bg0)}; border-radius: 16px; white-space: nowrap; width: 100%; @@ -138,7 +138,7 @@ const UNIAmount = styled(AccountElement)` padding: 4px 8px; height: 36px; font-weight: 500; - background-color: ${({ theme }) => theme.bg3}; + background-color: ${({ theme }) => theme.deprecated_bg3}; background: radial-gradient(174.47% 188.91% at 1.84% 0%, #ff007a 0%, #2172e5 100%), #edeef2; ` @@ -196,7 +196,7 @@ const StyledNavLink = styled(NavLink).attrs({ outline: none; cursor: pointer; text-decoration: none; - color: ${({ theme }) => theme.text2}; + color: ${({ theme }) => theme.deprecated_text2}; font-size: 1rem; font-weight: 500; padding: 8px 12px; @@ -207,13 +207,13 @@ const StyledNavLink = styled(NavLink).attrs({ border-radius: 14px; font-weight: 600; justify-content: center; - color: ${({ theme }) => theme.text1}; - background-color: ${({ theme }) => theme.bg1}; + color: ${({ theme }) => theme.deprecated_text1}; + background-color: ${({ theme }) => theme.deprecated_bg1}; } :hover, :focus { - color: ${({ theme }) => darken(0.1, theme.text1)}; + color: ${({ theme }) => darken(0.1, theme.deprecated_text1)}; } ` @@ -226,7 +226,7 @@ const StyledExternalLink = styled(ExternalLink).attrs({ outline: none; cursor: pointer; text-decoration: none; - color: ${({ theme }) => theme.text2}; + color: ${({ theme }) => theme.deprecated_text2}; font-size: 1rem; width: fit-content; margin: 0 12px; @@ -235,12 +235,12 @@ const StyledExternalLink = styled(ExternalLink).attrs({ &.${activeClassName} { border-radius: 14px; font-weight: 600; - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; } :hover, :focus { - color: ${({ theme }) => darken(0.1, theme.text1)}; + color: ${({ theme }) => darken(0.1, theme.deprecated_text1)}; text-decoration: none; } ` @@ -250,7 +250,7 @@ export default function Header() { const userEthBalance = useNativeCurrencyBalances(account ? [account] : [])?.[account ?? ''] const [darkMode] = useDarkModeManager() - const { white, black } = useTheme() + const { deprecated_white, deprecated_black } = useTheme() const toggleClaimModal = useToggleSelfClaimModal() @@ -272,7 +272,7 @@ export default function Header() { <UniIcon> - <Logo fill={darkMode ? white : black} width="24px" height="100%" title="logo" /> + <Logo fill={darkMode ? deprecated_white : deprecated_black} width="24px" height="100%" title="logo" /> <HolidayOrnament /> </UniIcon> diff --git a/src/components/HoverInlineText/index.tsx b/src/components/HoverInlineText/index.tsx index b1c789ab32..411974f9de 100644 --- a/src/components/HoverInlineText/index.tsx +++ b/src/components/HoverInlineText/index.tsx @@ -10,7 +10,7 @@ const TextWrapper = styled.span<{ textColor?: string }>` margin-left: ${({ margin }) => margin && '4px'}; - color: ${({ theme, link, textColor }) => (link ? theme.blue1 : textColor ?? theme.text1)}; + color: ${({ theme, link, textColor }) => (link ? theme.deprecated_blue1 : textColor ?? theme.deprecated_text1)}; font-size: ${({ fontSize }) => fontSize ?? 'inherit'}; @media screen and (max-width: 600px) { diff --git a/src/components/Identicon/index.tsx b/src/components/Identicon/index.tsx index bc68d08554..f2bd518dc0 100644 --- a/src/components/Identicon/index.tsx +++ b/src/components/Identicon/index.tsx @@ -8,7 +8,7 @@ const StyledIdenticon = styled.div` height: 1rem; width: 1rem; border-radius: 1.125rem; - background-color: ${({ theme }) => theme.bg4}; + background-color: ${({ theme }) => theme.deprecated_bg4}; font-size: initial; ` diff --git a/src/components/InputStepCounter/InputStepCounter.tsx b/src/components/InputStepCounter/InputStepCounter.tsx index 5380dca010..6c117fcb53 100644 --- a/src/components/InputStepCounter/InputStepCounter.tsx +++ b/src/components/InputStepCounter/InputStepCounter.tsx @@ -36,9 +36,9 @@ const SmallButton = styled(ButtonGray)` ` const FocusedOutlineCard = styled(OutlineCard)<{ active?: boolean; pulsing?: boolean }>` - border-color: ${({ active, theme }) => active && theme.blue1}; + border-color: ${({ active, theme }) => active && theme.deprecated_blue1}; padding: 12px; - animation: ${({ pulsing, theme }) => pulsing && pulse(theme.blue1)} 0.8s linear; + animation: ${({ pulsing, theme }) => pulsing && pulse(theme.deprecated_blue1)} 0.8s linear; ` const StyledInput = styled(NumericalInput)<{ usePercent?: boolean }>` @@ -58,13 +58,13 @@ const StyledInput = styled(NumericalInput)<{ usePercent?: boolean }>` ` const InputTitle = styled(ThemedText.Small)` - color: ${({ theme }) => theme.text2}; + color: ${({ theme }) => theme.deprecated_text2}; font-size: 12px; font-weight: 500; ` const ButtonLabel = styled(ThemedText.White)<{ disabled: boolean }>` - color: ${({ theme, disabled }) => (disabled ? theme.text2 : theme.text1)} !important; + color: ${({ theme, disabled }) => (disabled ? theme.deprecated_text2 : theme.deprecated_text1)} !important; ` interface StepCounterProps { diff --git a/src/components/LiquidityChartRangeInput/Area.tsx b/src/components/LiquidityChartRangeInput/Area.tsx index ea7953e5e1..b0089db0bb 100644 --- a/src/components/LiquidityChartRangeInput/Area.tsx +++ b/src/components/LiquidityChartRangeInput/Area.tsx @@ -6,8 +6,8 @@ import { ChartEntry } from './types' const Path = styled.path<{ fill: string | undefined }>` opacity: 0.5; - stroke: ${({ fill, theme }) => fill ?? theme.blue2}; - fill: ${({ fill, theme }) => fill ?? theme.blue2}; + stroke: ${({ fill, theme }) => fill ?? theme.deprecated_blue2}; + fill: ${({ fill, theme }) => fill ?? theme.deprecated_blue2}; ` export const Area = ({ diff --git a/src/components/LiquidityChartRangeInput/AxisBottom.tsx b/src/components/LiquidityChartRangeInput/AxisBottom.tsx index 030843c21f..6d162d0f20 100644 --- a/src/components/LiquidityChartRangeInput/AxisBottom.tsx +++ b/src/components/LiquidityChartRangeInput/AxisBottom.tsx @@ -8,7 +8,7 @@ const StyledGroup = styled.g` } text { - color: ${({ theme }) => theme.text2}; + color: ${({ theme }) => theme.deprecated_text2}; transform: translateY(5px); } ` diff --git a/src/components/LiquidityChartRangeInput/Brush.tsx b/src/components/LiquidityChartRangeInput/Brush.tsx index f7a0519b47..420ff2cb0a 100644 --- a/src/components/LiquidityChartRangeInput/Brush.tsx +++ b/src/components/LiquidityChartRangeInput/Brush.tsx @@ -18,7 +18,7 @@ const HandleAccent = styled.path` pointer-events: none; stroke-width: 1.5; - stroke: ${({ theme }) => theme.white}; + stroke: ${({ theme }) => theme.deprecated_white}; opacity: 0.6; ` @@ -28,13 +28,13 @@ const LabelGroup = styled.g<{ visible: boolean }>` ` const TooltipBackground = styled.rect` - fill: ${({ theme }) => theme.bg2}; + fill: ${({ theme }) => theme.deprecated_bg2}; ` const Tooltip = styled.text` text-anchor: middle; font-size: 13px; - fill: ${({ theme }) => theme.text1}; + fill: ${({ theme }) => theme.deprecated_text1}; ` // flips the handles draggers when close to the container edges diff --git a/src/components/LiquidityChartRangeInput/Line.tsx b/src/components/LiquidityChartRangeInput/Line.tsx index 0fe586b9ad..b0843ef564 100644 --- a/src/components/LiquidityChartRangeInput/Line.tsx +++ b/src/components/LiquidityChartRangeInput/Line.tsx @@ -5,7 +5,7 @@ import styled from 'styled-components/macro' const StyledLine = styled.line` opacity: 0.5; stroke-width: 2; - stroke: ${({ theme }) => theme.text1}; + stroke: ${({ theme }) => theme.deprecated_text1}; fill: none; ` diff --git a/src/components/LiquidityChartRangeInput/Zoom.tsx b/src/components/LiquidityChartRangeInput/Zoom.tsx index 830a6103c1..7adcfb9613 100644 --- a/src/components/LiquidityChartRangeInput/Zoom.tsx +++ b/src/components/LiquidityChartRangeInput/Zoom.tsx @@ -18,8 +18,8 @@ const Wrapper = styled.div<{ count: number }>` const Button = styled(ButtonGray)` &:hover { - background-color: ${({ theme }) => theme.bg2}; - color: ${({ theme }) => theme.text1}; + background-color: ${({ theme }) => theme.deprecated_bg2}; + color: ${({ theme }) => theme.deprecated_text1}; } width: 32px; diff --git a/src/components/LiquidityChartRangeInput/index.tsx b/src/components/LiquidityChartRangeInput/index.tsx index df4b77cfa8..c7e25d6749 100644 --- a/src/components/LiquidityChartRangeInput/index.tsx +++ b/src/components/LiquidityChartRangeInput/index.tsx @@ -166,19 +166,19 @@ export default function LiquidityChartRangeInput({ {isUninitialized ? ( Your position will appear here.} - icon={} + icon={} /> ) : isLoading ? ( - } /> + } /> ) : isError ? ( Liquidity data not available.} - icon={} + icon={} /> ) : !formattedData || formattedData === [] || !price ? ( There is no liquidity data.} - icon={} + icon={} /> ) : ( @@ -188,12 +188,12 @@ export default function LiquidityChartRangeInput({ margins={{ top: 10, right: 2, bottom: 20, left: 0 }} styles={{ area: { - selection: theme.blue1, + selection: theme.deprecated_blue1, }, brush: { handle: { - west: saturate(0.1, tokenAColor) ?? theme.red1, - east: saturate(0.1, tokenBColor) ?? theme.blue1, + west: saturate(0.1, tokenAColor) ?? theme.deprecated_red1, + east: saturate(0.1, tokenBColor) ?? theme.deprecated_blue1, }, }, }} diff --git a/src/components/Loader/index.tsx b/src/components/Loader/index.tsx index 6e804dbd7b..dd81525456 100644 --- a/src/components/Loader/index.tsx +++ b/src/components/Loader/index.tsx @@ -14,7 +14,7 @@ const StyledSVG = styled.svg<{ size: string; stroke?: string }>` height: ${({ size }) => size}; width: ${({ size }) => size}; path { - stroke: ${({ stroke, theme }) => stroke ?? theme.primary1}; + stroke: ${({ stroke, theme }) => stroke ?? theme.deprecated_primary1}; } ` diff --git a/src/components/Loader/styled.tsx b/src/components/Loader/styled.tsx index 362f783712..f42f10005d 100644 --- a/src/components/Loader/styled.tsx +++ b/src/components/Loader/styled.tsx @@ -17,9 +17,9 @@ export const LoadingRows = styled.div` animation-fill-mode: both; background: linear-gradient( to left, - ${({ theme }) => theme.bg1} 25%, - ${({ theme }) => theme.bg2} 50%, - ${({ theme }) => theme.bg1} 75% + ${({ theme }) => theme.deprecated_bg1} 25%, + ${({ theme }) => theme.deprecated_bg2} 50%, + ${({ theme }) => theme.deprecated_bg1} 75% ); background-size: 400%; border-radius: 12px; diff --git a/src/components/Logo/index.tsx b/src/components/Logo/index.tsx index 686983fbd7..a5e2fcd248 100644 --- a/src/components/Logo/index.tsx +++ b/src/components/Logo/index.tsx @@ -35,5 +35,5 @@ export default function Logo({ srcs, alt, style, ...rest }: LogoProps) { ) } - return + return } diff --git a/src/components/Menu/index.tsx b/src/components/Menu/index.tsx index b6247077b4..ac9d1a660b 100644 --- a/src/components/Menu/index.tsx +++ b/src/components/Menu/index.tsx @@ -38,7 +38,7 @@ export enum FlyoutAlignment { const StyledMenuIcon = styled(MenuIcon)` path { - stroke: ${({ theme }) => theme.text1}; + stroke: ${({ theme }) => theme.deprecated_text1}; } ` @@ -50,8 +50,8 @@ const StyledMenuButton = styled.button` margin: 0; padding: 0; height: 40px; - background-color: ${({ theme }) => theme.bg0}; - border: 1px solid ${({ theme }) => theme.bg0}; + background-color: ${({ theme }) => theme.deprecated_bg0}; + border: 1px solid ${({ theme }) => theme.deprecated_bg0}; padding: 0.15rem 0.5rem; border-radius: 16px; @@ -59,7 +59,7 @@ const StyledMenuButton = styled.button` :focus { cursor: pointer; outline: none; - border: 1px solid ${({ theme }) => theme.bg3}; + border: 1px solid ${({ theme }) => theme.deprecated_bg3}; } svg { @@ -68,7 +68,7 @@ const StyledMenuButton = styled.button` ` const UNIbutton = styled(ButtonPrimary)` - background-color: ${({ theme }) => theme.bg3}; + background-color: ${({ theme }) => theme.deprecated_bg3}; background: radial-gradient(174.47% 188.91% at 1.84% 0%, #ff007a 0%, #2172e5 100%), #edeef2; border: none; ` @@ -86,10 +86,10 @@ const MenuFlyout = styled.span<{ flyoutAlignment?: FlyoutAlignment }>` min-width: 196px; max-height: 350px; overflow: auto; - background-color: ${({ theme }) => theme.bg1}; + background-color: ${({ theme }) => theme.deprecated_bg1}; box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04), 0px 24px 32px rgba(0, 0, 0, 0.01); - border: 1px solid ${({ theme }) => theme.bg0}; + border: 1px solid ${({ theme }) => theme.deprecated_bg0}; border-radius: 12px; padding: 0.5rem; display: flex; @@ -121,9 +121,9 @@ const MenuItem = styled(ExternalLink)` align-items: center; padding: 0.5rem 0.5rem; justify-content: space-between; - color: ${({ theme }) => theme.text2}; + color: ${({ theme }) => theme.deprecated_text2}; :hover { - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; cursor: pointer; text-decoration: none; } @@ -132,9 +132,9 @@ const MenuItem = styled(ExternalLink)` const InternalMenuItem = styled(Link)` flex: 1; padding: 0.5rem 0.5rem; - color: ${({ theme }) => theme.text2}; + color: ${({ theme }) => theme.deprecated_text2}; :hover { - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; cursor: pointer; text-decoration: none; } @@ -151,7 +151,7 @@ const InternalLinkMenuItem = styled(InternalMenuItem)` justify-content: space-between; text-decoration: none; :hover { - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; cursor: pointer; text-decoration: none; } @@ -170,9 +170,9 @@ const ToggleMenuItem = styled.button` justify-content: space-between; font-size: 1rem; font-weight: 500; - color: ${({ theme }) => theme.text2}; + color: ${({ theme }) => theme.deprecated_text2}; :hover { - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; cursor: pointer; text-decoration: none; } diff --git a/src/components/Modal/index.tsx b/src/components/Modal/index.tsx index 4deedbfae8..8dd1ba17ab 100644 --- a/src/components/Modal/index.tsx +++ b/src/components/Modal/index.tsx @@ -19,7 +19,7 @@ const StyledDialogOverlay = styled(AnimatedDialogOverlay)` align-items: center; justify-content: center; - background-color: ${({ theme }) => theme.modalBG}; + background-color: ${({ theme }) => theme.deprecated_modalBG}; } ` @@ -35,8 +35,8 @@ const StyledDialogContent = styled(({ minHeight, maxHeight, mobile, isOpen, ...r &[data-reach-dialog-content] { margin: 0 0 2rem 0; - background-color: ${({ theme }) => theme.bg0}; - border: 1px solid ${({ theme }) => theme.bg1}; + background-color: ${({ theme }) => theme.deprecated_bg0}; + border: 1px solid ${({ theme }) => theme.deprecated_bg1}; box-shadow: 0 4px 8px 0 ${({ theme }) => transparentize(0.95, theme.shadow1)}; padding: 0px; width: 50vw; diff --git a/src/components/ModalViews/index.tsx b/src/components/ModalViews/index.tsx index b57e830393..85fba41e76 100644 --- a/src/components/ModalViews/index.tsx +++ b/src/components/ModalViews/index.tsx @@ -59,7 +59,7 @@ export function SubmittedView({ - + {children} diff --git a/src/components/NavigationTabs/index.tsx b/src/components/NavigationTabs/index.tsx index 1a09322322..ae1c86c6dd 100644 --- a/src/components/NavigationTabs/index.tsx +++ b/src/components/NavigationTabs/index.tsx @@ -35,18 +35,18 @@ const StyledNavLink = styled(NavLink).attrs({ outline: none; cursor: pointer; text-decoration: none; - color: ${({ theme }) => theme.text3}; + color: ${({ theme }) => theme.deprecated_text3}; font-size: 20px; &.${activeClassName} { border-radius: 12px; font-weight: 500; - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; } :hover, :focus { - color: ${({ theme }) => darken(0.1, theme.text1)}; + color: ${({ theme }) => darken(0.1, theme.deprecated_text1)}; } ` @@ -65,7 +65,7 @@ const ActiveText = styled.div` ` const StyledArrowLeft = styled(ArrowLeft)` - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; ` export function SwapPoolTabs({ active }: { active: 'swap' | 'pool' }) { @@ -134,7 +134,7 @@ export function AddRemoveTabs({ }} flex={children ? '1' : undefined} > - + ` - color: ${({ error, theme }) => (error ? theme.red1 : theme.text1)}; + color: ${({ error, theme }) => (error ? theme.deprecated_red1 : theme.deprecated_text1)}; width: 0; position: relative; font-weight: 500; outline: none; border: none; flex: 1 1 auto; - background-color: ${({ theme }) => theme.bg1}; + background-color: ${({ theme }) => theme.deprecated_bg1}; font-size: ${({ fontSize }) => fontSize ?? '28px'}; text-align: ${({ align }) => align && align}; white-space: nowrap; @@ -35,7 +35,7 @@ const StyledInput = styled.input<{ error?: boolean; fontSize?: string; align?: s } ::placeholder { - color: ${({ theme }) => theme.text4}; + color: ${({ theme }) => theme.deprecated_text4}; } ` diff --git a/src/components/Popover/index.tsx b/src/components/Popover/index.tsx index a1db154e05..3779a2a7c3 100644 --- a/src/components/Popover/index.tsx +++ b/src/components/Popover/index.tsx @@ -10,7 +10,7 @@ const PopoverContainer = styled.div<{ show: boolean }>` visibility: ${(props) => (props.show ? 'visible' : 'hidden')}; opacity: ${(props) => (props.show ? 1 : 0)}; transition: visibility 150ms linear, opacity 150ms linear; - color: ${({ theme }) => theme.text2}; + color: ${({ theme }) => theme.deprecated_text2}; ` const ReferenceElement = styled.div` @@ -30,9 +30,9 @@ const Arrow = styled.div` z-index: 9998; content: ''; - border: 1px solid ${({ theme }) => theme.bg2}; + border: 1px solid ${({ theme }) => theme.deprecated_bg2}; transform: rotate(45deg); - background: ${({ theme }) => theme.bg0}; + background: ${({ theme }) => theme.deprecated_bg0}; } &.arrow-top { diff --git a/src/components/Popups/FailedNetworkSwitchPopup.tsx b/src/components/Popups/FailedNetworkSwitchPopup.tsx index ca92bee935..9930557673 100644 --- a/src/components/Popups/FailedNetworkSwitchPopup.tsx +++ b/src/components/Popups/FailedNetworkSwitchPopup.tsx @@ -20,7 +20,7 @@ export default function FailedNetworkSwitchPopup({ chainId }: { chainId: Support return (
- +
diff --git a/src/components/Popups/PopupItem.tsx b/src/components/Popups/PopupItem.tsx index b74229d806..7f8dc97836 100644 --- a/src/components/Popups/PopupItem.tsx +++ b/src/components/Popups/PopupItem.tsx @@ -22,7 +22,7 @@ const Popup = styled.div` display: inline-block; width: 100%; padding: 1em; - background-color: ${({ theme }) => theme.bg0}; + background-color: ${({ theme }) => theme.deprecated_bg0}; position: relative; border-radius: 10px; padding: 20px; @@ -42,7 +42,7 @@ const Fader = styled.div` left: 0px; width: 100%; height: 2px; - background-color: ${({ theme }) => theme.bg3}; + background-color: ${({ theme }) => theme.deprecated_bg3}; ` const AnimatedFader = animated(Fader) @@ -90,7 +90,7 @@ export default function PopupItem({ return ( - + {popupContent} {removeAfterMs !== null ? : null} diff --git a/src/components/Popups/SurveyPopup.tsx b/src/components/Popups/SurveyPopup.tsx index 520d67bc95..945dc802a1 100644 --- a/src/components/Popups/SurveyPopup.tsx +++ b/src/components/Popups/SurveyPopup.tsx @@ -19,7 +19,7 @@ const Wrapper = styled(AutoColumn)` padding: 18px; max-width: 360px; box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; overflow: hidden; ${({ theme }) => theme.mediaWidth.upToSmall` @@ -90,13 +90,18 @@ export default function SurveyPopup() { - - + + Tell us what you think ↗ - + Take a 10 minute survey to help us improve your experience in the Uniswap app. diff --git a/src/components/Popups/TransactionPopup.tsx b/src/components/Popups/TransactionPopup.tsx index f2efde5b28..32fc2129d5 100644 --- a/src/components/Popups/TransactionPopup.tsx +++ b/src/components/Popups/TransactionPopup.tsx @@ -27,7 +27,11 @@ export default function TransactionPopup({ hash }: { hash: string }) { return (
- {success ? : } + {success ? ( + + ) : ( + + )}
diff --git a/src/components/PositionCard/Sushi.tsx b/src/components/PositionCard/Sushi.tsx index 293fa2ed50..ed368d28e0 100644 --- a/src/components/PositionCard/Sushi.tsx +++ b/src/components/PositionCard/Sushi.tsx @@ -20,7 +20,7 @@ import { FixedHeightRow } from '.' const StyledPositionCard = styled(LightCard)<{ bgColor: any }>` border: none; background: ${({ theme, bgColor }) => - `radial-gradient(91.85% 100% at 1.84% 0%, ${transparentize(0.8, bgColor)} 0%, ${theme.bg3} 100%) `}; + `radial-gradient(91.85% 100% at 1.84% 0%, ${transparentize(0.8, bgColor)} 0%, ${theme.deprecated_bg3} 100%) `}; position: relative; overflow: hidden; ` diff --git a/src/components/PositionCard/V2.tsx b/src/components/PositionCard/V2.tsx index 4c27ca5db1..581977645b 100644 --- a/src/components/PositionCard/V2.tsx +++ b/src/components/PositionCard/V2.tsx @@ -29,7 +29,7 @@ import { FixedHeightRow } from '.' const StyledPositionCard = styled(LightCard)<{ bgColor: any }>` border: none; background: ${({ theme, bgColor }) => - `radial-gradient(91.85% 100% at 1.84% 0%, ${transparentize(0.8, bgColor)} 0%, ${theme.bg3} 100%) `}; + `radial-gradient(91.85% 100% at 1.84% 0%, ${transparentize(0.8, bgColor)} 0%, ${theme.deprecated_bg3} 100%) `}; position: relative; overflow: hidden; ` diff --git a/src/components/PositionCard/index.tsx b/src/components/PositionCard/index.tsx index b74e2da5a5..d72fe80561 100644 --- a/src/components/PositionCard/index.tsx +++ b/src/components/PositionCard/index.tsx @@ -33,7 +33,7 @@ export const FixedHeightRow = styled(RowBetween)` const StyledPositionCard = styled(LightCard)<{ bgColor: any }>` border: none; background: ${({ theme, bgColor }) => - `radial-gradient(91.85% 100% at 1.84% 0%, ${transparentize(0.8, bgColor)} 0%, ${theme.bg3} 100%) `}; + `radial-gradient(91.85% 100% at 1.84% 0%, ${transparentize(0.8, bgColor)} 0%, ${theme.deprecated_bg3} 100%) `}; position: relative; overflow: hidden; ` diff --git a/src/components/PositionListItem/index.tsx b/src/components/PositionListItem/index.tsx index 4f2d1fc72b..c119b06e03 100644 --- a/src/components/PositionListItem/index.tsx +++ b/src/components/PositionListItem/index.tsx @@ -31,12 +31,12 @@ const LinkRow = styled(Link)` flex-direction: column; justify-content: space-between; - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; margin: 8px 0; padding: 16px; text-decoration: none; font-weight: 500; - background-color: ${({ theme }) => theme.bg1}; + background-color: ${({ theme }) => theme.deprecated_bg1}; &:last-of-type { margin: 8px 0 0 0; @@ -45,7 +45,7 @@ const LinkRow = styled(Link)` text-align: center; } :hover { - background-color: ${({ theme }) => theme.bg2}; + background-color: ${({ theme }) => theme.deprecated_bg2}; } @media screen and (min-width: ${MEDIA_WIDTHS.upToSmall}px) { @@ -79,7 +79,7 @@ const RangeLineItem = styled(DataLineItem)` width: 100%; ${({ theme }) => theme.mediaWidth.upToSmall` - background-color: ${({ theme }) => theme.bg2}; + background-color: ${({ theme }) => theme.deprecated_bg2}; border-radius: 12px; padding: 8px 0; `}; @@ -87,7 +87,7 @@ const RangeLineItem = styled(DataLineItem)` const DoubleArrow = styled.span` margin: 0 2px; - color: ${({ theme }) => theme.text3}; + color: ${({ theme }) => theme.deprecated_text3}; ${({ theme }) => theme.mediaWidth.upToSmall` margin: 4px; padding: 20px; @@ -95,13 +95,13 @@ const DoubleArrow = styled.span` ` const RangeText = styled.span` - /* background-color: ${({ theme }) => theme.bg2}; */ + /* background-color: ${({ theme }) => theme.deprecated_bg2}; */ padding: 0.25rem 0.5rem; border-radius: 8px; ` const ExtentsText = styled.span` - color: ${({ theme }) => theme.text3}; + color: ${({ theme }) => theme.deprecated_text3}; font-size: 14px; margin-right: 4px; ${({ theme }) => theme.mediaWidth.upToSmall` diff --git a/src/components/PositionPreview/index.tsx b/src/components/PositionPreview/index.tsx index 23b6778182..09d4584728 100644 --- a/src/components/PositionPreview/index.tsx +++ b/src/components/PositionPreview/index.tsx @@ -135,7 +135,7 @@ export const PositionPreview = ({ {quoteCurrency.symbol} per {baseCurrency.symbol}
- + Your position will be 100% composed of {baseCurrency?.symbol} at this price
@@ -156,7 +156,7 @@ export const PositionPreview = ({ {quoteCurrency.symbol} per {baseCurrency.symbol} - + Your position will be 100% composed of {quoteCurrency?.symbol} at this price diff --git a/src/components/PrivacyPolicy/index.tsx b/src/components/PrivacyPolicy/index.tsx index 54680ec7fd..95c13e4371 100644 --- a/src/components/PrivacyPolicy/index.tsx +++ b/src/components/PrivacyPolicy/index.tsx @@ -20,20 +20,20 @@ const Wrapper = styled.div` ` const StyledExternalCard = styled(Card)` - background-color: ${({ theme }) => theme.primary5}; + background-color: ${({ theme }) => theme.deprecated_primary5}; padding: 0.5rem; width: 100%; :hover, :focus, :active { - background-color: ${({ theme }) => theme.primary4}; + background-color: ${({ theme }) => theme.deprecated_primary4}; } ` const HoverText = styled.div` text-decoration: none; - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; display: flex; align-items: center; @@ -128,7 +128,7 @@ export function PrivacyPolicy() { - + Uniswap Labs' Terms of Service @@ -141,7 +141,7 @@ export function PrivacyPolicy() { - + Protocol Disclaimer @@ -159,7 +159,7 @@ export function PrivacyPolicy() { - + {name} diff --git a/src/components/ProgressSteps/index.tsx b/src/components/ProgressSteps/index.tsx index 33f6bcbb96..ab7d8408f8 100644 --- a/src/components/ProgressSteps/index.tsx +++ b/src/components/ProgressSteps/index.tsx @@ -13,7 +13,7 @@ const Wrapper = styled(AutoColumn)` const Grouping = styled(AutoColumn)` width: fit-content; padding: 4px; - /* background-color: ${({ theme }) => theme.bg2}; */ + /* background-color: ${({ theme }) => theme.deprecated_bg2}; */ border-radius: 16px; ` @@ -21,9 +21,9 @@ const Circle = styled.div<{ confirmed?: boolean; disabled?: boolean }>` width: 48px; height: 48px; background-color: ${({ theme, confirmed, disabled }) => - disabled ? theme.bg3 : confirmed ? theme.green1 : theme.primary1}; + disabled ? theme.deprecated_bg3 : confirmed ? theme.deprecated_green1 : theme.deprecated_primary1}; border-radius: 50%; - color: ${({ theme, disabled }) => (disabled ? theme.text3 : theme.text1)}; + color: ${({ theme, disabled }) => (disabled ? theme.deprecated_text3 : theme.deprecated_text1)}; display: flex; align-items: center; justify-content: center; @@ -65,7 +65,7 @@ export default function ProgressCircles({ steps, disabled = false, ...rest }: Pr {step ? '✓' : i + 1 + '.'} - | + | ) })} diff --git a/src/components/QuestionHelper/index.tsx b/src/components/QuestionHelper/index.tsx index 0c7ec769a8..2151282d96 100644 --- a/src/components/QuestionHelper/index.tsx +++ b/src/components/QuestionHelper/index.tsx @@ -16,8 +16,8 @@ const QuestionWrapper = styled.div` cursor: default; border-radius: 36px; font-size: 12px; - background-color: ${({ theme }) => theme.bg2}; - color: ${({ theme }) => theme.text2}; + background-color: ${({ theme }) => theme.deprecated_bg2}; + color: ${({ theme }) => theme.deprecated_text2}; :hover, :focus { diff --git a/src/components/RangeSelector/PresetsButtons.tsx b/src/components/RangeSelector/PresetsButtons.tsx index bc01705015..c59d97b8f6 100644 --- a/src/components/RangeSelector/PresetsButtons.tsx +++ b/src/components/RangeSelector/PresetsButtons.tsx @@ -10,7 +10,7 @@ const Button = styled(ButtonOutlined).attrs(() => ({ padding: '8px', $borderRadius: '8px', }))` - color: ${({ theme }) => theme.text1}; + color: ${({ theme }) => theme.deprecated_text1}; flex: 1; ` diff --git a/src/components/RoutingDiagram/RoutingDiagram.tsx b/src/components/RoutingDiagram/RoutingDiagram.tsx index f66a3a2d25..5e5d059739 100644 --- a/src/components/RoutingDiagram/RoutingDiagram.tsx +++ b/src/components/RoutingDiagram/RoutingDiagram.tsx @@ -48,12 +48,12 @@ const DottedLine = styled.div` const DotColor = styled(DotLine)` path { - stroke: ${({ theme }) => theme.bg4}; + stroke: ${({ theme }) => theme.deprecated_bg4}; } ` const OpaqueBadge = styled(Badge)` - background-color: ${({ theme }) => theme.bg2}; + background-color: ${({ theme }) => theme.deprecated_bg2}; border-radius: 8px; display: grid; font-size: 12px; @@ -65,9 +65,9 @@ const OpaqueBadge = styled(Badge)` ` const ProtocolBadge = styled(Badge)` - background-color: ${({ theme }) => theme.bg3}; + background-color: ${({ theme }) => theme.deprecated_bg3}; border-radius: 4px; - color: ${({ theme }) => theme.text2}; + color: ${({ theme }) => theme.deprecated_text2}; font-size: 10px; padding: 2px 4px; z-index: ${Z_INDEX.sticky + 1}; diff --git a/src/components/SearchModal/BlockedToken.tsx b/src/components/SearchModal/BlockedToken.tsx index 3d5f25cabb..a44a311520 100644 --- a/src/components/SearchModal/BlockedToken.tsx +++ b/src/components/SearchModal/BlockedToken.tsx @@ -37,7 +37,7 @@ const Header = styled.div` width: 100%; ` const Icon = styled(AlertCircle)` - stroke: ${({ theme }) => theme.text2}; + stroke: ${({ theme }) => theme.deprecated_text2}; width: 48px; height: 48px; ` diff --git a/src/components/SearchModal/CommonBases.tsx b/src/components/SearchModal/CommonBases.tsx index ff144d689a..d27485bdec 100644 --- a/src/components/SearchModal/CommonBases.tsx +++ b/src/components/SearchModal/CommonBases.tsx @@ -17,7 +17,7 @@ const MobileWrapper = styled(AutoColumn)` ` const BaseWrapper = styled.div<{ disable?: boolean }>` - border: 1px solid ${({ theme, disable }) => (disable ? 'transparent' : theme.bg3)}; + border: 1px solid ${({ theme, disable }) => (disable ? 'transparent' : theme.deprecated_bg3)}; border-radius: 10px; display: flex; padding: 6px; @@ -25,11 +25,11 @@ const BaseWrapper = styled.div<{ disable?: boolean }>` align-items: center; :hover { cursor: ${({ disable }) => !disable && 'pointer'}; - background-color: ${({ theme, disable }) => !disable && theme.bg2}; + background-color: ${({ theme, disable }) => !disable && theme.deprecated_bg2}; } - color: ${({ theme, disable }) => disable && theme.text3}; - background-color: ${({ theme, disable }) => disable && theme.bg3}; + color: ${({ theme, disable }) => disable && theme.deprecated_text3}; + background-color: ${({ theme, disable }) => disable && theme.deprecated_bg3}; filter: ${({ disable }) => disable && 'grayscale(1)'}; ` diff --git a/src/components/SearchModal/CurrencyList/__snapshots__/index.test.tsx.snap b/src/components/SearchModal/CurrencyList/__snapshots__/index.test.tsx.snap index a52c6f700f..1aeb084d72 100644 --- a/src/components/SearchModal/CurrencyList/__snapshots__/index.test.tsx.snap +++ b/src/components/SearchModal/CurrencyList/__snapshots__/index.test.tsx.snap @@ -86,7 +86,7 @@ exports[`renders currency rows correctly when currencies list is non-empty 1`] = DAI
Dai Stablecoin
@@ -109,7 +109,7 @@ exports[`renders currency rows correctly when currencies list is non-empty 1`] = USDC
USD//C
@@ -132,7 +132,7 @@ exports[`renders currency rows correctly when currencies list is non-empty 1`] = WBTC
Wrapped BTC
diff --git a/src/components/SearchModal/CurrencyList/index.tsx b/src/components/SearchModal/CurrencyList/index.tsx index 7069493f4f..7f3aa849d5 100644 --- a/src/components/SearchModal/CurrencyList/index.tsx +++ b/src/components/SearchModal/CurrencyList/index.tsx @@ -38,8 +38,8 @@ const StyledBalanceText = styled(Text)` ` const Tag = styled.div` - background-color: ${({ theme }) => theme.bg3}; - color: ${({ theme }) => theme.text2}; + background-color: ${({ theme }) => theme.deprecated_bg3}; + color: ${({ theme }) => theme.deprecated_text2}; font-size: 14px; border-radius: 4px; padding: 0.25rem 0.3rem 0.25rem 0.3rem; @@ -180,7 +180,7 @@ function BreakLineComponent({ style }: { style: CSSProperties }) { - + Expanded results from inactive Token Lists diff --git a/src/components/SearchModal/CurrencySearch.tsx b/src/components/SearchModal/CurrencySearch.tsx index 0103a2b67a..8f6fac1ef2 100644 --- a/src/components/SearchModal/CurrencySearch.tsx +++ b/src/components/SearchModal/CurrencySearch.tsx @@ -42,8 +42,8 @@ const Footer = styled.div` padding: 20px; border-top-left-radius: 0; border-top-right-radius: 0; - background-color: ${({ theme }) => theme.bg1}; - border-top: 1px solid ${({ theme }) => theme.bg2}; + background-color: ${({ theme }) => theme.deprecated_bg1}; + border-top: 1px solid ${({ theme }) => theme.deprecated_bg2}; ` interface CurrencySearchProps { @@ -251,19 +251,19 @@ export function CurrencySearch({ ) : ( - + No results found. )}