From f011f812a8e5a7a4ed8a01a82ef155716fe9a3c1 Mon Sep 17 00:00:00 2001 From: Wind-Explorer Date: Sat, 13 Jul 2024 11:36:20 +0800 Subject: [PATCH] Red color --- client/src/components/NavigationBar.tsx | 8 +-- .../src/components/SingaporeAgencyStrip.tsx | 4 +- client/src/components/SpringboardButton.tsx | 7 ++- client/src/components/UpdateAccountModule.tsx | 10 ++-- client/src/components/UserProfilePicture.tsx | 2 +- client/src/main.tsx | 4 +- client/src/pages/CommunityPage.tsx | 6 +- client/src/pages/CreatePostPage.tsx | 4 +- client/src/pages/EditPostPage.tsx | 4 +- client/src/pages/EventsPage.tsx | 13 ++-- client/src/pages/SpringboardPage.tsx | 6 +- client/tailwind.config.js | 60 ++++++++++++++++--- 12 files changed, 93 insertions(+), 35 deletions(-) diff --git a/client/src/components/NavigationBar.tsx b/client/src/components/NavigationBar.tsx index 600d24b..408e929 100644 --- a/client/src/components/NavigationBar.tsx +++ b/client/src/components/NavigationBar.tsx @@ -59,7 +59,7 @@ export default function NavigationBar() { : "transition-all fixed w-full p-2 mt-8" } > -
+
-
-
); diff --git a/client/src/components/SpringboardButton.tsx b/client/src/components/SpringboardButton.tsx index a97b1fb..0e514d5 100644 --- a/client/src/components/SpringboardButton.tsx +++ b/client/src/components/SpringboardButton.tsx @@ -12,7 +12,12 @@ export default function SpringboardButton({ }) { const navigate = useNavigate(); return ( -
-
+
diff --git a/client/src/components/UserProfilePicture.tsx b/client/src/components/UserProfilePicture.tsx index 444d66a..1b4f484 100644 --- a/client/src/components/UserProfilePicture.tsx +++ b/client/src/components/UserProfilePicture.tsx @@ -63,7 +63,7 @@ export default function UserProfilePicture({ onChange={handleFileChange} />
-
+
-
+
-
+
{!loading && (
-
+
)} @@ -104,7 +104,7 @@ export default function SpringboardPage() {
-
+
@@ -119,7 +119,7 @@ export default function SpringboardPage() {

If you wish to recover the account, please{" "} - + contact us

diff --git a/client/tailwind.config.js b/client/tailwind.config.js index ff13130..de9c5c3 100644 --- a/client/tailwind.config.js +++ b/client/tailwind.config.js @@ -7,13 +7,57 @@ export default { "./src/**/*.{js,ts,jsx,tsx}", "./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}", ], - theme: { - extend: { - colors: { - 'red-color': '#F36E6E', // Your color code - }, - }, - }, darkMode: "class", - plugins: [nextui()], + plugins: [ + nextui({ + themes: { + "red-dark": { + extend: "dark", + colors: { + background: "#1A0000", + foreground: "#ffffff", + primary: { + 50: "#FFE5E5", + 100: "#FFB3B3", + 200: "#FF8080", + 300: "#FF4040", + 400: "#F00000", + 500: "#D20000", + 600: "#B50000", + 700: "#960000", + 800: "#780000", + 900: "#610000", + 950: "#420000", + DEFAULT: "#F00000", + foreground: "#ffffff", + }, + focus: "#FF4040", + }, + }, + "red-light": { + extend: "light", // <- inherit default values from light theme + colors: { + background: "#ffffff", + foreground: "#1A0000", + primary: { + 50: "#FFE5E5", + 100: "#FFB3B3", + 200: "#FF8080", + 300: "#FF4040", + 400: "#FF0000", + 500: "#E60000", + 600: "#CC0000", + 700: "#B30000", + 800: "#990000", + 900: "#800000", + 950: "#690000", + DEFAULT: "#FF0000", + foreground: "#ffffff", + }, + focus: "#FF8080", + }, + }, + }, + }), + ], };