From c982bd733003c37e0ecf428b77a186a6f8c1cd2e Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 1 Apr 2024 23:11:56 +0100 Subject: [PATCH] feat: light mode tweaks --- .../boards/[...boardId]/components/List.tsx | 6 +-- .../[...boardId]/components/ListDropdown.tsx | 18 ++++---- src/app/boards/[...boardId]/page.tsx | 12 +++--- .../boards/components/ImportBoardsForm.tsx | 43 ++++++++++--------- src/app/boards/components/NewBoardForm.tsx | 14 +++--- src/app/components/UserMenu.tsx | 26 +++++------ src/app/components/modal.tsx | 4 +- tailwind.config.ts | 3 +- 8 files changed, 64 insertions(+), 62 deletions(-) diff --git a/src/app/boards/[...boardId]/components/List.tsx b/src/app/boards/[...boardId]/components/List.tsx index c8124949..0e36e9ac 100644 --- a/src/app/boards/[...boardId]/components/List.tsx +++ b/src/app/boards/[...boardId]/components/List.tsx @@ -66,7 +66,7 @@ export default function List({ ref={provided.innerRef} {...provided.draggableProps} {...provided.dragHandleProps} - className="mr-5 h-fit min-w-[18rem] max-w-[18rem] rounded-md border border-dark-400 bg-dark-200 py-2 pl-2 pr-1" + className="bg-light-300 border-light-400 dark-text-dark-1000 mr-5 h-fit min-w-[18rem] max-w-[18rem] rounded-md border py-2 pl-2 pr-1 text-neutral-900 dark:border-dark-400 dark:bg-dark-200" >
- )} +
diff --git a/src/app/boards/[...boardId]/page.tsx b/src/app/boards/[...boardId]/page.tsx index 84d866ed..87ca5cdc 100644 --- a/src/app/boards/[...boardId]/page.tsx +++ b/src/app/boards/[...boardId]/page.tsx @@ -201,7 +201,7 @@ export default function BoardPage() {
-
+
@@ -208,37 +206,40 @@ const ImportTrello: React.FC = () => { ); return ( - +
@@ -254,7 +255,9 @@ export function ImportBoardsForm() { return ( <>
-

New import

+

+ New import +

@@ -53,19 +53,19 @@ export function NewBoardForm() {
diff --git a/src/app/components/UserMenu.tsx b/src/app/components/UserMenu.tsx index a94c6e79..474e685b 100644 --- a/src/app/components/UserMenu.tsx +++ b/src/app/components/UserMenu.tsx @@ -21,7 +21,7 @@ export default function UserMenu({ imageUrl, email }: UserMenuProps) { return (
- + {imageUrl ? ( ) : ( - + - -
+ +
-
+
Theme
-
+
diff --git a/src/app/components/modal.tsx b/src/app/components/modal.tsx index 4c663352..a343eeb5 100644 --- a/src/app/components/modal.tsx +++ b/src/app/components/modal.tsx @@ -24,7 +24,7 @@ const Modal: React.FC = ({ children }) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -38,7 +38,7 @@ const Modal: React.FC = ({ children }) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - + {children} diff --git a/tailwind.config.ts b/tailwind.config.ts index 467e09bf..804f136e 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -12,7 +12,8 @@ export default { sm: "0.8rem", }, boxShadow: { - '3xl': '0px 16px 70px rgba(0, 0, 0, 0.5)', + '3xl-dark': '0px 16px 70px rgba(0, 0, 0, 0.5)', + '3xl-light': 'rgba(0, 0, 0, 0.12) 0px 4px 30px, rgba(0, 0, 0, 0.04) 0px 3px 17px, rgba(0, 0, 0, 0.04) 0px 2px 8px, rgba(0, 0, 0, 0.04) 0px 1px 1px' }, colors: { "dark-50": "#161616",