Skip to content

Commit a7a9829

Browse files
committed
refactor(styling): update to inline styling for custom colors
1 parent d1f8ef5 commit a7a9829

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

src/pages/community.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const CommunityPage = () => {
192192
/>
193193
<HubHero {...heroContent} />
194194
<Divider />
195-
<Flex className="-mt-px h-full w-full flex-row-reverse items-center border-b border-b-border-high-contrast bg-home-box-turquoise py-8 ps-0 lg:h-[720px] lg:py-0 lg:ps-8">
195+
<Flex className="-mt-px h-full w-full flex-row-reverse items-center border-b border-b-border-high-contrast bg-[#ccfcff] py-8 ps-0 lg:h-[720px] lg:py-0 lg:ps-8 dark:bg-[#293233]">
196196
<Content>
197197
<Flex className="mb-8 flex-col items-center">
198198
<H2>{t("page-community-why-get-involved-title")}</H2>
@@ -249,7 +249,7 @@ const CommunityPage = () => {
249249
</div>
250250
</div>
251251
</div>
252-
<Flex className="-mt-px h-full w-full flex-col-reverse items-center border-y border-y-border-high-contrast bg-home-box-turquoise py-8 ps-0 lg:h-[720px] lg:flex-row-reverse lg:py-0 lg:ps-8">
252+
<Flex className="-mt-px h-full w-full flex-col-reverse items-center border-y border-y-border-high-contrast bg-[#ccfcff] py-8 ps-0 lg:h-[720px] lg:flex-row-reverse lg:py-0 lg:ps-8 dark:bg-[#293233]">
253253
<RowReverse>
254254
<FeatureContent>
255255
<H2>{t("page-community-open-source")}</H2>
@@ -276,7 +276,7 @@ const CommunityPage = () => {
276276
</ImageContainer>
277277
</RowReverse>
278278
</Flex>
279-
<Flex className="-mt-px h-full w-full flex-col-reverse items-center border-y border-y-border-high-contrast bg-home-box-pink py-8 ps-0 lg:h-[720px] lg:flex-row-reverse lg:py-0 lg:ps-8">
279+
<Flex className="-mt-px h-full w-full flex-col-reverse items-center border-y border-y-border-high-contrast bg-[#ffe5f9] py-8 ps-0 lg:h-[720px] lg:flex-row-reverse lg:py-0 lg:ps-8 dark:bg-[#332027]">
280280
<Flex className="flex-col-reverse items-center lg:flex-row">
281281
<FeatureContent>
282282
<Flex className="flex-col justify-center">
@@ -305,7 +305,7 @@ const CommunityPage = () => {
305305
</ImageContainer>
306306
</Flex>
307307
</Flex>
308-
<Flex className="-mt-px h-full w-full flex-col-reverse items-center border-y border-y-border-high-contrast bg-home-box-purple lg:h-[720px] lg:flex-row">
308+
<Flex className="-mt-px h-full w-full flex-col-reverse items-center border-y border-y-border-high-contrast bg-[#e8e8ff] lg:h-[720px] lg:flex-row dark:bg-[#212131]">
309309
<RowReverse>
310310
<FeatureContent>
311311
<H2>{t("page-community-support")}</H2>

src/styles/global.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@
4343
rgba(145, 234, 228, 0.2) 100%
4444
);
4545
--search-background: var(--background);
46-
--home-box-turquoise: #ccfcff;
47-
--home-box-pink: #ffe5f9;
48-
--home-box-purple: #e8e8ff;
4946
}
5047

5148
[data-theme="dark"] {
@@ -74,9 +71,6 @@
7471
rgba(134, 253, 232, 0.08) 100%
7572
);
7673
--search-background: #4c4c4c;
77-
--home-box-turquoise: #293233;
78-
--home-box-pink: #332027;
79-
--home-box-purple: #212131;
8074
}
8175
}
8276

tailwind.config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,6 @@ const config = {
218218
"red-fill": "var(--staking-red-fill)",
219219
},
220220

221-
//temporary
222-
"home-box": {
223-
turquoise: "var(--home-box-turquoise)",
224-
pink: "var(--home-box-pink)",
225-
purple: "var(--home-box-purple)",
226-
},
227-
228221
/** @deprecated */
229222
"switch-background": "hsla(var(--switch-background))", // TODO: Migrate
230223
"tooltip-shadow": "var(--tooltip-shadow)",

0 commit comments

Comments
 (0)