Skip to content

Commit 8f92d58

Browse files
committed
fix: change primary color name to be brand
1 parent b2e2f82 commit 8f92d58

34 files changed

+49
-48
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ They can also be given class names as shown in the above image.
144144

145145
```javascript
146146
<div
147-
className={classNames("w-1/3", "bg-primary", {
147+
className={classNames("w-1/3", "bg-brand", {
148148
"text-white": type === "default",
149149
underline: hasLink,
150150
})}

src/components/banner/PrivacyPolicy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function PrivacyPolicyBanner(): ReactElement {
3333

3434
if (showBanner)
3535
return (
36-
<div className="fixed bottom-0 left-0 right-0 z-999 flex flex-row justify-center md:justify-between bg-primary">
36+
<div className="fixed bottom-0 left-0 right-0 z-999 flex flex-row justify-center md:justify-between bg-brand">
3737
<div className="text-white py-8 text-center mx-auto lg:text-base text-sm md:text-lg justify-center md:max-w-none px-6">
3838
{t("signup-page.privacy.text")}{" "}
3939
<Link href="/privacy-policy" className="underline">

src/components/cards/Address.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface AddressProps {
2727
export default function Address({ hasAddress }: AddressProps): ReactElement {
2828
const { t } = useTranslation();
2929
return (
30-
<div className="lg:pt-5 sm:pt-5 md:pt-5 pt-14 absolute text-sm lg:text-gray-700 md:text-gray-700 sm:text-gray-700 cursor-pointer text-primary font-medium lg:font-normal md:font-normal sm:font-normal">
30+
<div className="lg:pt-5 sm:pt-5 md:pt-5 pt-14 absolute text-sm lg:text-gray-700 md:text-gray-700 sm:text-gray-700 cursor-pointer text-brand font-medium lg:font-normal md:font-normal sm:font-normal">
3131
{hasAddress ? (
3232
<div>
3333
<Link href="#">{t("profile.wallets.address-set")}</Link>

src/components/cards/Partnering.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function PartneringCard() {
2222
</div>
2323
<div className="mt-4 align-middle">
2424
<a href="mailto:[email protected]">
25-
<Button className="hover:bg-primary group-hover:text-white leading-relaxed lg:px-7 px-5 font-medium" variant="outline-primary" type="button" padding={false}>
25+
<Button className="hover:bg-brand group-hover:text-white leading-relaxed lg:px-7 px-5 font-medium" variant="outline-primary" type="button" padding={false}>
2626
{t("page.index.communities.partnering.button-text")}
2727
</Button>
2828
</a>

src/components/cards/community/List.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ export default function CommunityListCard({ community }: CommunityListCardProps)
6868
<Link href={path}>
6969
<ArrowButton
7070
rounded={false}
71-
className="group-hover:bg-primary group-hover:text-white"
72-
arrowClasses="group-hover:bg-primary bg-gray-200 text-primary group-hover:text-white"
71+
className="group-hover:bg-brand group-hover:text-white"
72+
arrowClasses="group-hover:bg-brand bg-gray-200 text-brand group-hover:text-white"
7373
variant="outline-primary"
7474
loading={false}
7575
disabled={false}

src/components/cards/profile/Request.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function Request(): ReactElement {
4747

4848
<div className="md:pl-4 py-4 md:py-0">4 Pending invitations</div>
4949
</div>
50-
<Link href={`/profile/referrals`} className="text-primary flex items-center justify-between gap-4 cursor-pointer">
50+
<Link href={`/profile/referrals`} className="text-brand flex items-center justify-between gap-4 cursor-pointer">
5151
<span>See all</span>
5252
<Right />
5353
</Link>

src/components/layout/Navbar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default function Navbar({ settings, sidebarBurgerColor = false }: NavbarP
101101
<ul className="hidden lg:block relative self-center text-surface-text-primary">
102102
<NavItem to="/bounties">{t("nav.bounties")}</NavItem>
103103
<NavItem to={"/communities"}>{t("nav.communities")}</NavItem>
104-
<button type="button" className="nav-item underline underline-offset-2 text-primary bg-transparent p-0 capitalize" onClick={displayJobOffersPopup}>
104+
<button type="button" className="nav-item underline underline-offset-2 text-brand bg-transparent p-0 capitalize" onClick={displayJobOffersPopup}>
105105
{t("job.offers.title")}
106106
</button>
107107
</ul>
@@ -129,7 +129,7 @@ export default function Navbar({ settings, sidebarBurgerColor = false }: NavbarP
129129
<NavItem type="item" to="/login">
130130
<span
131131
className={classNames("py-2 text-sm", {
132-
"text-primary": router.pathname === "/signup",
132+
"text-brand": router.pathname === "/signup",
133133
inherit: router.pathname !== "/signup",
134134
})}
135135
>
@@ -143,7 +143,7 @@ export default function Navbar({ settings, sidebarBurgerColor = false }: NavbarP
143143
{router.pathname === "/login" && <span className="text-sm">{t("nav.signin.new-accout")}</span>}
144144
<NavItem type="item" to="/signup">
145145
{router.pathname === "/login" ? (
146-
<span className="py-2 text-sm text-primary">{t("nav.sign-up")}</span>
146+
<span className="py-2 text-sm text-brand">{t("nav.sign-up")}</span>
147147
) : (
148148
<Button
149149
variant="secondary"
@@ -154,7 +154,7 @@ export default function Navbar({ settings, sidebarBurgerColor = false }: NavbarP
154154
rounded={false}
155155
onClick={() => null}
156156
className={classNames("text-sm py-2", {
157-
"text-primary": router.pathname === "/login",
157+
"text-brand": router.pathname === "/login",
158158
"text-gray-900": router.pathname !== "/login",
159159
})}
160160
>

src/components/list/LanguageList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function LanguageList({ onSelect }: LanguageSwitcherProps): React
5757
</span>
5858
</div>
5959
{locale === selected && (
60-
<div className="text-primary">
60+
<div className="text-brand">
6161
<Checkmark />
6262
</div>
6363
)}

src/components/list/ReferralsList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ export default function ReferralsList({ text }: ReferralsListProps): ReactElemen
3636
return (
3737
<div className="bg-blue-lighter border border-solid border-blue-light w-full rounded-3.5xl items-center justify-between flex md:flex-row flex-col py-6 px-5">
3838
<div className="md:w-96">
39-
<p className="inline-block px-2 pb-3 text-lg font-medium text-primary md:pb-0">{text}</p>
39+
<p className="inline-block px-2 pb-3 text-lg font-medium text-brand md:pb-0">{text}</p>
4040
</div>
4141

4242
<div className="flex-none">
4343
<Button
44-
className="px-5 font-medium leading-relaxed hover:bg-primary group-hover:text-white lg:px-7"
44+
className="px-5 font-medium leading-relaxed hover:bg-brand group-hover:text-white lg:px-7"
4545
variant="outline-primary"
4646
type="button"
4747
padding={false}

src/components/popups/DiscordDisconnect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function DiscordDisconnect({ show, onClose }: DiscordDisconnectPr
6767
</p>
6868
</div>
6969
<div className="flex items-center justify-between pt-4 pb-2 pl-6 pr-6">
70-
<span className="text-sm font-medium cursor-pointer text-primary self-end mb-4" onClick={onClose}>
70+
<span className="text-sm font-medium cursor-pointer text-brand self-end mb-4" onClick={onClose}>
7171
{t("profile.header.discord.close")}
7272
</span>
7373
{!disconnectLoading && !discordDisconnectSuccess && (

0 commit comments

Comments
 (0)