From 7dbf0e70a3209737ce94da0bcbd86a2eaa58e4d5 Mon Sep 17 00:00:00 2001 From: MananTank Date: Tue, 29 Apr 2025 09:00:12 +0000 Subject: [PATCH] [NEB-219] Nebula: Update theming (#6885) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on enhancing the `Nebula` application by introducing a new color scheme, refining components, and improving accessibility. It adds a `nebula-pink` color variant, modifies component styles, and updates layouts for better user experience. ### Detailed summary - Added `::selection` style in `nebula-global.css`. - Introduced `nebula-pink` color variant in `tailwind.config.js`. - Exported `useIsClientMounted` function in `ClientOnly.tsx`. - Updated global CSS variables for `nebula-pink-foreground`. - Modified button styles to utilize `nebula-pink`. - Adjusted layout and component styles for better aesthetics and usability. - Enhanced accessibility by refining header and button elements. - Implemented a theme toggle button in `ChatSidebar`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .../src/@/components/blocks/multi-select.tsx | 4 +- apps/dashboard/src/@/components/ui/button.tsx | 1 + .../nebula-app/(app)/components/ChatBar.tsx | 7 +-- .../(app)/components/ChatSidebar.tsx | 38 ++++++++----- .../components/EmptyStateChatPageContent.tsx | 16 ++++-- .../FloatingChat/FloatingChatContent.tsx | 6 +- .../app/nebula-app/(app)/icons/NebulaIcon.tsx | 55 ++----------------- apps/dashboard/src/app/nebula-app/layout.tsx | 1 + .../app/nebula-app/login/NebulaLoginPage.tsx | 8 +-- .../src/app/nebula-app/nebula-global.css | 3 + .../src/components/ClientOnly/ClientOnly.tsx | 2 +- .../src/components/buttons/MismatchButton.tsx | 8 +-- apps/dashboard/src/global.css | 2 + apps/dashboard/tailwind.config.js | 3 + 14 files changed, 67 insertions(+), 87 deletions(-) create mode 100644 apps/dashboard/src/app/nebula-app/nebula-global.css diff --git a/apps/dashboard/src/@/components/blocks/multi-select.tsx b/apps/dashboard/src/@/components/blocks/multi-select.tsx index ed1561479db..2824eaed728 100644 --- a/apps/dashboard/src/@/components/blocks/multi-select.tsx +++ b/apps/dashboard/src/@/components/blocks/multi-select.tsx @@ -217,7 +217,7 @@ export const MultiSelect = forwardRef( ( setSearchValue(e.target.value)} className="!h-auto rounded-b-none border-0 border-border border-b py-4 pl-10 focus-visible:ring-0 focus-visible:ring-offset-0" onKeyDown={handleInputKeyDown} diff --git a/apps/dashboard/src/@/components/ui/button.tsx b/apps/dashboard/src/@/components/ui/button.tsx index 201ea8d6361..d89c7a433b8 100644 --- a/apps/dashboard/src/@/components/ui/button.tsx +++ b/apps/dashboard/src/@/components/ui/button.tsx @@ -20,6 +20,7 @@ const buttonVariants = cva( "bg-secondary hover:bg-secondary/80 text-semibold text-secondary-foreground ", ghost: "hover:bg-accent text-semibold hover:text-accent-foreground", link: "text-primary underline-offset-4 hover:underline text-semibold", + pink: "border border-nebula-pink-foreground !text-nebula-pink-foreground bg-[hsl(var(--nebula-pink-foreground)/5%)] hover:bg-nebula-pink-foreground/10 dark:!text-foreground dark:bg-nebula-pink-foreground/10 dark:hover:bg-nebula-pink-foreground/20", upsell: "bg-gradient-to-r from-purple-500 to-pink-500 text-white hover:from-purple-600 hover:to-pink-600 shadow-lg hover:shadow-xl transform hover:-translate-y-0.5 transition-all duration-200", }, diff --git a/apps/dashboard/src/app/nebula-app/(app)/components/ChatBar.tsx b/apps/dashboard/src/app/nebula-app/(app)/components/ChatBar.tsx index f64a79392d9..6f0a751c59c 100644 --- a/apps/dashboard/src/app/nebula-app/(app)/components/ChatBar.tsx +++ b/apps/dashboard/src/app/nebula-app/(app)/components/ChatBar.tsx @@ -192,11 +192,8 @@ export function ChatBar(props: {