Skip to content

Commit d352688

Browse files
authored
Light and Dark mode Colour scheme changes (#360)
added visual improvements to CourseCard, Navbar, ReviewCard and tailwind.config.js
1 parent b63430b commit d352688

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

frontend/src/components/CourseCard/CourseCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function CourseCard({
1919
terms,
2020
}: CourseCardProps) {
2121
return (
22-
<div className='box-border px-6 py-7 bg-unilectives-card dark:bg-slate-700/40 hover:bg-gray-100 dark:hover:bg-slate-700/10 shadow-lg rounded-xl space-y-2 cursor-pointer duration-150'>
22+
<div className='box-border px-6 py-7 bg-unilectives-card dark:bg-slate-700/40 hover:bg-[#eff0f2] dark:hover:bg-slate-700/10 shadow-lg rounded-xl space-y-2 cursor-pointer duration-150'>
2323
{/* Course courseCode + Ratings */}
2424
<div className='flex flex-wrap justify-between text-2xl gap-x-4'>
2525
<h2 className='font-bold w-[8ch] text-black dark:text-white'>

frontend/src/components/Navbar/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function Navbar({ userZid }: NavbarProps) {
6767
ref={ref}
6868
className={
6969
collapsed
70-
? "fixed flex flex-col items-center w-20 h-screen gap-4 p-4 duration-150 bg-gray-50 dark:bg-slate-700 z-50 xs:p-2 xs:w-15 xs:gap-2"
70+
? "fixed flex flex-col items-center w-20 h-screen gap-4 p-4 duration-150 bg-gray-100 dark:bg-slate-700 z-50 xs:p-2 xs:w-15 xs:gap-2"
7171
: "fixed flex flex-col w-72 h-screen gap-4 p-4 bg-gray-50 dark:bg-slate-700 z-40 duration-150"
7272
}
7373
>

frontend/src/components/ReviewCard/ReviewCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default function ReviewCard({
8888
};
8989

9090
return (
91-
<div className='px-10 py-5 space-y-2 shadow-review-card rounded-md bg-white dark:bg-slate-800 dark:shadow-slate-700/90 duration-150 isolate'>
91+
<div className='px-10 py-5 space-y-2 shadow-review-card rounded-md bg-[#fafafa] dark:bg-[#273346] dark:shadow-slate-700/90 duration-150 isolate'>
9292
{/* Title + Date */}
9393
<div className='flex items-center gap-2 flex-wrap justify-between'>
9494
<h2 className='font-bold'>{review.title ? review.title : "-"}</h2>

frontend/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = {
2525
"unilectives-subheadings": "#989898",
2626
"unilectives-placeholder": "#606060",
2727
"unilectives-tags": "#CCEBF6",
28-
"unilectives-card": "#FAFAFA",
28+
"unilectives-card": "#f6f6f6",
2929
"unilectives-light-blue": "#84CEE7",
3030
"unilectives-purple": "#B789E5",
3131
"unilectives-indigo": "#9BADE8",

0 commit comments

Comments
 (0)