From 2673faac102503a08bd4f31896127747b4471a9a Mon Sep 17 00:00:00 2001 From: Karolina Kosiorowska Date: Thu, 19 Dec 2024 11:47:05 +0100 Subject: [PATCH] New color palette DApp has been redesigned and projects use a new color palette. Let's update the color palette in the code. However, let's leave the old palette until we update the base components. This is the simplest solution to avoid complications with new colors. --- dapp/src/components/AcrePointsClaimModal.tsx | 10 +- .../ConnectWalletModal/ConnectWalletAlert.tsx | 2 +- .../ConnectWalletButton.tsx | 4 +- .../ConnectWalletStatusLabel.tsx | 14 +-- dapp/src/components/Header/ConnectWallet.tsx | 16 +-- dapp/src/components/MezoBeehiveModal.tsx | 12 +-- .../src/components/MobileModeBanner/index.tsx | 12 +-- .../ActionDurationEstimation.tsx | 4 +- .../AcrePointsRewardEstimation.tsx | 14 +-- .../StakingErrorModal/RetryModal.tsx | 12 +-- .../StakingErrorModal/ServerErrorModal.tsx | 10 +- .../NotEnoughFundsModal.tsx | 4 +- .../FeesTooltip/FeesTooltipItem.tsx | 2 +- .../TransactionModal/ResumeModal.tsx | 2 +- .../TransactionModal/SuccessModal.tsx | 4 +- .../WalletInteractionModal.tsx | 2 +- dapp/src/components/UnexpectedErrorModal.tsx | 2 +- dapp/src/components/WelcomeModal.tsx | 4 +- dapp/src/components/shared/Alert.tsx | 10 +- .../AnimatedNumber/AnimatedNumberColumn.tsx | 5 +- .../FeesDetails/FeesDetailsAmountItem.tsx | 2 +- .../components/shared/FeesDetails/index.tsx | 4 +- dapp/src/components/shared/LiveTag.tsx | 8 +- .../shared/Pagination/PaginationFooter.tsx | 2 +- dapp/src/components/shared/ProgressBar.tsx | 2 +- .../components/shared/TokenBalanceInput.tsx | 2 +- dapp/src/components/shared/TooltipIcon.tsx | 6 +- .../TransactionDetailsAmountItem.tsx | 2 +- .../shared/TransactionDetails/index.tsx | 4 +- .../AcrePointsCard/AcrePointsLabel.tsx | 8 +- .../AcrePointsCard/LabelWrapper.tsx | 2 +- .../AcrePointsCard/UserPointsLabel.tsx | 12 +-- .../DashboardPage/AcrePointsCard/index.tsx | 2 +- .../DashboardPage/AcrePointsTemplateCard.tsx | 22 +++-- .../pages/DashboardPage/AcreTVLMessage.tsx | 6 +- dapp/src/pages/DashboardPage/BeehiveCard.tsx | 4 +- .../pages/DashboardPage/PositionDetails.tsx | 4 +- .../TransactionHistory/EstimatedDuration.tsx | 6 +- .../TransactionHistory/TransactionTable.tsx | 16 +-- .../TransactionHistory/index.tsx | 2 +- dapp/src/theme/acreTVLProgressTheme.ts | 8 +- dapp/src/theme/alertTheme.ts | 2 +- dapp/src/theme/buttonTheme.ts | 44 ++++----- dapp/src/theme/cardTheme.ts | 2 +- dapp/src/theme/footerTheme.ts | 6 +- dapp/src/theme/formErrorTheme.ts | 2 +- dapp/src/theme/formLabelTheme.ts | 2 +- dapp/src/theme/formTheme.ts | 2 +- dapp/src/theme/inputTheme.ts | 16 +-- dapp/src/theme/linkTheme.ts | 4 +- dapp/src/theme/modalTheme.ts | 10 +- dapp/src/theme/progressTheme.ts | 6 +- dapp/src/theme/skeletonTheme.ts | 8 +- dapp/src/theme/spinnerTheme.ts | 10 +- dapp/src/theme/tagTheme.ts | 4 +- dapp/src/theme/tokenBalanceInputTheme.ts | 2 +- dapp/src/theme/tooltipTheme.ts | 6 +- dapp/src/theme/utils/colors.ts | 98 +++++++++++++++++-- dapp/src/theme/utils/styles.ts | 4 +- 59 files changed, 288 insertions(+), 209 deletions(-) diff --git a/dapp/src/components/AcrePointsClaimModal.tsx b/dapp/src/components/AcrePointsClaimModal.tsx index b7836c318..3cb070a85 100644 --- a/dapp/src/components/AcrePointsClaimModal.tsx +++ b/dapp/src/components/AcrePointsClaimModal.tsx @@ -67,7 +67,7 @@ function AcrePointsClaimModalBase({ prefix="+" suffix=" PTS" animateMode="whileInView" - color="brand.400" + color="acre.50" />, ], [ @@ -76,7 +76,7 @@ function AcrePointsClaimModalBase({ value={formattedTotalAmount} suffix=" PTS" animateMode="whileInView" - indicationColor="brand.400" + indicationColor="acre.50" />, ], // TODO: Uncomment when the leaderboard feature is ready @@ -86,7 +86,7 @@ function AcrePointsClaimModalBase({ // value={rankPositionDifference} // prefix={rankPositionDifference > 0 ? "+" : "-"} // animateMode="whileInView" - // color={rankPositionDifference > 0 ? "green.500" : "red.500"} + // color={rankPositionDifference > 0 ? "green.50" : "red.50"} // />, // ], // [ @@ -95,7 +95,7 @@ function AcrePointsClaimModalBase({ // value={estimatedRankPosition} // prefix="#" // animateMode="whileInView" - // indicationColor="brand.400" + // indicationColor="acre.50" // />, // ], ], @@ -166,7 +166,7 @@ function AcrePointsClaimModalBase({ fontSize={{ base: "5xl", md: "8xl" }} lineHeight="6.25rem" // 100px fontWeight="bold" - color="grey.700" + color="text.primary" > {currentStepValue} diff --git a/dapp/src/components/ConnectWalletModal/ConnectWalletAlert.tsx b/dapp/src/components/ConnectWalletModal/ConnectWalletAlert.tsx index 1315ba487..d91f0201f 100644 --- a/dapp/src/components/ConnectWalletModal/ConnectWalletAlert.tsx +++ b/dapp/src/components/ConnectWalletModal/ConnectWalletAlert.tsx @@ -49,7 +49,7 @@ const CONNECTION_ALERTS: ConnectionAlerts = { [ConnectionAlert.Rejected]: { title: "Please connect your wallet to start using Acre", status: "info", - colorScheme: "blue", + colorScheme: "oldPalette.blue", }, [ConnectionAlert.NotSupported]: { title: "Not supported.", diff --git a/dapp/src/components/ConnectWalletModal/ConnectWalletButton.tsx b/dapp/src/components/ConnectWalletModal/ConnectWalletButton.tsx index 7bb69424b..7ca7f2709 100644 --- a/dapp/src/components/ConnectWalletModal/ConnectWalletButton.tsx +++ b/dapp/src/components/ConnectWalletModal/ConnectWalletButton.tsx @@ -196,7 +196,7 @@ export default function ConnectWalletButton({ key={connector.id} alignSelf="stretch" borderWidth={1} - borderColor="gold.300" + borderColor="surface.4" rounded="lg" mb={3} _last={{ mb: 0 }} @@ -252,7 +252,7 @@ export default function ConnectWalletButton({ pt={4} borderTopWidth={1} borderStyle="solid" - borderColor="gold.300" + borderColor="surface.4" align="start" > diff --git a/dapp/src/components/ConnectWalletModal/ConnectWalletStatusLabel.tsx b/dapp/src/components/ConnectWalletModal/ConnectWalletStatusLabel.tsx index ec1a0e651..61cb950e6 100644 --- a/dapp/src/components/ConnectWalletModal/ConnectWalletStatusLabel.tsx +++ b/dapp/src/components/ConnectWalletModal/ConnectWalletStatusLabel.tsx @@ -11,16 +11,16 @@ import Spinner from "../shared/Spinner" const statusToLabelProps: Record = { idle: { - color: "grey.500", + color: "text.tertiary", }, pending: { - color: "brand.400", + color: "acre.50", }, error: { - color: "grey.500", + color: "text.tertiary", }, success: { - color: "grey.700", + color: "text.primary", }, } @@ -28,8 +28,8 @@ const boxSize = 5 const statusToIcon: Record = { idle: , pending: , - error: , - success: , + error: , + success: , } type ConnectWalletStatusLabelProps = { @@ -51,7 +51,7 @@ export default function ConnectWalletStatusLabel({ {label} {isError && ( - + Rejected by user diff --git a/dapp/src/components/Header/ConnectWallet.tsx b/dapp/src/components/Header/ConnectWallet.tsx index d880ebbbb..d6c6c9610 100644 --- a/dapp/src/components/Header/ConnectWallet.tsx +++ b/dapp/src/components/Header/ConnectWallet.tsx @@ -68,8 +68,8 @@ export default function ConnectWallet() { - - Your funds are secure. + + Your funds are secure. diff --git a/dapp/src/components/TransactionModal/ActiveStakingStep/StakingErrorModal/ServerErrorModal.tsx b/dapp/src/components/TransactionModal/ActiveStakingStep/StakingErrorModal/ServerErrorModal.tsx index 27056f206..eafd6c9b4 100644 --- a/dapp/src/components/TransactionModal/ActiveStakingStep/StakingErrorModal/ServerErrorModal.tsx +++ b/dapp/src/components/TransactionModal/ActiveStakingStep/StakingErrorModal/ServerErrorModal.tsx @@ -31,11 +31,11 @@ export default function ServerErrorModal({ return ( <> - + We're currently facing system issues. - + @@ -59,7 +59,7 @@ export default function ServerErrorModal({ px={8} flexDirection="row" justifyContent="space-between" - bgColor="gold.200" + bgColor="surface.3" borderRadius="xl" > @@ -68,12 +68,12 @@ export default function ServerErrorModal({ {/* TODO: ADD a tooltip */} {/* */} - Partial Outage + Partial Outage