Skip to content

Commit 0027d53

Browse files
committed
add missing color token updates
1 parent 7875490 commit 0027d53

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

src/@chakra-ui/gatsby-plugin/components/Tag/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const STATUS_COLORS = {
9292
_focusWithin: {
9393
[$badgeBg.variable]: "colors.primary.hover",
9494
[$badgeColor.variable]: "colors.background.base",
95-
outlineColor: "primary",
95+
outlineColor: "primary.base",
9696
},
9797
_active: {
9898
boxShadow: "none",
@@ -112,7 +112,7 @@ export const STATUS_COLORS = {
112112
_focusWithin: {
113113
[$badgeBg.variable]: "colors.primary.hover",
114114
[$badgeColor.variable]: "colors.background.base",
115-
outlineColor: "primary",
115+
outlineColor: "primary.base",
116116
},
117117
_active: {
118118
boxShadow: "none",

src/@chakra-ui/gatsby-plugin/semanticTokens.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const semanticTokens = {
5353
base: { _light: "gray.700", _dark: "gray.100" },
5454
medium: { _light: "gray.500", _dark: "gray.300" },
5555
light: { _light: "gray.200", _dark: "gray.600" },
56-
// ! Deprecating bodyInverted
56+
// ! Deprecating body.inverted
5757
inverted: { _light: "gray.100", _dark: "gray.700" },
5858
},
5959
background: {
@@ -75,7 +75,7 @@ const semanticTokens = {
7575
base: "red.500",
7676
light: "red.100",
7777
outline: { _light: "error.base", _dark: "error.light" },
78-
// ! Deprecating errorNeutral
78+
// ! Deprecating error.neutral
7979
neutral: { _light: "red.100", _dark: "red.900" },
8080
},
8181
success: {

src/components/EthPriceCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const EthPriceCard: React.FC<IProps> = ({ className, isLeftAlign = false }) => {
128128
fontSize="2xl"
129129
lineHeight="140%"
130130
mr={4}
131-
color={isNegativeChange ? "fail300" : "success"}
131+
color={isNegativeChange ? "fail300" : "success.base"}
132132
>
133133
{change}
134134
</Box>

src/components/Staking/WithdrawalCredentials.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const WithdrawalCredentials: FC<IProps> = () => {
8080
if (hasError)
8181
return (
8282
<Flex bg="error.neutral" p={4}>
83-
<Text m={0} color="error">
83+
<Text m={0} color="error.base">
8484
<Translation id="comp-withdrawal-credentials-error" />
8585
</Text>
8686
</Flex>
@@ -89,7 +89,7 @@ const WithdrawalCredentials: FC<IProps> = () => {
8989
if (validator.isUpgraded)
9090
return (
9191
<Flex bg="success.neutral" p={4}>
92-
<Text m={0} color="success">
92+
<Text m={0} color="success.base">
9393
<Text as="span" fontWeight="bold">
9494
<Translation
9595
id="comp-withdrawal-credentials-upgraded-1"
@@ -121,7 +121,7 @@ const WithdrawalCredentials: FC<IProps> = () => {
121121
)
122122
return (
123123
<Flex bg="error.neutral" p={4}>
124-
<Text m={0} color="error">
124+
<Text m={0} color="error.base">
125125
<Text as="span" fontWeight="bold">
126126
{validator.isTestnet ? (
127127
<Translation id="comp-withdrawal-credentials-not-upgraded-1-testnet" />

src/pages/quizzes.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ const QuizzesHubPage = ({ data }: PageProps<Queries.QuizzesHubPageQuery>) => {
121121
<Box px={{ base: 8, lg: 0 }}>
122122
<Heading
123123
fontSize={{ base: "1.75rem", lg: "2rem" }}
124-
color="body"
124+
color="body.base"
125125
>
126126
<Translation id="basics" />
127127
</Heading>
128128

129-
<Text mb={8} color="body">
129+
<Text mb={8} color="body.base">
130130
<Translation id="basics-description" />
131131
</Text>
132132

@@ -140,12 +140,12 @@ const QuizzesHubPage = ({ data }: PageProps<Queries.QuizzesHubPageQuery>) => {
140140
<Box px={{ base: 8, lg: 0 }} mb={10}>
141141
<Heading
142142
fontSize={{ base: "1.75rem", lg: "2rem" }}
143-
color="body"
143+
color="body.base"
144144
>
145145
<Translation id="using-ethereum" />
146146
</Heading>
147147

148-
<Text mb={8} color="body">
148+
<Text mb={8} color="body.base">
149149
<Translation id="using-ethereum-description" />
150150
</Text>
151151

@@ -169,13 +169,16 @@ const QuizzesHubPage = ({ data }: PageProps<Queries.QuizzesHubPageQuery>) => {
169169
<Text
170170
align={{ base: "center", xl: "left" }}
171171
fontWeight="bold"
172-
color="body"
172+
color="body.base"
173173
mb={-2}
174174
>
175175
<Translation id="want-more-quizzes" />
176176
</Text>
177177

178-
<Text align={{ base: "center", xl: "left" }} color="body">
178+
<Text
179+
align={{ base: "center", xl: "left" }}
180+
color="body.base"
181+
>
179182
<Translation id="contribute" />
180183
</Text>
181184
</Stack>

0 commit comments

Comments
 (0)