From 9a2253b56ef165542d2a872992e0219f2d42dd17 Mon Sep 17 00:00:00 2001 From: moulichand16 Date: Wed, 1 Apr 2026 11:29:05 +0530 Subject: [PATCH] added colors to side bar --- .../base-components/nav-account-card.tsx | 2 +- .../base-components/nav-item.tsx | 16 ++++++------ .../base/avatar/avatar-label-group.tsx | 4 +-- src/components/layout/sidebar.tsx | 25 +++++++++++++------ src/styles/globals.css | 20 +++++++++++++++ src/styles/theme.css | 7 ++++++ 6 files changed, 56 insertions(+), 18 deletions(-) diff --git a/src/components/application/app-navigation/base-components/nav-account-card.tsx b/src/components/application/app-navigation/base-components/nav-account-card.tsx index 9f84595..da17827 100644 --- a/src/components/application/app-navigation/base-components/nav-account-card.tsx +++ b/src/components/application/app-navigation/base-components/nav-account-card.tsx @@ -145,7 +145,7 @@ export const NavAccountCard = ({ } return ( -
+
{children} @@ -62,7 +62,9 @@ export const NavItemBase = ({ current, type, badge, href, icon: Icon, children, if (type === "collapsible") { return ( - + {iconElement} {labelElement} @@ -80,7 +82,7 @@ export const NavItemBase = ({ current, type, badge, href, icon: Icon, children, href={href!} target={isExternal ? "_blank" : "_self"} rel="noopener noreferrer" - className={cx("py-2 pr-3 pl-10", styles.root, current && styles.rootSelected)} + className={cx("py-2 pr-3 pl-10 bg-sidebar", !current && "hover:bg-sidebar-hover", styles.root, current && styles.rootSelected)} onClick={onClick} aria-current={current ? "page" : undefined} > @@ -96,7 +98,7 @@ export const NavItemBase = ({ current, type, badge, href, icon: Icon, children, href={href!} target={isExternal ? "_blank" : "_self"} rel="noopener noreferrer" - className={cx("px-3 py-2", styles.root, current && styles.rootSelected)} + className={cx("px-3 py-2 bg-sidebar", !current && "hover:bg-sidebar-hover", styles.root, current && styles.rootSelected)} onClick={onClick} aria-current={current ? "page" : undefined} > diff --git a/src/components/base/avatar/avatar-label-group.tsx b/src/components/base/avatar/avatar-label-group.tsx index f9792e7..954a862 100644 --- a/src/components/base/avatar/avatar-label-group.tsx +++ b/src/components/base/avatar/avatar-label-group.tsx @@ -20,8 +20,8 @@ export const AvatarLabelGroup = ({ title, subtitle, className, ...props }: Avata
-

{title}

-

{subtitle}

+

{title}

+

{subtitle}

); diff --git a/src/components/layout/sidebar.tsx b/src/components/layout/sidebar.tsx index 82f5be0..4800c46 100644 --- a/src/components/layout/sidebar.tsx +++ b/src/components/layout/sidebar.tsx @@ -153,7 +153,7 @@ export const Sidebar = ({ activeUrl = "/" }: SidebarProps) => {