Skip to content

Commit

Permalink
chore: only color with COLORS
Browse files Browse the repository at this point in the history
  • Loading branch information
james-a-morris committed Nov 2, 2023
1 parent 4d93841 commit bd09774
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/components/GlobalStyles/GlobalStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const variables = css`
--color-brand-aqua: #6cf9d8;
--color-interface-aqua: #6cf9d8;
--color-interface-aqua-5: #6cf9d80d;
--color-interface-aqua-15: #6cf9d826;
--color-interface-teal: #44d2ff;
Expand Down
1 change: 1 addition & 0 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ export const COLORS = {
red: "var(--color-interface-red)",
yellow: "var(--color-interface-yellow)",
aqua: "var(--color-interface-aqua)",
"aqua-5": "var(--color-interface-aqua-5)",
"aqua-15": "var(--color-interface-aqua-15)",
teal: "var(--color-interface-teal)",
"teal-5": "var(--color-interface-teal-5)",
Expand Down
13 changes: 7 additions & 6 deletions src/views/Bridge/components/EstimatedTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ReactComponent as UnstyledArrowIcon } from "assets/icons/arrow-16.svg";
import {
bridgedUSDCSymbolsMap,
capitalizeFirstLetter,
COLORS,
formatUnits,
formatUnitsFnBuilder,
getChainInfo,
Expand Down Expand Up @@ -319,7 +320,7 @@ const ShiftedRow = styled(Row)`
`;

const WhiteText = styled.span`
color: #e0f3ff;
color: ${COLORS.white};
`;

const TotalReceiveRow = styled.div`
Expand All @@ -332,7 +333,7 @@ const TotalReceiveRow = styled.div`
const WarningInfoIcon = styled(InfoIcon)`
margin-top: 8px;
path {
stroke: #f9d26c;
stroke: ${COLORS.warning};
}
`;

Expand Down Expand Up @@ -362,8 +363,8 @@ const ReferralRewardWrapper = styled.div`
// Style
border-radius: 22px;
border: 1px solid var(--color-interface-aqua-15, rgba(108, 249, 216, 0.15));
background: var(--color-interface-aqua-5, rgba(108, 249, 216, 0.05));
border: 1px solid ${COLORS["aqua-15"]};
background: ${COLORS["aqua-5"]};
`;

const BaseCurrencyWrapper = styled.div`
Expand All @@ -380,13 +381,13 @@ const Divider = styled.div`
align-items: center;
gap: 10px;
align-self: stretch;
background: var(--color-neutrals-grey-600, #3e4047);
background: ${COLORS["grey-600"]};
width: 100%;
`;

const ArrowIconDown = styled(UnstyledArrowIcon)`
path {
stroke: #9daab2;
stroke: ${COLORS["white-70"]};
}
`;

Expand Down

0 comments on commit bd09774

Please sign in to comment.