Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

chore: change primary color (#665)

bautistaaad2528f7d2a9b
diff --git a/apps/web/src/app/[locale]/challenge/[id]/solutions/_components/submit-solution.tsx b/apps/web/src/app/[locale]/challenge/[id]/solutions/_components/submit-solution.tsx
index f492ae54..d05ff5f8 100644
--- a/apps/web/src/app/[locale]/challenge/[id]/solutions/_components/submit-solution.tsx
+++ b/apps/web/src/app/[locale]/challenge/[id]/solutions/_components/submit-solution.tsx
@@ -9,7 +9,7 @@ interface Props {
export function SubmitSolution({ disabled, setView }: Props) {
return (
<Button
- className="h-8 rounded-lg bg-emerald-600 px-3 py-2 hover:bg-emerald-500 dark:bg-emerald-400 dark:hover:bg-emerald-300"
+ className="h-8 rounded-lg px-3 py-2"
disabled={disabled}
onClick={() => setView('editor')}
>
diff --git a/apps/web/src/app/[locale]/challenge/_components/challenge-layout.tsx b/apps/web/src/app/[locale]/challenge/_components/challenge-layout.tsx
index 2274212f..945d0929 100644
--- a/apps/web/src/app/[locale]/challenge/_components/challenge-layout.tsx
+++ b/apps/web/src/app/[locale]/challenge/_components/challenge-layout.tsx
@@ -238,7 +238,7 @@ export function ChallengeLayout({ left, right }: ChallengeLayoutProps) {
}
ref={resizer}
>
- <div className="absolute left-1/2 top-1/2 h-1 w-24 -translate-x-1/2 -translate-y-1/2 rounded-full bg-neutral-400 duration-300 group-hover:bg-neutral-600 group-active:bg-emerald-400 group-active:duration-75 dark:bg-neutral-700 group-hover:dark:bg-neutral-500 lg:h-24 lg:w-1" />
+ <div className="absolute left-1/2 top-1/2 h-1 w-24 -translate-x-1/2 -translate-y-1/2 rounded-full bg-neutral-400 duration-300 group-hover:bg-neutral-600 group-active:duration-75 dark:bg-neutral-700 group-hover:dark:bg-neutral-500 lg:h-24 lg:w-1" />
</div>
<div
className="flex min-h-[90px] w-full flex-1 flex-grow flex-col overflow-hidden rounded-l-xl rounded-r-2xl border border-zinc-300 dark:border-zinc-700 lg:min-w-[500px]"
diff --git a/apps/web/src/app/[locale]/challenge/_components/comments/comment-input.tsx b/apps/web/src/app/[locale]/challenge/_components/comments/comment-input.tsx
index 49deca3b..ea20476a 100644
--- a/apps/web/src/app/[locale]/challenge/_components/comments/comment-input.tsx
+++ b/apps/web/src/app/[locale]/challenge/_components/comments/comment-input.tsx
@@ -86,7 +86,7 @@ export function CommentInput({ mode, onCancel, onChange, value, placeholder, onS
</Button>
)}
<Button
- className="h-8 w-[5.5rem] rounded-lg rounded-br-sm bg-emerald-600 hover:bg-emerald-500 dark:bg-emerald-400 dark:hover:bg-emerald-300"
+ className="h-8 w-[5.5rem] rounded-lg rounded-br-sm"
disabled={value.length === 0 || isSubmitting}
onClick={async () => {
try {
diff --git a/apps/web/src/app/[locale]/challenge/_components/comments/index.tsx b/apps/web/src/app/[locale]/challenge/_components/comments/index.tsx
index 9693240d..4100a549 100644
--- a/apps/web/src/app/[locale]/challenge/_components/comments/index.tsx
+++ b/apps/web/src/app/[locale]/challenge/_components/comments/index.tsx
@@ -120,7 +120,7 @@ export function Comments({ preselectedCommentMetadata, rootId, type, expanded =
return (
<div
className={clsx(
- 'bg-background/90 dark:border-b-muted dark:bg-muted/90 absolute bottom-0 w-full overflow-hidden border-t border-zinc-300 shadow-[0_0_3rem_-0.25rem_#0004] backdrop-blur-sm duration-300 dark:border-zinc-700 dark:shadow-[0_0_3rem_-0.25rem_#0008]',
+ 'bg-background/90 dark:border-b-muted dark:bg-muted/90 absolute bottom-0 w-full overflow-hidden border-t border-zinc-300 backdrop-blur-sm duration-300 dark:border-zinc-700',
{
'lg:border-t-none': showComments,
},
diff --git a/apps/web/src/components/wizard/NextBack.tsx b/apps/web/src/components/wizard/NextBack.tsx
index e67120f2..3a8e883c 100644
--- a/apps/web/src/components/wizard/NextBack.tsx
+++ b/apps/web/src/components/wizard/NextBack.tsx
@@ -22,7 +22,7 @@ export function NextBack({ current, onChange, onNext, onSubmit }: Props) {
)}
{current === STEPS.Summary ? (
<Button
- className="w-[79px] rounded-full bg-emerald-500 transition-all duration-300 ease-out hover:bg-emerald-400 hover:px-16 active:scale-95"
+ className="w-[79px] rounded-full transition-all duration-300 ease-out hover:px-16 active:scale-95"
onClick={onSubmit}
>
Submit
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index e8679019..9ec4a876 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -22,7 +22,7 @@
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
- --primary: 240 5.9% 10%;
+ --primary: 211 61% 48%;
--primary-foreground: 0 0% 98%;
--secondary: 240 4.8% 95.9%;
@@ -68,8 +68,8 @@
--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
- --primary: 0 0% 98%;
- --primary-foreground: 240 5.9% 10%;
+ --primary: 211 61% 48%;
+ --primary-foreground: 0 0% 98%;
--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;
diff --git a/packages/monaco/src/index.tsx b/packages/monaco/src/index.tsx
index c15c34b4..1591142a 100644
--- a/packages/monaco/src/index.tsx
+++ b/packages/monaco/src/index.tsx
@@ -228,7 +228,7 @@ export function CodePanel(props: CodePanelProps) {
<Button
disabled={disabled}
size="sm"
- className="cursor-pointer rounded-lg bg-emerald-600 duration-300 hover:bg-emerald-500 dark:bg-emerald-400 dark:hover:bg-emerald-300"
+ className="cursor-pointer rounded-lg duration-300"
onClick={handleSubmit}
>
Submit{tsErrors === undefined && ' (open test cases)'}
diff --git a/packages/ui/src/components/difficulty-badge.tsx b/packages/ui/src/components/difficulty-badge.tsx
index 59f5db5c..b1db30bc 100644
--- a/packages/ui/src/components/difficulty-badge.tsx
+++ b/packages/ui/src/components/difficulty-badge.tsx
@@ -14,5 +14,11 @@ const COLORS_BY_DIFFICULTY = {
};
export function DifficultyBadge({ difficulty }: Props) {
- return <Badge className={`duration-300 ${COLORS_BY_DIFFICULTY[difficulty]}`}>{difficulty}</Badge>;
+ return (
+ <Badge
+ className={`duration-300 ${COLORS_BY_DIFFICULTY[difficulty]} text-white dark:text-black`}
+ >
+ {difficulty}
+ </Badge>
+ );
}