Your active V3 liquidity positions will appear here.
diff --git a/src/pages/Pool/styleds.tsx b/src/pages/Pool/styleds.tsx
index 721f731e4f..e70a03422c 100644
--- a/src/pages/Pool/styleds.tsx
+++ b/src/pages/Pool/styleds.tsx
@@ -11,12 +11,12 @@ export const ClickableText = styled(Text)`
:hover {
cursor: pointer;
}
- color: ${({ theme }) => theme.primary1};
+ color: ${({ theme }) => theme.deprecated_primary1};
`
export const MaxButton = styled.button<{ width: string }>`
padding: 0.5rem 1rem;
- background-color: ${({ theme }) => theme.primary5};
- border: 1px solid ${({ theme }) => theme.primary5};
+ background-color: ${({ theme }) => theme.deprecated_primary5};
+ border: 1px solid ${({ theme }) => theme.deprecated_primary5};
border-radius: 0.5rem;
font-size: 1rem;
${({ theme }) => theme.mediaWidth.upToSmall`
@@ -26,12 +26,12 @@ export const MaxButton = styled.button<{ width: string }>`
cursor: pointer;
margin: 0.25rem;
overflow: hidden;
- color: ${({ theme }) => theme.primary1};
+ color: ${({ theme }) => theme.deprecated_primary1};
:hover {
- border: 1px solid ${({ theme }) => theme.primary1};
+ border: 1px solid ${({ theme }) => theme.deprecated_primary1};
}
:focus {
- border: 1px solid ${({ theme }) => theme.primary1};
+ border: 1px solid ${({ theme }) => theme.deprecated_primary1};
outline: none;
}
`
diff --git a/src/pages/Pool/v2.tsx b/src/pages/Pool/v2.tsx
index ab1a8ec292..4f230a349a 100644
--- a/src/pages/Pool/v2.tsx
+++ b/src/pages/Pool/v2.tsx
@@ -71,7 +71,7 @@ const ResponsiveButtonSecondary = styled(ButtonSecondary)`
`
const EmptyProposals = styled.div`
- border: 1px solid ${({ theme }) => theme.text4};
+ border: 1px solid ${({ theme }) => theme.deprecated_text4};
padding: 16px 12px;
border-radius: 12px;
display: flex;
@@ -160,7 +160,7 @@ export default function Pool() {
@@ -178,7 +178,7 @@ export default function Pool() {
-
+
V2 Pool is not available on Layer 2. Switch to Layer 1 Ethereum.
@@ -212,13 +212,13 @@ export default function Pool() {
{!account ? (
-
+
Connect to a wallet to view your liquidity.
) : v2IsLoading ? (
-
+
Loading
@@ -269,7 +269,7 @@ export default function Pool() {
>
) : (
-
+
No liquidity found.
diff --git a/src/pages/PoolFinder/index.tsx b/src/pages/PoolFinder/index.tsx
index 04f4a6a734..acbdbaeb36 100644
--- a/src/pages/PoolFinder/index.tsx
+++ b/src/pages/PoolFinder/index.tsx
@@ -104,7 +104,7 @@ export default function PoolFinder() {
-
+
Tip: Use this tool to find v2 pools that don't automatically appear in the interface.
diff --git a/src/pages/RemoveLiquidity/V3.tsx b/src/pages/RemoveLiquidity/V3.tsx
index 415afa807c..9124031809 100644
--- a/src/pages/RemoveLiquidity/V3.tsx
+++ b/src/pages/RemoveLiquidity/V3.tsx
@@ -227,7 +227,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
{feeValue0?.greaterThan(0) || feeValue1?.greaterThan(0) ? (
<>
-
+
You will also collect fees earned from this position.
diff --git a/src/pages/RemoveLiquidity/index.tsx b/src/pages/RemoveLiquidity/index.tsx
index 411b5e3fd8..58e0713279 100644
--- a/src/pages/RemoveLiquidity/index.tsx
+++ b/src/pages/RemoveLiquidity/index.tsx
@@ -303,7 +303,7 @@ export default function RemoveLiquidity() {
-
+
@@ -317,7 +317,7 @@ export default function RemoveLiquidity() {
-
+
Output is estimated. If the price changes by more than {allowedSlippage.toSignificant(4)}% your transaction
will revert.
@@ -331,7 +331,7 @@ export default function RemoveLiquidity() {
return (
<>
-
+
UNI {currencyA?.symbol}/{currencyB?.symbol} Burned
@@ -346,16 +346,16 @@ export default function RemoveLiquidity() {
{pair && (
<>
-
+
Price
-
+
1 {currencyA?.symbol} = {tokenA ? pair.priceOf(tokenA).toSignificant(6) : '-'} {currencyB?.symbol}
-
+
1 {currencyB?.symbol} = {tokenB ? pair.priceOf(tokenB).toSignificant(6) : '-'} {currencyA?.symbol}
@@ -451,7 +451,7 @@ export default function RemoveLiquidity() {
-
+
Tip: Removing pool tokens converts your position back into underlying tokens at the current
rate, proportional to your share of the pool. Accrued fees are included in the amounts you receive.
@@ -503,7 +503,7 @@ export default function RemoveLiquidity() {
{!showDetailed && (
<>
-
+
@@ -577,7 +577,7 @@ export default function RemoveLiquidity() {
id="liquidity-amount"
/>
-
+
-
+
@@ -496,7 +500,7 @@ export default function Swap() {
<>
-
+
onChangeRecipient(null)}>
- Remove recipient
@@ -584,7 +588,7 @@ export default function Swap() {
) : (approvalSubmitted && approvalState === ApprovalState.APPROVED) ||
signatureState === UseERC20PermitState.SIGNED ? (
-
+
) : (
}
>
-
+
)}
diff --git a/src/pages/Vote/Landing.tsx b/src/pages/Vote/Landing.tsx
index 6c3b2f45dd..e05cfe838f 100644
--- a/src/pages/Vote/Landing.tsx
+++ b/src/pages/Vote/Landing.tsx
@@ -13,6 +13,7 @@ import { SwitchLocaleLink } from 'components/SwitchLocaleLink'
import Toggle from 'components/Toggle'
import DelegateModal from 'components/vote/DelegateModal'
import ProposalEmptyState from 'components/vote/ProposalEmptyState'
+import useTheme from 'hooks/useTheme'
import JSBI from 'jsbi'
import { darken } from 'polished'
import { useState } from 'react'
@@ -50,14 +51,14 @@ const Proposal = styled(Button)`
text-align: left;
outline: none;
cursor: pointer;
- color: ${({ theme }) => theme.text1};
+ color: ${({ theme }) => theme.deprecated_text1};
text-decoration: none;
- background-color: ${({ theme }) => theme.bg1};
+ background-color: ${({ theme }) => theme.deprecated_bg1};
&:focus {
- background-color: ${({ theme }) => darken(0.05, theme.bg1)};
+ background-color: ${({ theme }) => darken(0.05, theme.deprecated_bg1)};
}
&:hover {
- background-color: ${({ theme }) => darken(0.05, theme.bg1)};
+ background-color: ${({ theme }) => darken(0.05, theme.deprecated_bg1)};
}
`
@@ -88,7 +89,7 @@ const WrapSmall = styled(RowBetween)`
`
const TextButton = styled(ThemedText.Main)`
- color: ${({ theme }) => theme.primary1};
+ color: ${({ theme }) => theme.deprecated_primary1};
:hover {
cursor: pointer;
text-decoration: underline;
@@ -96,7 +97,7 @@ const TextButton = styled(ThemedText.Main)`
`
const AddressButton = styled.div`
- border: 1px solid ${({ theme }) => theme.bg3};
+ border: 1px solid ${({ theme }) => theme.deprecated_bg3};
padding: 2px 4px;
border-radius: 8px;
display: flex;
@@ -105,10 +106,11 @@ const AddressButton = styled.div`
`
const StyledExternalLink = styled(ExternalLink)`
- color: ${({ theme }) => theme.text1};
+ color: ${({ theme }) => theme.deprecated_text1};
`
export default function Landing() {
+ const theme = useTheme()
const { account, chainId } = useWeb3React()
const [hideCancelled, setHideCancelled] = useState(true)
@@ -161,7 +163,10 @@ export default function Landing() {
diff --git a/src/pages/Vote/VotePage.tsx b/src/pages/Vote/VotePage.tsx
index 28850e24dc..4a85db419e 100644
--- a/src/pages/Vote/VotePage.tsx
+++ b/src/pages/Vote/VotePage.tsx
@@ -60,7 +60,7 @@ const PageWrapper = styled(AutoColumn)`
`
const ProposalInfo = styled(AutoColumn)`
- background: ${({ theme }) => theme.bg0};
+ background: ${({ theme }) => theme.deprecated_bg0};
border-radius: 12px;
padding: 1.5rem;
position: relative;
@@ -73,10 +73,10 @@ const ArrowWrapper = styled(StyledInternalLink)`
align-items: center;
gap: 8px;
height: 24px;
- color: ${({ theme }) => theme.text1};
+ color: ${({ theme }) => theme.deprecated_text1};
a {
- color: ${({ theme }) => theme.text1};
+ color: ${({ theme }) => theme.deprecated_text1};
text-decoration: none;
}
:hover {
@@ -93,7 +93,7 @@ const CardWrapper = styled.div`
const StyledDataCard = styled(DataCard)`
width: 100%;
background: none;
- background-color: ${({ theme }) => theme.bg1};
+ background-color: ${({ theme }) => theme.deprecated_bg1};
height: fit-content;
z-index: 2;
`
@@ -103,14 +103,14 @@ const ProgressWrapper = styled.div`
margin-top: 1rem;
height: 4px;
border-radius: 4px;
- background-color: ${({ theme }) => theme.bg3};
+ background-color: ${({ theme }) => theme.deprecated_bg3};
position: relative;
`
const Progress = styled.div<{ status: 'for' | 'against'; percentageString?: string }>`
height: 4px;
border-radius: 4px;
- background-color: ${({ theme, status }) => (status === 'for' ? theme.green1 : theme.red1)};
+ background-color: ${({ theme, status }) => (status === 'for' ? theme.deprecated_green1 : theme.deprecated_red1)};
width: ${({ percentageString }) => percentageString ?? '0%'};
`
diff --git a/src/pages/Vote/styled.tsx b/src/pages/Vote/styled.tsx
index 3cfcf7d883..e14391c19d 100644
--- a/src/pages/Vote/styled.tsx
+++ b/src/pages/Vote/styled.tsx
@@ -7,17 +7,17 @@ const handleColorType = (status: ProposalState, theme: DefaultTheme) => {
switch (status) {
case ProposalState.PENDING:
case ProposalState.ACTIVE:
- return theme.blue1
+ return theme.deprecated_blue1
case ProposalState.SUCCEEDED:
case ProposalState.EXECUTED:
- return theme.green1
+ return theme.deprecated_green1
case ProposalState.DEFEATED:
- return theme.red1
+ return theme.deprecated_red1
case ProposalState.QUEUED:
case ProposalState.CANCELED:
case ProposalState.EXPIRED:
default:
- return theme.text3
+ return theme.deprecated_text3
}
}
diff --git a/src/theme/components.tsx b/src/theme/components.tsx
index f7c56bea34..f46ce952c0 100644
--- a/src/theme/components.tsx
+++ b/src/theme/components.tsx
@@ -38,7 +38,7 @@ export const IconWrapper = styled.div<{ stroke?: string; size?: string; marginRi
margin-right: ${({ marginRight }) => marginRight ?? 0};
margin-left: ${({ marginLeft }) => marginLeft ?? 0};
& > * {
- stroke: ${({ theme, stroke }) => stroke ?? theme.blue1};
+ stroke: ${({ theme, stroke }) => stroke ?? theme.deprecated_blue1};
}
`
@@ -49,7 +49,7 @@ export const LinkStyledButton = styled.button<{ disabled?: boolean }>`
background: none;
cursor: ${({ disabled }) => (disabled ? 'default' : 'pointer')};
- color: ${({ theme, disabled }) => (disabled ? theme.text2 : theme.primary1)};
+ color: ${({ theme, disabled }) => (disabled ? theme.deprecated_text2 : theme.deprecated_primary1)};
font-weight: 500;
:hover {
@@ -70,7 +70,7 @@ export const LinkStyledButton = styled.button<{ disabled?: boolean }>`
export const StyledInternalLink = styled(Link)`
text-decoration: none;
cursor: pointer;
- color: ${({ theme }) => theme.primary1};
+ color: ${({ theme }) => theme.deprecated_primary1};
font-weight: 500;
:hover {
@@ -90,7 +90,7 @@ export const StyledInternalLink = styled(Link)`
const StyledLink = styled.a`
text-decoration: none;
cursor: pointer;
- color: ${({ theme }) => theme.primary1};
+ color: ${({ theme }) => theme.deprecated_primary1};
font-weight: 500;
:hover {
@@ -133,14 +133,14 @@ const LinkIcon = styled(LinkIconFeather)`
height: 16px;
width: 18px;
margin-left: 10px;
- stroke: ${({ theme }) => theme.blue1};
+ stroke: ${({ theme }) => theme.deprecated_blue1};
`
export const TrashIcon = styled(Trash)`
height: 16px;
width: 18px;
margin-left: 10px;
- stroke: ${({ theme }) => theme.text3};
+ stroke: ${({ theme }) => theme.deprecated_text3};
cursor: pointer;
align-items: center;
@@ -228,7 +228,7 @@ const Spinner = styled.img`
`
const BackArrowLink = styled(StyledInternalLink)`
- color: ${({ theme }) => theme.text1};
+ color: ${({ theme }) => theme.deprecated_text1};
`
export function BackArrow({ to }: { to: string }) {
return (
@@ -265,5 +265,5 @@ export const SmallOnly = styled.span`
export const Separator = styled.div`
width: 100%;
height: 1px;
- background-color: ${({ theme }) => theme.bg2};
+ background-color: ${({ theme }) => theme.deprecated_bg2};
`
diff --git a/src/theme/index.tsx b/src/theme/index.tsx
index e99aecbe7a..b8360eeafd 100644
--- a/src/theme/index.tsx
+++ b/src/theme/index.tsx
@@ -48,67 +48,67 @@ const mediaWidthTemplates: { [width in keyof typeof MEDIA_WIDTHS]: typeof css }
{}
) as any
-const white = '#FFFFFF'
-const black = '#000000'
+const deprecated_white = '#FFFFFF'
+const deprecated_black = '#000000'
function colors(darkMode: boolean): Colors {
return {
darkMode,
// base
- white,
- black,
+ deprecated_white,
+ deprecated_black,
// text
- text1: darkMode ? '#FFFFFF' : '#000000',
- text2: darkMode ? '#C3C5CB' : '#565A69',
- text3: darkMode ? '#8F96AC' : '#6E727D',
- text4: darkMode ? '#B2B9D2' : '#C3C5CB',
- text5: darkMode ? '#2C2F36' : '#EDEEF2',
+ deprecated_text1: darkMode ? '#FFFFFF' : '#000000',
+ deprecated_text2: darkMode ? '#C3C5CB' : '#565A69',
+ deprecated_text3: darkMode ? '#8F96AC' : '#6E727D',
+ deprecated_text4: darkMode ? '#B2B9D2' : '#C3C5CB',
+ deprecated_text5: darkMode ? '#2C2F36' : '#EDEEF2',
// backgrounds / greys
- bg0: darkMode ? '#191B1F' : '#FFF',
- bg1: darkMode ? '#212429' : '#F7F8FA',
- bg2: darkMode ? '#2C2F36' : '#EDEEF2',
- bg3: darkMode ? '#40444F' : '#CED0D9',
- bg4: darkMode ? '#565A69' : '#888D9B',
- bg5: darkMode ? '#6C7284' : '#888D9B',
- bg6: darkMode ? '#1A2028' : '#6C7284',
+ deprecated_bg0: darkMode ? '#191B1F' : '#FFF',
+ deprecated_bg1: darkMode ? '#212429' : '#F7F8FA',
+ deprecated_bg2: darkMode ? '#2C2F36' : '#EDEEF2',
+ deprecated_bg3: darkMode ? '#40444F' : '#CED0D9',
+ deprecated_bg4: darkMode ? '#565A69' : '#888D9B',
+ deprecated_bg5: darkMode ? '#6C7284' : '#888D9B',
+ deprecated_bg6: darkMode ? '#1A2028' : '#6C7284',
//specialty colors
- modalBG: darkMode ? 'rgba(0,0,0,.425)' : 'rgba(0,0,0,0.3)',
- advancedBG: darkMode ? 'rgba(0,0,0,0.1)' : 'rgba(255,255,255,0.6)',
+ deprecated_modalBG: darkMode ? 'rgba(0,0,0,.425)' : 'rgba(0,0,0,0.3)',
+ deprecated_advancedBG: darkMode ? 'rgba(0,0,0,0.1)' : 'rgba(255,255,255,0.6)',
//primary colors
- primary1: darkMode ? '#2172E5' : '#E8006F',
- primary2: darkMode ? '#3680E7' : '#FF8CC3',
- primary3: darkMode ? '#4D8FEA' : '#FF99C9',
- primary4: darkMode ? '#376bad70' : '#F6DDE8',
- primary5: darkMode ? '#153d6f70' : '#FDEAF1',
+ deprecated_primary1: darkMode ? '#2172E5' : '#E8006F',
+ deprecated_primary2: darkMode ? '#3680E7' : '#FF8CC3',
+ deprecated_primary3: darkMode ? '#4D8FEA' : '#FF99C9',
+ deprecated_primary4: darkMode ? '#376bad70' : '#F6DDE8',
+ deprecated_primary5: darkMode ? '#153d6f70' : '#FDEAF1',
// color text
- primaryText1: darkMode ? '#5090ea' : '#D50066',
+ deprecated_primaryText1: darkMode ? '#5090ea' : '#D50066',
// secondary colors
- secondary1: darkMode ? '#2172E5' : '#E8006F',
- secondary2: darkMode ? '#17000b26' : '#F6DDE8',
- secondary3: darkMode ? '#17000b26' : '#FDEAF1',
+ deprecated_secondary1: darkMode ? '#2172E5' : '#E8006F',
+ deprecated_secondary2: darkMode ? '#17000b26' : '#F6DDE8',
+ deprecated_secondary3: darkMode ? '#17000b26' : '#FDEAF1',
// other
- red1: darkMode ? '#FF4343' : '#DA2D2B',
- red2: darkMode ? '#F82D3A' : '#DF1F38',
- red3: '#D60000',
- green1: darkMode ? '#27AE60' : '#007D35',
- yellow1: '#E3A507',
- yellow2: '#FF8F00',
- yellow3: '#F3B71E',
- blue1: darkMode ? '#2172E5' : '#0068FC',
- blue2: darkMode ? '#5199FF' : '#0068FC',
- error: darkMode ? '#FD4040' : '#DF1F38',
- success: darkMode ? '#27AE60' : '#007D35',
- warning: '#FF8F00',
+ deprecated_red1: darkMode ? '#FF4343' : '#DA2D2B',
+ deprecated_red2: darkMode ? '#F82D3A' : '#DF1F38',
+ deprecated_red3: '#D60000',
+ deprecated_green1: darkMode ? '#27AE60' : '#007D35',
+ deprecated_yellow1: '#E3A507',
+ deprecated_yellow2: '#FF8F00',
+ deprecated_yellow3: '#F3B71E',
+ deprecated_blue1: darkMode ? '#2172E5' : '#0068FC',
+ deprecated_blue2: darkMode ? '#5199FF' : '#0068FC',
+ deprecated_error: darkMode ? '#FD4040' : '#DF1F38',
+ deprecated_success: darkMode ? '#27AE60' : '#007D35',
+ deprecated_warning: '#FF8F00',
// dont wanna forget these blue yet
- blue4: darkMode ? '#153d6f70' : '#C4D9F8',
+ deprecated_blue4: darkMode ? '#153d6f70' : '#C4D9F8',
// blue5: darkMode ? '#153d6f70' : '#EBF4FF',
}
}
@@ -158,22 +158,22 @@ const TextWrapper = styled(Text)<{ color: keyof Colors }>`
*/
export const ThemedText = {
Main(props: TextProps) {
- return
+ return
},
Link(props: TextProps) {
- return
+ return
},
Label(props: TextProps) {
- return
+ return
},
Black(props: TextProps) {
- return
+ return
},
White(props: TextProps) {
- return
+ return
},
Body(props: TextProps) {
- return
+ return
},
LargeHeader(props: TextProps) {
return
@@ -188,32 +188,32 @@ export const ThemedText = {
return
},
Blue(props: TextProps) {
- return
+ return
},
Yellow(props: TextProps) {
- return
+ return
},
DarkGray(props: TextProps) {
- return
+ return
},
Gray(props: TextProps) {
- return
+ return
},
Italic(props: TextProps) {
- return
+ return
},
Error({ error, ...props }: { error: boolean } & TextProps) {
- return
+ return
},
}
export const ThemedGlobalStyle = createGlobalStyle`
html {
- color: ${({ theme }) => theme.text1};
- background-color: ${({ theme }) => theme.bg1} !important;
+ color: ${({ theme }) => theme.deprecated_text1};
+ background-color: ${({ theme }) => theme.deprecated_bg1} !important;
}
a {
- color: ${({ theme }) => theme.blue1};
+ color: ${({ theme }) => theme.deprecated_blue1};
}
`
diff --git a/src/theme/styled.d.ts b/src/theme/styled.d.ts
index 96dc94f451..d7ecd17347 100644
--- a/src/theme/styled.d.ts
+++ b/src/theme/styled.d.ts
@@ -5,58 +5,58 @@ export interface Colors {
darkMode: boolean
// base
- white: Color
- black: Color
+ deprecated_white: Color
+ deprecated_black: Color
// text
- text1: Color
- text2: Color
- text3: Color
- text4: Color
- text5: Color
+ deprecated_text1: Color
+ deprecated_text2: Color
+ deprecated_text3: Color
+ deprecated_text4: Color
+ deprecated_text5: Color
// backgrounds / greys
- bg0: Color
- bg1: Color
- bg2: Color
- bg3: Color
- bg4: Color
- bg5: Color
- bg6: Color
+ deprecated_bg0: Color
+ deprecated_bg1: Color
+ deprecated_bg2: Color
+ deprecated_bg3: Color
+ deprecated_bg4: Color
+ deprecated_bg5: Color
+ deprecated_bg6: Color
- modalBG: Color
- advancedBG: Color
+ deprecated_modalBG: Color
+ deprecated_advancedBG: Color
//blues
- primary1: Color
- primary2: Color
- primary3: Color
- primary4: Color
- primary5: Color
+ deprecated_primary1: Color
+ deprecated_primary2: Color
+ deprecated_primary3: Color
+ deprecated_primary4: Color
+ deprecated_primary5: Color
- primaryText1: Color
+ deprecated_primaryText1: Color
// pinks
- secondary1: Color
- secondary2: Color
- secondary3: Color
+ deprecated_secondary1: Color
+ deprecated_secondary2: Color
+ deprecated_secondary3: Color
// other
- red1: Color
- red2: Color
- red3: Color
- green1: Color
- yellow1: Color
- yellow2: Color
- yellow3: Color
- blue1: Color
- blue2: Color
+ deprecated_red1: Color
+ deprecated_red2: Color
+ deprecated_red3: Color
+ deprecated_green1: Color
+ deprecated_yellow1: Color
+ deprecated_yellow2: Color
+ deprecated_yellow3: Color
+ deprecated_blue1: Color
+ deprecated_blue2: Color
- blue4: Color
+ deprecated_blue4: Color
- error: Color
- success: Color
- warning: Color
+ deprecated_error: Color
+ deprecated_success: Color
+ deprecated_warning: Color
}
declare module 'styled-components/macro' {