From 6241e4c3922f45f47ecfffeac3f21c74b85fd8a6 Mon Sep 17 00:00:00 2001 From: kawamataryo Date: Fri, 2 Feb 2024 15:14:29 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20add=20darkmode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/components/Modal.tsx | 2 +- src/lib/components/UserCard.tsx | 2 +- src/lib/constants.ts | 2 +- src/popup.tsx | 4 ++-- tailwind.config.js | 7 ++++++- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/lib/components/Modal.tsx b/src/lib/components/Modal.tsx index 2659ac1..08f7248 100644 --- a/src/lib/components/Modal.tsx +++ b/src/lib/components/Modal.tsx @@ -10,7 +10,7 @@ const Modal = ({ children, anchorRef, open = false }: Props) => { return ( <> -
+
{children}
diff --git a/src/lib/components/UserCard.tsx b/src/lib/components/UserCard.tsx index 42fcd69..17cc6ef 100644 --- a/src/lib/components/UserCard.tsx +++ b/src/lib/components/UserCard.tsx @@ -117,7 +117,7 @@ const UserCard = ({ user, actionMode, clickAction }: Props) => { {user.displayName} -

+

-

+

diff --git a/tailwind.config.js b/tailwind.config.js index 03c81e9..b5e0999 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -18,7 +18,12 @@ module.exports = { primary: "#1D4ED8" } }, + { + dark: { + ...require("daisyui/src/theming/themes").night, + primary: "#1D4ED8" + } + } ], }, - darkMode: ['class', '[data-theme="night"]'] }