Skip to content

Commit bd05713

Browse files
committed
fix: extend textColors and backgroundColors in tailwind config
1 parent 8f92d58 commit bd05713

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+157
-205
lines changed

src/components/cards/Balance.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function Balance({ details }: BalanceProps): ReactElement {
3131

3232
return (
3333
<Link href="/profile/wallets">
34-
<div className="flex px-5 py-3 -mx-5 space-x-3 text-left hover:bg-gray-50">
34+
<div className="flex px-5 py-3 -mx-5 space-x-3 text-left hover:bg-secondary">
3535
<Coin token={details.token} size="medium" />
3636
<div className="w-3/4 pt-1">
3737
<div className="flex justify-between">

src/components/cards/Bounty.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ export default function BountyCard({ bounty }: BountyProps): ReactElement {
5757
const Component = link.startsWith("http") ? "a" : Link;
5858

5959
return (
60-
<div className="p-5 flex md:flex-row-reverse md:space-x-5 px-5 min-h-32 md:h-auto md:w-full justify-between hover:bg-secondary relative">
60+
<div className="p-5 flex md:flex-row-reverse md:space-x-5 px-5 min-h-32 md:h-auto md:w-full justify-between hover:bg-tertiary relative">
6161
<div className="bg-theme-accent flex-col w-full h-full justify-between md:-space-y-1 pl-3 pr-5 my-5">
6262
<Component className="relative w-full block" href={link}>
6363
<div className="font-medium text-md md:pt-1.5">{bounty.course ? bounty.course.name : bounty.name}</div>
6464
</Component>
6565
<div className="flex justify-between w-full md:block">
6666
<Component className="inline-flex md:flex md:flex-row flex-col-reverse justify-between" href={link}>
67-
<div className="text-sm pt-8 md:pt-2 md:pb-4 text-gray-600">{type()}</div>
67+
<div className="text-sm pt-8 md:pt-2 md:pb-4 text-secondary">{type()}</div>
6868
<div className="flex">
6969
<Reward type="gray" reward={bounty.reward}></Reward>
7070
</div>

src/components/cards/Communities.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ interface CommunitiesProps {
3434

3535
export default function Communities({ title = "" }: CommunitiesProps): ReactElement {
3636
return (
37-
<div className="bg-gray-50 rounded-full pl-2 py-2 flex items-center mb-3">
37+
<div className="bg-secondary rounded-full pl-2 py-2 flex items-center mb-3">
3838
{PARTNERS.map((partner) => (
3939
<a href={partner.link} key={partner.link} target="__blank" className="inline-block md:mx-auto">
4040
<div className="w-10 h-10 rounded-full border border-solid flex items-center">

src/components/cards/CreateTeam.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export default function CreateTeamCard({ index = 1, title = "", text = "" }: Cre
203203
</div>
204204
<div className="flex flex-col">
205205
<div className=" text-sm text-gray-700 font-medium">{member?.displayName}</div>
206-
<div className=" text-gray-400 text-xs">{status}</div>
206+
<div className=" text-tertiary text-xs">{status}</div>
207207
</div>
208208
{!team?.locked && (
209209
<>

src/components/cards/FAQ.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function FaqCard(): ReactElement {
1515
const { t } = useTranslation();
1616

1717
return (
18-
<div className="py-5 md:py-10 w-full bg-gray-50">
18+
<div className="py-5 md:py-10 w-full bg-secondary">
1919
<div className="w-full content-wrapper divide-y divide-2 lg:divide-0 lg:divide-y-0 divide-gray-200 flex flex-col lg:flex-row">
2020
<div className="w-full lg:w-1/2 lg:min-w-xs text-gray-900 text-2xl md:text-4xl font-medium pb-5 flex-row">
2121
<div>{t("faq.title")}</div>

src/components/cards/Learning.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default function Learning({ learningModule }: LearningProps): ReactElemen
5555
};
5656

5757
return (
58-
<div className="px-5 pt-5 pb-8 bg-gray-50 rounded-3xl min-h-2xs w-full border-solid border-2 border-gray-100 md:mt-0 cursor-pointer">
58+
<div className="px-5 pt-5 pb-8 bg-secondary rounded-3xl min-h-2xs w-full border-solid border-2 border-gray-100 md:mt-0 cursor-pointer">
5959
<div onClick={navigate} className="flex flex-col">
6060
<div className="w-full">
6161
<h4 className="font-medium block text-xl">{learningModule.title}</h4>

src/components/cards/NotificationCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default function NotificationCard({ user = {}, notification, extended = f
105105

106106
return (
107107
<>
108-
<div onClick={goToLink} className={`flex hover:bg-gray-50 py-4 -mx-5 px-5 cursor-pointer ${extended ? "rounded-3xl" : ""}`}>
108+
<div onClick={goToLink} className={`flex hover:bg-secondary py-4 -mx-5 px-5 cursor-pointer ${extended ? "rounded-3xl" : ""}`}>
109109
<div className="flex mr-2">
110110
<Avatar user={user} size="medium-fixed" className="!w-10 !h-10" />
111111
</div>

src/components/cards/Numbered.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ export default function Numbered({ index = 1, title = "", text = "" }: NumberedP
2929
return (
3030
<div className="flex items-center md:flex-col md:items-start gap-2.5">
3131
<div className="block">
32-
<div className="w-9 h-9 md:w-14 md:h-14 border border-solid border-gray-400 text-surface-text-tertiary font-medium rounded-full flex items-center justify-center">{index}</div>
32+
<div className="w-9 h-9 md:w-14 md:h-14 border border-solid border-gray-400 text-tertiary font-medium rounded-full flex items-center justify-center">{index}</div>
3333
</div>
34-
<div className="text-surface-text-primary">
34+
<div className="text-primary">
3535
<span className="font-medium">{title}</span> <span>{text}</span>
3636
</div>
3737
</div>

src/components/cards/Objective.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function ObjectiveCard({ iconcolor = "", crossmark = false, objec
3838
<div className="py-0 pt-px mt-px mr-2" style={{ color: iconcolor || colors?.primary }}>
3939
{crossmark ? <Crossmark /> : <Checkmark />}
4040
</div>
41-
<div className="text-sm font-normal leading-5 contains-ordered-list text-surface-text-primary" dangerouslySetInnerHTML={{ __html: objective as string }} />
41+
<div className="text-sm font-normal leading-5 contains-ordered-list text-primary" dangerouslySetInnerHTML={{ __html: objective as string }} />
4242
</div>
4343
);
4444
}

src/components/cards/Partnering.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { useTranslation } from "next-i18next";
1111
export default function PartneringCard() {
1212
const { t } = useTranslation();
1313
return (
14-
<div className="relative z-10 mt-6 md:mt-0 p-6 rounded-3.5xl border border-solid bg-surface-bg-highlight lg:pb-3 w-full text-surface-text-brand h-full min-h-xs flex flex-col justify-between divide-y-2 divide-dotted divide-theme-accent">
14+
<div className="relative z-10 mt-6 md:mt-0 p-6 rounded-3.5xl border border-solid border-light-brand bg-highlight lg:pb-3 w-full text-brand h-full min-h-xs flex flex-col justify-between divide-y-2 divide-dotted divide-theme-accent">
1515
<div className="max-w-sm">
1616
<p className="text-2xl font-medium mb-2.5 leading-none">{t("page.index.communities.partnering.title")}</p>
1717
<p className="text-base mt-0 mb-20 lg:mb-0 leading-normal">{t("page.index.communities.partnering.subtitle")}</p>

0 commit comments

Comments
 (0)