Skip to content

Commit 021dfb3

Browse files
committed
Prefix custom colors with cr-
1 parent f7a5f68 commit 021dfb3

25 files changed

+72
-81
lines changed

src/assets/state/contactMethods.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const contactMethods: IContactMethod[] = [
3737
{
3838
title: <>
3939
Discord <br />
40-
<span className="text-sm font-semibold text-fill-contrast">
40+
<span className="text-sm font-semibold text-cr-fill-contrast">
4141
(Coming Soon™)
4242
</span>
4343
</>,

src/components/controls/Button.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ export const style = cva("relative flex items-center justify-center transition-c
1111
variants: {
1212
color: {
1313
white: "bg-neutral-200 hover:bg-neutral-50 border-neutral-400 text-neutral-900",
14-
primary: "bg-primary hover:bg-primary-light border-primary-dark text-primary-contrast",
15-
secondary: "bg-secondary hover:bg-secondary-light border-secondary-dark text-secondary-contrast"
14+
primary: "bg-cr-primary hover:bg-cr-primary-light border-cr-primary-light hover:border-cr-primary text-cr-primary-contrast"
1615
}
17-
}
16+
}
1817
});
1918

2019
export type BaseProps = {

src/components/controls/Input.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { RequiredKeys } from "@/types/utility";
77
export const style = cva("w-full rounded-2xl py-2 px-3 border-2", {
88
variants: {
99
color: {
10-
primary: "border-primary bg-transparent placeholder:text-fill-contrast/75",
11-
secondary: "border-secondary bg-transparent placeholder:text-fill-contrast/75"
10+
primary: "border-cr-primary bg-transparent placeholder:text-cr-fill-contrast/75",
1211
},
1312
},
1413
defaultVariants: {

src/components/controls/Link.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ export const style = cva("transition-colors gap-2", {
1212
},
1313
color: {
1414
white: "text-white hover:text-neutral-300",
15-
primary: "text-primary hover:text-primary-light",
16-
secondary: "text-secondary hover:text-secondary-light",
17-
"fill-contrast": "text-fill-contrast hover:text-fill-contrast-light"
15+
primary: "text-cr-primary hover:text-cr-primary-light",
16+
"fill-contrast": "text-cr-fill-contrast hover:text-cr-fill-contrast-light"
1817
}
1918
},
2019
defaultVariants: {

src/components/controls/Select.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@ export type VariantProps = InputVariantProps;
1515
export const containerStyle = cva("absolute border-2 left-1/2 -translate-x-1/2 top-full rounded-2xl min-w-fit w-full overflow-hidden translate-y-1 z-50", {
1616
variants: {
1717
color: {
18-
primary: "border-primary bg-fill text-fill-contrast",
19-
secondary: "border-secondary bg-fill text-fill-contrast"
18+
primary: "border-cr-primary bg-cr-fill text-cr-fill-contrast"
2019
}
2120
}
2221
});
2322
export const itemStyle = cva("px-4 py-2", {
2423
variants: {
2524
color: {
26-
primary: "ui-active:bg-primary/20",
27-
secondary: "ui-active:bg-secondary/20"
25+
primary: "ui-active:bg-cr-primary/20"
2826
}
2927
}
3028
});

src/components/layout/Footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import Logo from "@/assets/images/brand/logo-200x200.webp";
44

55
const Footer = () => {
66
return (
7-
<div className="flex items-center justify-center w-[calc(100%_+_4rem)] pt-16 mt-auto text-primary-contrast">
8-
<footer className="flex flex-col w-full gap-4 p-8 border-2 border-b-0 max-w-7xl rounded-t-2xl bg-primary image-dots from-primary-light border-primary-light">
7+
<div className="flex items-center justify-center w-[calc(100%_+_4rem)] pt-16 mt-auto text-cr-primary-contrast">
8+
<footer className="flex flex-col w-full gap-4 p-8 border-2 border-b-0 max-w-7xl rounded-t-2xl bg-cr-primary image-dots from-cr-primary-light border-cr-primary-light">
99
<div className="flex flex-col items-center gap-2 p-2 rounded-2xl bg-white/20 sm:flex-row backdrop-blur-[1.25px]">
1010
<div className="flex items-center gap-2">
1111
<img

src/components/layout/Header.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const Header = () => {
2323
});
2424

2525
return (
26-
<header className="relative flex items-center w-full gap-4 p-4 transition-all border-b-2 md:px-8 md:gap-12 border-primary-light/10">
26+
<header className="relative flex items-center w-full gap-4 p-4 transition-all border-b-2 md:px-8 md:gap-12 border-cr-primary-light/10">
2727
<Link color="primary" className="flex items-center justify-center text-2xl font-bold transition-all lg:text-4xl" href="/">
2828
<img
2929
className="object-contain transition-all text-[0px] w-10 h-10 lg:w-12 lg:h-12"
@@ -37,7 +37,7 @@ const Header = () => {
3737
<Button
3838
ref={buttonRef}
3939
className="p-2 ml-auto rounded-full md:hidden"
40-
color="secondary"
40+
color="primary"
4141
aria-label="Expands the header"
4242
aria-expanded={open}
4343
aria-controls="header-items"
@@ -51,7 +51,7 @@ const Header = () => {
5151
</Button>
5252
<div
5353
ref={itemsContainerRef}
54-
className="absolute flex flex-col bg-fill gap-0 p-4 top-full inset-x-4 rounded-2xl border-2 border-primary z-10 data-[expanded='false']:hidden md:data-[expanded='false']:flex md:flex-row md:items-center md:p-0 md:border-none md:static md:bg-transparent md:gap-12"
54+
className="absolute flex flex-col bg-cr-fill gap-0 p-4 top-full inset-x-4 rounded-2xl border-2 border-cr-primary z-10 data-[expanded='false']:hidden md:data-[expanded='false']:flex md:flex-row md:items-center md:p-0 md:border-none md:static md:bg-transparent md:gap-12"
5555
id="header-items"
5656
data-expanded={open}
5757
>

src/components/layout/NavDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const NavDropdown = ({ summary, children }: NavDropdownProps) => {
5656
height="1em"
5757
/>
5858
</summary>
59-
<div ref={containerRef} className="absolute inset-x-0 flex flex-col gap-2 px-4 py-2 border-2 rounded-2xl bg-fill text-fill-contrast group/dropdown border-primary md:w-fit" data-in-group>
59+
<div ref={containerRef} className="absolute inset-x-0 flex flex-col gap-2 px-4 py-2 border-2 rounded-2xl bg-cr-fill text-cr-fill-contrast group/dropdown border-cr-primary md:w-fit" data-in-group>
6060
{children}
6161
</div>
6262
</details>

src/components/layout/NavLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface NavLinkProps {
1010

1111
export const style = cva(`
1212
text-lg font-bold py-2
13-
aria-[current='page']:text-primary-light
13+
aria-[current='page']:text-cr-primary-light
1414
group-data-[in-group='true']/dropdown:text-base group-data-[in-group='true']/dropdown:py-0
1515
`);
1616

src/components/pages/about/Member.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import LinkButton from "@/components/controls/LinkButton";
33

44
const Member = ({ image, fullName, title, links }: IMember) => (
55
<li
6-
className="flex flex-col items-center w-full max-w-full gap-2 p-4 border-2 rounded-2xl border-primary-light motion-safe:transition-all sm:p-6 md:w-fit"
6+
className="flex flex-col items-center w-full max-w-full gap-2 p-4 border-2 rounded-2xl border-cr-primary-light motion-safe:transition-all sm:p-6 md:w-fit"
77
aria-label="Member"
88
>
99
<div className="flex flex-col items-center max-w-full gap-2 sm:flex-row md:flex-col">
@@ -16,16 +16,16 @@ const Member = ({ image, fullName, title, links }: IMember) => (
1616
height={image.height}
1717
/>
1818
<div className="flex flex-col max-w-full gap-2 py-4 text-center w-72">
19-
<p className="text-2xl font-semibold text-secondary" aria-label="Name">{fullName}</p>
20-
<p className="font-semibold text-secondary" aria-label="Title / Role">{title}</p>
19+
<p className="text-2xl font-semibold text-cr-primary" aria-label="Name">{fullName}</p>
20+
<p className="font-semibold text-cr-primary" aria-label="Title / Role">{title}</p>
2121
</div>
2222
</div>
2323
<div className="grid w-full grid-cols-1 gap-2 sm:grid-cols-2" aria-label="Links">
2424
{links.map((link, i) => (
2525
<LinkButton
2626
key={i}
2727
href={link.href}
28-
color="secondary"
28+
color="primary"
2929
aria-label="Link"
3030
>
3131
{link.name}

0 commit comments

Comments
 (0)