From 23fbb98ebf0405909f48ddb8f429ff2263b4464c Mon Sep 17 00:00:00 2001 From: adithiyan Date: Sun, 1 Nov 2026 14:27:33 +0530 Subject: [PATCH] Update frontend theme to white, purple, and light blue across all modules --- src/core/common/DynamicThemeStyles.tsx | 160 ++++++++++- src/core/common/header/index.tsx | 8 +- src/core/common/horizontal-sidebar/index.tsx | 4 +- src/core/common/sidebar/index.tsx | 20 +- .../common/theme-settings/themeSettings.tsx | 88 +----- src/core/data/redux/themeSettingSlice.tsx | 12 +- src/feature-module/auth/forgotPassword.tsx | 10 +- src/feature-module/auth/lockScreen.tsx | 8 +- src/feature-module/auth/login.tsx | 27 +- src/feature-module/auth/resetPassword.tsx | 8 +- .../crm/campaign/campaignInsights.tsx | 6 +- src/feature-module/crm/campaign/index.tsx | 38 +-- .../EmployeeDashboard/EmployeeDashboard.tsx | 44 +-- .../dealsDashboard/CipherBizzDashboard.tsx | 108 ++++---- .../mainMenu/dealsDashboard/index.tsx | 4 +- src/index.scss | 253 +++++++++++++----- src/style/scss/layout/_sidebar.scss | 36 +-- src/style/scss/layout/_theme.scss | 14 +- src/style/scss/pages/_campaign.scss | 24 +- src/style/scss/utils/_variables.scss | 114 ++++---- 20 files changed, 608 insertions(+), 378 deletions(-) diff --git a/src/core/common/DynamicThemeStyles.tsx b/src/core/common/DynamicThemeStyles.tsx index 587f0e0..4b9e5f9 100644 --- a/src/core/common/DynamicThemeStyles.tsx +++ b/src/core/common/DynamicThemeStyles.tsx @@ -2,13 +2,13 @@ import React, { useEffect } from "react"; import { useSelector } from "react-redux"; const themeColors: any = { - primary: "#69235B", - brightblue: "#4680ff", - lunargreen: "#365e32", - lavendar: "#69235B", - magenta: "#e83e8c", - chromeyellow: "#ff9b04", - lavared: "#dc2626", + primary: "#8B5CF6", + brightblue: "#38BDF8", + lunargreen: "#8B5CF6", + lavendar: "#8B5CF6", + magenta: "#8B5CF6", + chromeyellow: "#38BDF8", + lavared: "#8B5CF6", }; const DynamicThemeStyles = () => { @@ -134,6 +134,152 @@ const DynamicThemeStyles = () => { border-color: ${activeThemeColor} !important; color: #fff !important; } + + /* ========================================================= */ + /* GLOBAL CRM THEME ENFORCEMENT: WHITE, PURPLE & LIGHT BLUE */ + /* ========================================================= */ + + /* Sidebar Active & Selected Items */ + .sidebar .sidebar-menu ul li.active a, + .sidebar .sidebar-menu > ul > li ul > li.active a, + .sidebar .sidebar-menu > ul > li.active > a, + .sidebar .sidebar-menu a.active, + .sidebar .sidebar-menu a.bg-primary-subtle, + .sidebar .sidebar-menu a.bg-danger-subtle-light, + .sidebar .sidebar-menu .sidebar-jump.bg-primary-subtle, + .sidebar .sidebar-menu .sidebar-jump.bg-danger-subtle-light { + background: #F3E8FF !important; + background-color: #F3E8FF !important; + color: #8B5CF6 !important; + border-radius: 8px !important; + } + + .sidebar .sidebar-menu ul li.active a i, + .sidebar .sidebar-menu ul li.active a svg, + .sidebar .sidebar-menu ul li.active a span, + .sidebar .sidebar-menu a.active i, + .sidebar .sidebar-menu a.active svg, + .sidebar .sidebar-menu a.active span { + color: #8B5CF6 !important; + } + + .sidebar .sidebar-menu ul li.active a .menu-arrow::before, + .sidebar .sidebar-menu a.active .menu-arrow::before { + border-color: #8B5CF6 !important; + } + + /* Floating Theme Settings Cog */ + .sidebar-contact .toggle-theme { + background: #8B5CF6 !important; + background-color: #8B5CF6 !important; + color: #ffffff !important; + box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4) !important; + } + .sidebar-contact .toggle-theme i { + color: #ffffff !important; + } + + /* Global Subtitle / Danger Subtles */ + .bg-danger-subtle-light { + background-color: rgba(139, 92, 246, 0.1) !important; + color: #8B5CF6 !important; + } + + /* Campaign KPI Cards */ + .campaign-box.bg-danger-light { + background-color: #F5F3FF !important; + border: 1px solid #DDD6FE !important; + } + .campaign-box.bg-danger-light span { + background-color: #8B5CF6 !important; + color: #ffffff !important; + } + .campaign-box.bg-warning-light { + background-color: #F0F9FF !important; + border: 1px solid #BAE6FD !important; + } + .campaign-box.bg-warning-light span { + background-color: #38BDF8 !important; + color: #ffffff !important; + } + .campaign-box.bg-success-light { + background-color: #FAF5FF !important; + border: 1px solid #E9D5FF !important; + } + .campaign-box.bg-success-light span { + background-color: #7C3AED !important; + color: #ffffff !important; + } + .campaign-box.bg-purple-light { + background-color: #F5F3FF !important; + border: 1px solid #DDD6FE !important; + } + .campaign-box.bg-purple-light span { + background-color: #8B5CF6 !important; + color: #ffffff !important; + } + + /* Buttons: Ensure no stale orange/red outlines */ + .btn-outline-warning { + border-color: #38BDF8 !important; + color: #0284C7 !important; + background-color: transparent !important; + } + .btn-outline-warning:hover { + background-color: #38BDF8 !important; + border-color: #38BDF8 !important; + color: #ffffff !important; + } + + .btn-outline-info, + .btn-outline-secondary { + border-color: #38BDF8 !important; + color: #0284C7 !important; + } + .btn-outline-info:hover, + .btn-outline-secondary:hover { + background-color: #38BDF8 !important; + border-color: #38BDF8 !important; + color: #ffffff !important; + } + + .btn-outline-primary { + border-color: #8B5CF6 !important; + color: #8B5CF6 !important; + } + .btn-outline-primary:hover { + background-color: #8B5CF6 !important; + border-color: #8B5CF6 !important; + color: #ffffff !important; + } + + .btn-primary { + background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important; + border-color: #7C3AED !important; + color: #ffffff !important; + } + + /* Pagination and Active Tabs */ + .page-item.active .page-link, + .pagination .active .page-link { + background-color: #8B5CF6 !important; + border-color: #8B5CF6 !important; + color: #ffffff !important; + } + .nav-tabs .nav-link.active, + .nav-pills .nav-link.active { + background-color: #8B5CF6 !important; + border-color: #8B5CF6 !important; + color: #ffffff !important; + } + + /* Breadcrumbs */ + .breadcrumb-item.active { + color: #8B5CF6 !important; + } + .breadcrumb-item a:hover { + color: #8B5CF6 !important; + } `; return () => { diff --git a/src/core/common/header/index.tsx b/src/core/common/header/index.tsx index e87c5fe..356f7ba 100644 --- a/src/core/common/header/index.tsx +++ b/src/core/common/header/index.tsx @@ -472,11 +472,11 @@ const Header = () => { {logoRoute ? ( <> -

CRM

+

CRM

-

CRM

+

CRM

) : ( @@ -485,14 +485,14 @@ const Header = () => { className="logo logo-normal mt-2 mb-2" style={{ cursor: "not-allowed", opacity: 0.6, textDecoration: 'none' }} > -

CRM

+

CRM

-

CRM

+

CRM

)} diff --git a/src/core/common/horizontal-sidebar/index.tsx b/src/core/common/horizontal-sidebar/index.tsx index 4c4d3c2..24245d3 100644 --- a/src/core/common/horizontal-sidebar/index.tsx +++ b/src/core/common/horizontal-sidebar/index.tsx @@ -155,11 +155,11 @@ useEffect(() => { className={`${active ? "active" : ""} ${subOpen === data.menuValue ? "subdrop" : ""}`} onClick={() => toggleSidebar(data.menuValue)} onMouseEnter={(e) => { - e.currentTarget.classList.add("bg-danger-subtle-light", "bg-opacity-25", "text-primary"); + e.currentTarget.classList.add("bg-primary-subtle", "bg-opacity-25", "text-primary"); }} onMouseLeave={(e) => { if (!active && subOpen !== data.menuValue) { - e.currentTarget.classList.remove("bg-danger-subtle-light", "bg-opacity-25", "text-primary"); + e.currentTarget.classList.remove("bg-primary-subtle", "bg-opacity-25", "text-primary"); } }} > diff --git a/src/core/common/sidebar/index.tsx b/src/core/common/sidebar/index.tsx index f35c4dd..7e8c309 100644 --- a/src/core/common/sidebar/index.tsx +++ b/src/core/common/sidebar/index.tsx @@ -473,7 +473,7 @@ const findActiveSubmenu = () => { onClick={handleLinkClick} className={`d-flex align-items-center px-2 py-2 text-decoration-none transition-all ${ Location.pathname === all_routes.profile - ? "bg-danger-subtle-light bg-opacity-25 text-primary fw-semibold" + ? "bg-primary-subtle bg-opacity-25 text-primary fw-semibold" : "text-dark" }`} style={{ @@ -485,7 +485,7 @@ const findActiveSubmenu = () => { }} onMouseEnter={(e) => { e.currentTarget.classList.add( - "bg-danger-subtle-light", + "bg-primary-subtle", "bg-opacity-25", "text-primary", "fw-semibold" @@ -494,7 +494,7 @@ const findActiveSubmenu = () => { onMouseLeave={(e) => { if (Location.pathname !== all_routes.profile) { e.currentTarget.classList.remove( - "bg-danger-subtle-light", + "bg-primary-subtle", "bg-opacity-25", "text-primary", "fw-semibold" @@ -554,7 +554,7 @@ const findActiveSubmenu = () => { }} onMouseEnter={(e) => { e.currentTarget.classList.add( - "bg-danger-subtle-light", + "bg-primary-subtle", "bg-opacity-25", "text-primary", "fw-semibold" @@ -565,7 +565,7 @@ const findActiveSubmenu = () => { onMouseLeave={(e) => { if (!e.currentTarget.contains(document.activeElement)) { e.currentTarget.classList.remove( - "bg-danger-subtle-light", + "bg-primary-subtle", "bg-opacity-25", "text-primary", "fw-semibold" @@ -594,7 +594,7 @@ const findActiveSubmenu = () => { onFocus={(e) => { const parent = e.currentTarget.parentElement!; parent.classList.add( - "bg-danger-subtle-light", + "bg-primary-subtle", "bg-opacity-25", "text-primary", "fw-semibold" @@ -606,7 +606,7 @@ const findActiveSubmenu = () => { const parent = e.currentTarget.parentElement!; if (!e.currentTarget.value) { parent.classList.remove( - "bg-danger-subtle-light", + "bg-primary-subtle", "bg-opacity-25", "text-primary", "fw-semibold" @@ -686,7 +686,7 @@ const findActiveSubmenu = () => { }} onMouseEnter={(e) => { e.currentTarget.classList.add( - "bg-danger-subtle-light", + "bg-primary-subtle", "bg-opacity-25", "text-primary", "fw-semibold" @@ -708,7 +708,7 @@ const findActiveSubmenu = () => { if (!isActive) { e.currentTarget.classList.remove( - "bg-danger-subtle-light", + "bg-primary-subtle", "bg-opacity-25", "text-primary", "fw-semibold" @@ -728,7 +728,7 @@ const findActiveSubmenu = () => { title?.submenuItems?.some( (link) => link?.link === Location.pathname ) - ? "bg-danger-subtle-light bg-opacity-25 text-primary fw-semibold" + ? "bg-primary-subtle bg-opacity-25 text-primary fw-semibold" : "text-dark" }`} style={{ diff --git a/src/core/common/theme-settings/themeSettings.tsx b/src/core/common/theme-settings/themeSettings.tsx index 3ce0770..6a3914a 100644 --- a/src/core/common/theme-settings/themeSettings.tsx +++ b/src/core/common/theme-settings/themeSettings.tsx @@ -198,8 +198,13 @@ const ThemeSettings = () => {
setShowTheme(true)} + style={{ + backgroundColor: "#8B5CF6", + color: "#ffffff", + boxShadow: "0 2px 8px rgba(139, 92, 246, 0.4)", + }} > - +
)} @@ -970,7 +975,7 @@ const ThemeSettings = () => { checked={dataColor === "primary" ? true : false} onChange={() => handleDataColorChange("primary")} /> -