Apply white, purple, and light blue UI theme across all widgets, elements, buttons, and badges
This commit is contained in:
parent
23fbb98ebf
commit
f7f29e5b5d
18 changed files with 578 additions and 200 deletions
|
|
@ -6,7 +6,6 @@
|
||||||
<title>CRM</title>
|
<title>CRM</title>
|
||||||
|
|
||||||
<!-- CSS -->
|
<!-- CSS -->
|
||||||
<link rel="stylesheet" href="./static/css/main.7cd51ecf.css" />
|
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css"
|
href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css"
|
||||||
|
|
|
||||||
|
|
@ -10,32 +10,43 @@ interface AnimatedBadgeProps {
|
||||||
const AnimatedBadge: React.FC<AnimatedBadgeProps> = (props) => {
|
const AnimatedBadge: React.FC<AnimatedBadgeProps> = (props) => {
|
||||||
const { status, color, className = "", icon } = props;
|
const { status, color, className = "", icon } = props;
|
||||||
|
|
||||||
|
const sanitizeBadgeColor = (c?: string) => {
|
||||||
|
if (!c) return undefined;
|
||||||
|
const lower = c.toLowerCase();
|
||||||
|
if (["#28a745", "#30bc20ff", "#198754", "#22c55e", "#10b981", "#16a34a"].includes(lower)) return "#8B5CF6";
|
||||||
|
if (["#dc3545", "#ea5455", "#e41f07", "#dc2626", "#ef4444", "#ff0e0e", "#e11d48"].includes(lower)) return "#7C3AED";
|
||||||
|
if (["#fda700", "#ffc107", "#ffa201", "#f59e0b", "#ff9d0a", "#ff9b04", "#d97706", "#ea580c"].includes(lower)) return "#38BDF8";
|
||||||
|
if (["#1ecbe2", "#0d6efd", "#007bff", "#0284c7"].includes(lower)) return "#38BDF8";
|
||||||
|
return c;
|
||||||
|
};
|
||||||
|
|
||||||
const getStatusColor = (status: string) => {
|
const getStatusColor = (status: string) => {
|
||||||
const lowerStatus = status.toLowerCase().trim();
|
const lowerStatus = status.toLowerCase().trim();
|
||||||
|
|
||||||
// ✅ Added: Active & Inactive support (highest priority)
|
if (lowerStatus === "active") return "#8B5CF6"; // Vibrant Purple
|
||||||
if (lowerStatus === "active") return "#28a745"; // Bootstrap success green
|
if (lowerStatus === "inactive") return "#94A3B8"; // Muted Slate
|
||||||
if (lowerStatus === "inactive") return "#dc3545";
|
if (lowerStatus === "contacted") return "#38BDF8"; // Light Blue
|
||||||
if (lowerStatus === "contacted") return "#30bc20ff"; // Success Green
|
if (lowerStatus === "closed") return "#7C3AED"; // Deep Purple
|
||||||
if (lowerStatus === "closed") return "#1ecbe2"; // Info Cyan
|
if (lowerStatus === "lost") return "#64748B"; // Slate Gray
|
||||||
if (lowerStatus === "lost") return "#EA5455"; // Danger Red
|
if (lowerStatus === "not_contacted" || lowerStatus === "not contacted") return "#38BDF8"; // Light Blue
|
||||||
if (lowerStatus === "not_contacted" || lowerStatus === "not contacted") return "#fda700"; // Warning Orange
|
if (lowerStatus === "pending") return "#38BDF8"; // Light Blue
|
||||||
return undefined; // No default here
|
if (lowerStatus === "sent") return "#8B5CF6"; // Purple
|
||||||
|
if (lowerStatus === "failed") return "#7C3AED"; // Deep Purple
|
||||||
|
return "#8B5CF6";
|
||||||
};
|
};
|
||||||
|
|
||||||
const isKnownStatus = (status: string) => {
|
const isKnownStatus = (status: string) => {
|
||||||
const lower = status.toLowerCase().trim();
|
const lower = status.toLowerCase().trim();
|
||||||
return ["active", "inactive", "contacted", "closed", "lost", "not_contacted", "not contacted"].includes(lower);
|
return ["active", "inactive", "contacted", "closed", "lost", "not_contacted", "not contacted", "pending", "sent", "failed"].includes(lower);
|
||||||
};
|
};
|
||||||
|
|
||||||
let badgeColor = color;
|
let badgeColor = sanitizeBadgeColor(color);
|
||||||
|
|
||||||
if (!badgeColor) {
|
if (!badgeColor) {
|
||||||
if (isKnownStatus(status)) {
|
if (isKnownStatus(status)) {
|
||||||
badgeColor = getStatusColor(status);
|
badgeColor = getStatusColor(status);
|
||||||
} else if (!className) {
|
} else if (!className) {
|
||||||
// Only default to purple if no class is provided
|
badgeColor = "#8B5CF6";
|
||||||
badgeColor = "#7367F0";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -219,46 +219,278 @@ const DynamicThemeStyles = () => {
|
||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Buttons: Ensure no stale orange/red outlines */
|
/* Buttons: Complete overhaul of danger, warning, success, primary, info, secondary */
|
||||||
.btn-outline-warning {
|
.btn-danger,
|
||||||
|
.btn.btn-danger {
|
||||||
|
background: #7C3AED !important;
|
||||||
|
background-color: #7C3AED !important;
|
||||||
|
border-color: #7C3AED !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
.btn-danger:hover,
|
||||||
|
.btn.btn-danger:hover {
|
||||||
|
background-color: #6D28D9 !important;
|
||||||
|
border-color: #6D28D9 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-danger,
|
||||||
|
.btn.btn-outline-danger {
|
||||||
|
border-color: #7C3AED !important;
|
||||||
|
color: #7C3AED !important;
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
.btn-outline-danger:hover,
|
||||||
|
.btn.btn-outline-danger:hover {
|
||||||
|
background-color: #7C3AED !important;
|
||||||
|
border-color: #7C3AED !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-warning,
|
||||||
|
.btn.btn-outline-warning {
|
||||||
border-color: #38BDF8 !important;
|
border-color: #38BDF8 !important;
|
||||||
color: #0284C7 !important;
|
color: #0284C7 !important;
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
}
|
}
|
||||||
.btn-outline-warning:hover {
|
.btn-outline-warning:hover,
|
||||||
|
.btn.btn-outline-warning:hover {
|
||||||
background-color: #38BDF8 !important;
|
background-color: #38BDF8 !important;
|
||||||
border-color: #38BDF8 !important;
|
border-color: #38BDF8 !important;
|
||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-outline-info,
|
.btn-warning,
|
||||||
.btn-outline-secondary {
|
.btn.btn-warning {
|
||||||
border-color: #38BDF8 !important;
|
|
||||||
color: #0284C7 !important;
|
|
||||||
}
|
|
||||||
.btn-outline-info:hover,
|
|
||||||
.btn-outline-secondary:hover {
|
|
||||||
background-color: #38BDF8 !important;
|
background-color: #38BDF8 !important;
|
||||||
border-color: #38BDF8 !important;
|
border-color: #38BDF8 !important;
|
||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
}
|
}
|
||||||
|
.btn-warning:hover,
|
||||||
|
.btn.btn-warning:hover {
|
||||||
|
background-color: #0EA5E9 !important;
|
||||||
|
border-color: #0EA5E9 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-outline-primary {
|
.btn-outline-success,
|
||||||
|
.btn.btn-outline-success {
|
||||||
border-color: #8B5CF6 !important;
|
border-color: #8B5CF6 !important;
|
||||||
color: #8B5CF6 !important;
|
color: #8B5CF6 !important;
|
||||||
|
background-color: transparent !important;
|
||||||
}
|
}
|
||||||
.btn-outline-primary:hover {
|
.btn-outline-success:hover,
|
||||||
|
.btn.btn-outline-success:hover {
|
||||||
background-color: #8B5CF6 !important;
|
background-color: #8B5CF6 !important;
|
||||||
border-color: #8B5CF6 !important;
|
border-color: #8B5CF6 !important;
|
||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary {
|
.btn-success,
|
||||||
|
.btn.btn-success {
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
.btn-success:hover,
|
||||||
|
.btn.btn-success:hover {
|
||||||
|
background-color: #7C3AED !important;
|
||||||
|
border-color: #7C3AED !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-info,
|
||||||
|
.btn-outline-secondary,
|
||||||
|
.btn.btn-outline-info,
|
||||||
|
.btn.btn-outline-secondary {
|
||||||
|
border-color: #38BDF8 !important;
|
||||||
|
color: #0284C7 !important;
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
.btn-outline-info:hover,
|
||||||
|
.btn-outline-secondary:hover,
|
||||||
|
.btn.btn-outline-info:hover,
|
||||||
|
.btn.btn-outline-secondary:hover {
|
||||||
|
background-color: #38BDF8 !important;
|
||||||
|
border-color: #38BDF8 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-primary,
|
||||||
|
.btn.btn-outline-primary {
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
.btn-outline-primary:hover,
|
||||||
|
.btn.btn-outline-primary:hover {
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary,
|
||||||
|
.btn.btn-primary {
|
||||||
background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
|
background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
|
||||||
border-color: #7C3AED !important;
|
border-color: #7C3AED !important;
|
||||||
color: #ffffff !important;
|
color: #ffffff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-save {
|
||||||
|
background: #8B5CF6 !important;
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Widgets & KPI Cards */
|
||||||
|
.card {
|
||||||
|
border-color: #f1f5f9 !important;
|
||||||
|
}
|
||||||
|
.kpi-icon.bg-warning,
|
||||||
|
.kpi-icon.bg-warning-subtle {
|
||||||
|
background-color: #E0F2FE !important;
|
||||||
|
color: #0284C7 !important;
|
||||||
|
}
|
||||||
|
.kpi-icon.bg-success,
|
||||||
|
.kpi-icon.bg-success-subtle {
|
||||||
|
background-color: #F3E8FF !important;
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
.kpi-icon.bg-danger,
|
||||||
|
.kpi-icon.bg-danger-subtle {
|
||||||
|
background-color: #F3E8FF !important;
|
||||||
|
color: #7C3AED !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.kpi-accent-success .kpi-icon-badge,
|
||||||
|
.kpi-accent-info .kpi-icon-badge,
|
||||||
|
.kpi-accent-peach .kpi-icon-badge {
|
||||||
|
background: #E0F2FE !important;
|
||||||
|
color: #0284C7 !important;
|
||||||
|
}
|
||||||
|
.kpi-accent-warning .kpi-icon-badge,
|
||||||
|
.kpi-accent-danger .kpi-icon-badge,
|
||||||
|
.kpi-accent-primary .kpi-icon-badge,
|
||||||
|
.kpi-accent-secondary .kpi-icon-badge {
|
||||||
|
background: #F3E8FF !important;
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Badges & Tags across all tables and widgets */
|
||||||
|
.badge.bg-warning,
|
||||||
|
.badge.bg-warning-subtle,
|
||||||
|
.badge-soft-warning,
|
||||||
|
.badge-warning {
|
||||||
|
background-color: #E0F2FE !important;
|
||||||
|
color: #0284C7 !important;
|
||||||
|
border: 1px solid #BAE6FD !important;
|
||||||
|
}
|
||||||
|
.badge.bg-success,
|
||||||
|
.badge.bg-success-subtle,
|
||||||
|
.badge-soft-success,
|
||||||
|
.badge-success {
|
||||||
|
background-color: #F3E8FF !important;
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
border: 1px solid #DDD6FE !important;
|
||||||
|
}
|
||||||
|
.badge.bg-danger,
|
||||||
|
.badge.bg-danger-subtle,
|
||||||
|
.badge-soft-danger,
|
||||||
|
.badge-danger {
|
||||||
|
background-color: #F3E8FF !important;
|
||||||
|
color: #7C3AED !important;
|
||||||
|
border: 1px solid #DDD6FE !important;
|
||||||
|
}
|
||||||
|
.badge.bg-info,
|
||||||
|
.badge.bg-info-subtle,
|
||||||
|
.badge-soft-info,
|
||||||
|
.badge-info {
|
||||||
|
background-color: #E0F2FE !important;
|
||||||
|
color: #0284C7 !important;
|
||||||
|
border: 1px solid #BAE6FD !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Text and Background Utility Overrides */
|
||||||
|
.bg-danger,
|
||||||
|
.bg-danger-subtle,
|
||||||
|
.bg-light-danger {
|
||||||
|
background-color: #F3E8FF !important;
|
||||||
|
color: #7C3AED !important;
|
||||||
|
}
|
||||||
|
.bg-warning,
|
||||||
|
.bg-warning-subtle,
|
||||||
|
.bg-light-warning {
|
||||||
|
background-color: #E0F2FE !important;
|
||||||
|
color: #0284C7 !important;
|
||||||
|
}
|
||||||
|
.bg-success,
|
||||||
|
.bg-success-subtle,
|
||||||
|
.bg-light-success {
|
||||||
|
background-color: #F3E8FF !important;
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
.text-danger {
|
||||||
|
color: #7C3AED !important;
|
||||||
|
}
|
||||||
|
.text-warning {
|
||||||
|
color: #0284C7 !important;
|
||||||
|
}
|
||||||
|
.text-success {
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
.text-info {
|
||||||
|
color: #0284C7 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Alerts */
|
||||||
|
.alert-danger {
|
||||||
|
background-color: #FAF5FF !important;
|
||||||
|
border-color: #DDD6FE !important;
|
||||||
|
color: #7C3AED !important;
|
||||||
|
}
|
||||||
|
.alert-warning {
|
||||||
|
background-color: #F0F9FF !important;
|
||||||
|
border-color: #BAE6FD !important;
|
||||||
|
color: #0284C7 !important;
|
||||||
|
}
|
||||||
|
.alert-success {
|
||||||
|
background-color: #FAF5FF !important;
|
||||||
|
border-color: #DDD6FE !important;
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Modals */
|
||||||
|
.modal-header .btn-close,
|
||||||
|
.modal-header .close {
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
opacity: 0.8 !important;
|
||||||
|
}
|
||||||
|
.modal-header {
|
||||||
|
border-bottom: 1px solid #F1F5F9 !important;
|
||||||
|
}
|
||||||
|
.modal-content {
|
||||||
|
border-radius: 12px !important;
|
||||||
|
border: 1px solid #E2E8F0 !important;
|
||||||
|
}
|
||||||
|
.modal-footer {
|
||||||
|
border-top: 1px solid #F1F5F9 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Form controls focus */
|
||||||
|
.form-control:focus,
|
||||||
|
.form-select:focus {
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.2) !important;
|
||||||
|
}
|
||||||
|
.form-check-input:checked {
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Schedule Dots */
|
||||||
|
.dot.red { background-color: #7C3AED !important; }
|
||||||
|
.dot.yellow { background-color: #38BDF8 !important; }
|
||||||
|
.dot.green { background-color: #8B5CF6 !important; }
|
||||||
|
|
||||||
/* Pagination and Active Tabs */
|
/* Pagination and Active Tabs */
|
||||||
.page-item.active .page-link,
|
.page-item.active .page-link,
|
||||||
.pagination .active .page-link {
|
.pagination .active .page-link {
|
||||||
|
|
@ -280,6 +512,31 @@ const DynamicThemeStyles = () => {
|
||||||
.breadcrumb-item a:hover {
|
.breadcrumb-item a:hover {
|
||||||
color: #8B5CF6 !important;
|
color: #8B5CF6 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* SVG / ApexCharts overrides for old palette */
|
||||||
|
.apexcharts-series path[stroke="#f59e0b"],
|
||||||
|
.apexcharts-series path[fill="#f59e0b"],
|
||||||
|
.apexcharts-series path[fill="#F59E0B"],
|
||||||
|
.apexcharts-series path[stroke="#F59E0B"] {
|
||||||
|
fill: #38BDF8 !important;
|
||||||
|
stroke: #38BDF8 !important;
|
||||||
|
}
|
||||||
|
.apexcharts-series path[stroke="#ef4444"],
|
||||||
|
.apexcharts-series path[fill="#ef4444"],
|
||||||
|
.apexcharts-series path[fill="#EF4444"],
|
||||||
|
.apexcharts-series path[stroke="#EF4444"] {
|
||||||
|
fill: #7C3AED !important;
|
||||||
|
stroke: #7C3AED !important;
|
||||||
|
}
|
||||||
|
.apexcharts-series path[stroke="#10b981"],
|
||||||
|
.apexcharts-series path[fill="#10b981"],
|
||||||
|
.apexcharts-series path[fill="#10B981"],
|
||||||
|
.apexcharts-series path[stroke="#10B981"],
|
||||||
|
.apexcharts-series path[stroke="#22c55e"],
|
||||||
|
.apexcharts-series path[fill="#22c55e"] {
|
||||||
|
fill: #8B5CF6 !important;
|
||||||
|
stroke: #8B5CF6 !important;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
|
|
|
||||||
|
|
@ -87,12 +87,29 @@ const KpiCard: React.FC<KpiCardProps> = ({
|
||||||
tooltip,
|
tooltip,
|
||||||
style,
|
style,
|
||||||
percentage,
|
percentage,
|
||||||
percentageColor = "success",
|
percentageColor = "primary",
|
||||||
percentageIcon,
|
percentageIcon,
|
||||||
}) => {
|
}) => {
|
||||||
|
const normalizedColor =
|
||||||
|
color === "danger" || color === "warning" || color === "peach" || color === "primary"
|
||||||
|
? "primary"
|
||||||
|
: "secondary";
|
||||||
|
|
||||||
|
const normalizedPercentageColor =
|
||||||
|
percentageColor === "danger" ? "primary" : percentageColor === "warning" ? "secondary" : "secondary";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="card shadow-sm h-100 dashboard-card kpi-card" style={style}>
|
<div
|
||||||
<div className="card-body d-flex align-items-center justify-content-between">
|
className="card shadow-sm h-100 dashboard-card kpi-card"
|
||||||
|
style={{
|
||||||
|
backgroundColor: "#ffffff",
|
||||||
|
border: "1px solid #f1f5f9",
|
||||||
|
borderRadius: "12px",
|
||||||
|
transition: "all 0.25s ease",
|
||||||
|
...style,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div className="card-body d-flex align-items-center justify-content-between p-3">
|
||||||
{/* LEFT CONTENT */}
|
{/* LEFT CONTENT */}
|
||||||
<div>
|
<div>
|
||||||
<div className="d-flex align-items-start gap-1 mb-1">
|
<div className="d-flex align-items-start gap-1 mb-1">
|
||||||
|
|
@ -102,13 +119,16 @@ const KpiCard: React.FC<KpiCardProps> = ({
|
||||||
<Tip text={tooltip}>
|
<Tip text={tooltip}>
|
||||||
<i
|
<i
|
||||||
className="fa fa-info-circle text-secondary ms-1"
|
className="fa fa-info-circle text-secondary ms-1"
|
||||||
style={{ cursor: "pointer", fontSize: "13px", marginTop:"3px" }}
|
style={{ cursor: "pointer", fontSize: "13px", marginTop: "3px" }}
|
||||||
/>
|
/>
|
||||||
</Tip>
|
</Tip>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<h6 className="text-muted mb-0 fw-semibold">{title1}</h6>
|
{title1 && <h6 className="text-muted mb-0 fw-semibold">{title1}</h6>}
|
||||||
<h3 className={`fw-bold text-${color} mb-0`}>
|
<h3
|
||||||
|
className="fw-bold mb-0"
|
||||||
|
style={{ color: normalizedColor === "primary" ? "#8B5CF6" : "#0284C7" }}
|
||||||
|
>
|
||||||
<CountUp end={value} duration={1.3} separator="," preserveValue />
|
<CountUp end={value} duration={1.3} separator="," preserveValue />
|
||||||
{suffix}
|
{suffix}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -119,10 +139,11 @@ const KpiCard: React.FC<KpiCardProps> = ({
|
||||||
|
|
||||||
{/* Reserve space for percentage line on ALL cards */}
|
{/* Reserve space for percentage line on ALL cards */}
|
||||||
<div className="d-flex align-items-center gap-1 mt-2 min-h-20">
|
<div className="d-flex align-items-center gap-1 mt-2 min-h-20">
|
||||||
{" "}
|
|
||||||
{/* min-h-20 = min-height: 20px */}
|
|
||||||
{percentage !== undefined ? (
|
{percentage !== undefined ? (
|
||||||
<span className={`text-${percentageColor} fw-semibold small`}>
|
<span
|
||||||
|
className="fw-semibold small"
|
||||||
|
style={{ color: normalizedPercentageColor === "primary" ? "#8B5CF6" : "#0284C7" }}
|
||||||
|
>
|
||||||
{percentageIcon && <i className={`${percentageIcon} me-1`} />}
|
{percentageIcon && <i className={`${percentageIcon} me-1`} />}
|
||||||
{Math.abs(parseFloat(percentage))}%
|
{Math.abs(parseFloat(percentage))}%
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -136,8 +157,22 @@ const KpiCard: React.FC<KpiCardProps> = ({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* RIGHT ICON */}
|
{/* RIGHT ICON */}
|
||||||
<div className={`kpi-icon bg-${color}`}>
|
<div
|
||||||
<i className={`${icon} text-white`} />
|
className="kpi-icon rounded-circle d-flex align-items-center justify-content-center"
|
||||||
|
style={{
|
||||||
|
width: "48px",
|
||||||
|
height: "48px",
|
||||||
|
backgroundColor: normalizedColor === "primary" ? "#F3E8FF" : "#E0F2FE",
|
||||||
|
color: normalizedColor === "primary" ? "#8B5CF6" : "#0284C7",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
className={`${icon}`}
|
||||||
|
style={{
|
||||||
|
fontSize: "22px",
|
||||||
|
color: normalizedColor === "primary" ? "#8B5CF6" : "#0284C7",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -4077,7 +4077,7 @@ if (assignOnCreate && selectedUserForCreate && createdContactId) {
|
||||||
</div>
|
</div>
|
||||||
<SequentialHighlight>
|
<SequentialHighlight>
|
||||||
<button
|
<button
|
||||||
className="btn btn-outline-warning me-2 mb-0"
|
className="btn btn-outline-primary me-2 mb-0"
|
||||||
onClick={() => setShowImportModal(true)}
|
onClick={() => setShowImportModal(true)}
|
||||||
>
|
>
|
||||||
<i className="ti ti-file-import me-2" />
|
<i className="ti ti-file-import me-2" />
|
||||||
|
|
@ -4086,7 +4086,7 @@ if (assignOnCreate && selectedUserForCreate && createdContactId) {
|
||||||
|
|
||||||
<Link
|
<Link
|
||||||
to={route.contactimport}
|
to={route.contactimport}
|
||||||
className="btn btn-outline-success me-2 mb-0"
|
className="btn btn-outline-secondary me-2 mb-0"
|
||||||
>
|
>
|
||||||
<i className="ti ti-address-book me-2" />
|
<i className="ti ti-address-book me-2" />
|
||||||
Import Contacts
|
Import Contacts
|
||||||
|
|
@ -4094,7 +4094,7 @@ if (assignOnCreate && selectedUserForCreate && createdContactId) {
|
||||||
{userRole === "admin" && (
|
{userRole === "admin" && (
|
||||||
<Link
|
<Link
|
||||||
to={route.contactInsights}
|
to={route.contactInsights}
|
||||||
className="btn btn-outline-info me-2 mb-0"
|
className="btn btn-outline-primary me-2 mb-0"
|
||||||
>
|
>
|
||||||
<i className="ti ti-graph me-2" />
|
<i className="ti ti-graph me-2" />
|
||||||
Contacts Insights
|
Contacts Insights
|
||||||
|
|
|
||||||
|
|
@ -1476,12 +1476,12 @@ if (formData.leadSourceType === "file-based") {
|
||||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700:800&display=swap');
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700:800&display=swap');
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--primary: #4F46E5; /* Indigo-600 */
|
--primary: #8B5CF6; /* Purple-500 */
|
||||||
--primary-dark: #4338CA; /* Indigo-700 */
|
--primary-dark: #7C3AED; /* Purple-600 */
|
||||||
--success: #10B981; /* Emerald-500 */
|
--success: #8B5CF6; /* Purple-500 */
|
||||||
--success-dark: #059669; /* Emerald-600 */
|
--success-dark: #7C3AED; /* Purple-600 */
|
||||||
--warning: #F59E0B; /* Amber-500 */
|
--warning: #38BDF8; /* Sky-400 */
|
||||||
--danger: #EF4444; /* Red-500 */
|
--danger: #7C3AED; /* Purple-600 */
|
||||||
--background: #F1F5F9; /* Slate-100 */
|
--background: #F1F5F9; /* Slate-100 */
|
||||||
--card-bg: rgba(255, 255, 255, 0.85);
|
--card-bg: rgba(255, 255, 255, 0.85);
|
||||||
--text-primary: #1E293B; /* Slate-800 */
|
--text-primary: #1E293B; /* Slate-800 */
|
||||||
|
|
|
||||||
|
|
@ -2232,7 +2232,7 @@ const Deals = () => {
|
||||||
{userRole === "admin" && (
|
{userRole === "admin" && (
|
||||||
<Link
|
<Link
|
||||||
to={route.dealsInsights}
|
to={route.dealsInsights}
|
||||||
className="btn btn-outline-warning me-2 mb-0"
|
className="btn btn-outline-primary me-2 mb-0"
|
||||||
>
|
>
|
||||||
<i className="ti ti-graph me-2" />
|
<i className="ti ti-graph me-2" />
|
||||||
Deals Insights
|
Deals Insights
|
||||||
|
|
|
||||||
|
|
@ -1974,7 +1974,7 @@ const InvoiceList = () => {
|
||||||
{userRole === "admin" && (
|
{userRole === "admin" && (
|
||||||
<Link
|
<Link
|
||||||
to={route.InvoiceInsights}
|
to={route.InvoiceInsights}
|
||||||
className="btn btn-outline-warning me-2 mb-0"
|
className="btn btn-outline-primary me-2 mb-0"
|
||||||
>
|
>
|
||||||
<i className="ti ti-graph me-2" />
|
<i className="ti ti-graph me-2" />
|
||||||
Invoice Insights
|
Invoice Insights
|
||||||
|
|
|
||||||
|
|
@ -3229,7 +3229,7 @@ useEffect(() => {
|
||||||
{userRole === "admin" && (
|
{userRole === "admin" && (
|
||||||
<Link
|
<Link
|
||||||
to={route.leadsInsights}
|
to={route.leadsInsights}
|
||||||
className="btn btn-outline-warning me-2 mb-0"
|
className="btn btn-outline-primary me-2 mb-0"
|
||||||
>
|
>
|
||||||
<i className="ti ti-graph me-2" />
|
<i className="ti ti-graph me-2" />
|
||||||
Leads Insights
|
Leads Insights
|
||||||
|
|
|
||||||
|
|
@ -37,11 +37,11 @@ import dayjs from "dayjs";
|
||||||
import PageLoadProgressBar from "../../../core/data/json/pageLoadProgressBar";
|
import PageLoadProgressBar from "../../../core/data/json/pageLoadProgressBar";
|
||||||
import Tip from "../../../core/common/tooltip";
|
import Tip from "../../../core/common/tooltip";
|
||||||
|
|
||||||
const COLORS = ["#4f46e5", "#10b981", "#f59e0b", "#ef4444", "#6366f1"];
|
const COLORS = ["#8B5CF6", "#38BDF8", "#7C3AED", "#0EA5E9", "#6366F1"];
|
||||||
const STATUS_COLORS: Record<string, string> = {
|
const STATUS_COLORS: Record<string, string> = {
|
||||||
Draft: "#f59e0b",
|
Draft: "#38BDF8",
|
||||||
Accepted: "#10b981",
|
Accepted: "#8B5CF6",
|
||||||
Declined: "#ef4444",
|
Declined: "#7C3AED",
|
||||||
// fallback color for others
|
// fallback color for others
|
||||||
};
|
};
|
||||||
type OwnerStatusKey = "Accepted" | "Draft" | "Declined";
|
type OwnerStatusKey = "Accepted" | "Draft" | "Declined";
|
||||||
|
|
|
||||||
|
|
@ -2415,7 +2415,7 @@ const Proposalslist = () => {
|
||||||
{userRole === "admin" && (
|
{userRole === "admin" && (
|
||||||
<Link
|
<Link
|
||||||
to={route.ProposalInsights}
|
to={route.ProposalInsights}
|
||||||
className="btn btn-outline-warning me-2 mb-0"
|
className="btn btn-outline-primary me-2 mb-0"
|
||||||
>
|
>
|
||||||
<i className="ti ti-graph me-2" />
|
<i className="ti ti-graph me-2" />
|
||||||
Quotes Insights
|
Quotes Insights
|
||||||
|
|
|
||||||
|
|
@ -2133,7 +2133,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
||||||
<Bar
|
<Bar
|
||||||
dataKey="value"
|
dataKey="value"
|
||||||
radius={[0, 6, 6, 0]}
|
radius={[0, 6, 6, 0]}
|
||||||
fill="#22c55e"
|
fill="#8B5CF6"
|
||||||
barSize={18}
|
barSize={18}
|
||||||
isAnimationActive
|
isAnimationActive
|
||||||
animationBegin={100}
|
animationBegin={100}
|
||||||
|
|
@ -2158,7 +2158,7 @@ setProposals(proposalsData.filter(p => p.leads?.users?.id === selectedUserId));
|
||||||
style={{
|
style={{
|
||||||
width: 10,
|
width: 10,
|
||||||
height: 10,
|
height: 10,
|
||||||
backgroundColor: "#22c55e",
|
backgroundColor: "#8B5CF6",
|
||||||
opacity: 1 - index * 0.15,
|
opacity: 1 - index * 0.15,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ const DealsDashboard = () => {
|
||||||
text: "Status",
|
text: "Status",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
colors: ["#3B82F6", "#F59E0B", "#10B981", "#EF4444"],
|
colors: ["#8B5CF6", "#38BDF8", "#7C3AED", "#0EA5E9"],
|
||||||
legend: {
|
legend: {
|
||||||
position: "bottom", // ✅ literal string
|
position: "bottom", // ✅ literal string
|
||||||
},
|
},
|
||||||
|
|
@ -1143,16 +1143,16 @@ const DealsDashboard = () => {
|
||||||
|
|
||||||
// Activity badges
|
// Activity badges
|
||||||
const getActivityBadge = (days: number) => {
|
const getActivityBadge = (days: number) => {
|
||||||
if (days <= 2) return <span className="badge bg-success">Fresh</span>;
|
if (days <= 2) return <span className="badge" style={{ backgroundColor: "#8B5CF6", color: "#fff" }}>Fresh</span>;
|
||||||
if (days <= 7)
|
if (days <= 7)
|
||||||
return <span className="badge bg-warning text-dark">Warm</span>;
|
return <span className="badge" style={{ backgroundColor: "#38BDF8", color: "#fff" }}>Warm</span>;
|
||||||
if (days <= 30)
|
if (days <= 30)
|
||||||
return (
|
return (
|
||||||
<span className="badge bg-orange" style={{ background: "#f39c12" }}>
|
<span className="badge" style={{ backgroundColor: "#7C3AED", color: "#fff" }}>
|
||||||
Cold
|
Cold
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
return <span className="badge bg-danger">Stale</span>;
|
return <span className="badge" style={{ backgroundColor: "#94A3B8", color: "#fff" }}>Stale</span>;
|
||||||
};
|
};
|
||||||
|
|
||||||
const toggleSort = () => {
|
const toggleSort = () => {
|
||||||
|
|
@ -5619,10 +5619,10 @@ const DealsDashboard = () => {
|
||||||
const end = moment(event.event_end);
|
const end = moment(event.event_end);
|
||||||
|
|
||||||
const accentColors = [
|
const accentColors = [
|
||||||
"#4F46E5",
|
"#8B5CF6",
|
||||||
"#059669",
|
"#38BDF8",
|
||||||
"#D97706",
|
"#7C3AED",
|
||||||
"#6366F1",
|
"#0EA5E9",
|
||||||
];
|
];
|
||||||
const color = accentColors[index % accentColors.length];
|
const color = accentColors[index % accentColors.length];
|
||||||
|
|
||||||
|
|
@ -5771,10 +5771,10 @@ const DealsDashboard = () => {
|
||||||
const created = moment(todo.created_at);
|
const created = moment(todo.created_at);
|
||||||
|
|
||||||
const accentColors = [
|
const accentColors = [
|
||||||
"#4F46E5",
|
"#8B5CF6",
|
||||||
"#059669",
|
"#38BDF8",
|
||||||
"#D97706",
|
"#7C3AED",
|
||||||
"#6366F1",
|
"#0EA5E9",
|
||||||
];
|
];
|
||||||
const color = accentColors[index % accentColors.length];
|
const color = accentColors[index % accentColors.length];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1814,13 +1814,12 @@ const LeadsDashboard = () => {
|
||||||
<td>
|
<td>
|
||||||
<span
|
<span
|
||||||
className={`badge px-3 py-2 rounded-pill shadow-sm ${{
|
className={`badge px-3 py-2 rounded-pill shadow-sm ${{
|
||||||
contacted: "bg-success",
|
contacted: "bg-primary text-white",
|
||||||
"not contacted":
|
"not contacted": "bg-secondary text-white",
|
||||||
"bg-warning text-dark",
|
closed: "bg-primary text-white",
|
||||||
closed: "bg-primary",
|
lost: "bg-secondary text-white",
|
||||||
lost: "bg-danger",
|
|
||||||
}[lead?.lead_status?.toLowerCase()] ||
|
}[lead?.lead_status?.toLowerCase()] ||
|
||||||
"bg-secondary"
|
"bg-secondary text-white"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
{lead?.lead_status || "N/A"}
|
{lead?.lead_status || "N/A"}
|
||||||
|
|
@ -3229,12 +3228,12 @@ const LeadsDashboard = () => {
|
||||||
light: "#DDD6FE",
|
light: "#DDD6FE",
|
||||||
},
|
},
|
||||||
won: {
|
won: {
|
||||||
bar: "linear-gradient(90deg, #34D399, #059669)",
|
bar: "linear-gradient(90deg, #A78BFA, #7C3AED)",
|
||||||
light: "#D1FAE5",
|
light: "#F3E8FF",
|
||||||
},
|
},
|
||||||
lost: {
|
lost: {
|
||||||
bar: "linear-gradient(90deg, #FCA5A5, #EF4444)",
|
bar: "linear-gradient(90deg, #7DD3FC, #0284C7)",
|
||||||
light: "#FEE2E2",
|
light: "#E0F2FE",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -3360,16 +3359,16 @@ const LeadsDashboard = () => {
|
||||||
|
|
||||||
// Premium color scheme
|
// Premium color scheme
|
||||||
const bgColors = [
|
const bgColors = [
|
||||||
"#EEF2FF",
|
"#F5F3FF",
|
||||||
"#FFF6E5",
|
"#F0F9FF",
|
||||||
"#E8FFF3",
|
"#EDE9FE",
|
||||||
"#FFECEF",
|
"#E0F2FE",
|
||||||
];
|
];
|
||||||
const barColors = [
|
const barColors = [
|
||||||
"#6366F1",
|
"#8B5CF6",
|
||||||
"#F59E0B",
|
"#38BDF8",
|
||||||
"#10B981",
|
"#7C3AED",
|
||||||
"#EF4444",
|
"#0EA5E9",
|
||||||
];
|
];
|
||||||
|
|
||||||
const bg = bgColors[index % bgColors.length];
|
const bg = bgColors[index % bgColors.length];
|
||||||
|
|
|
||||||
|
|
@ -340,7 +340,7 @@ const MetaIgDashboard: React.FC = () => {
|
||||||
xaxis: { categories: metaDataRows.map((r) => r.date_start) },
|
xaxis: { categories: metaDataRows.map((r) => r.date_start) },
|
||||||
yaxis: { labels: { formatter: (val: number) => formatNumber(val) } },
|
yaxis: { labels: { formatter: (val: number) => formatNumber(val) } },
|
||||||
tooltip: { x: { format: "yyyy-MM-dd" } },
|
tooltip: { x: { format: "yyyy-MM-dd" } },
|
||||||
colors: ["#4f46e5"],
|
colors: ["#8B5CF6"],
|
||||||
};
|
};
|
||||||
const donutOptions: ApexOptions = {
|
const donutOptions: ApexOptions = {
|
||||||
chart: { type: "donut" as const, height: 240 },
|
chart: { type: "donut" as const, height: 240 },
|
||||||
|
|
@ -631,12 +631,12 @@ const MetaIgDashboard: React.FC = () => {
|
||||||
{
|
{
|
||||||
label: "Clicks",
|
label: "Clicks",
|
||||||
value: Number(metaTotals.clicks || 0),
|
value: Number(metaTotals.clicks || 0),
|
||||||
color: "#10b981",
|
color: "#8B5CF6",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Conversions (actions)",
|
label: "Conversions (actions)",
|
||||||
value: topActions.reduce((s, a) => s + a.v, 0),
|
value: topActions.reduce((s, a) => s + a.v, 0),
|
||||||
color: "#ff7a59",
|
color: "#38BDF8",
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|
@ -964,14 +964,14 @@ const MetaIgDashboard: React.FC = () => {
|
||||||
value:
|
value:
|
||||||
igSummary?.dashboard_summary?.interactions
|
igSummary?.dashboard_summary?.interactions
|
||||||
?.total ?? 0,
|
?.total ?? 0,
|
||||||
color: "#10b981",
|
color: "#8B5CF6",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Visits",
|
label: "Visits",
|
||||||
value:
|
value:
|
||||||
igSummary?.dashboard_summary?.visits?.total ??
|
igSummary?.dashboard_summary?.visits?.total ??
|
||||||
0,
|
0,
|
||||||
color: "#f59e0b",
|
color: "#38BDF8",
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -540,7 +540,7 @@ const SuperAdminDashboard = () => {
|
||||||
|
|
||||||
labels: topPlansData.labels,
|
labels: topPlansData.labels,
|
||||||
series: topPlansData.series,
|
series: topPlansData.series,
|
||||||
colors: ["#6366f1", "#f59e0b", "#22c55e", "#ef4444", "#0ea5e9"],
|
colors: ["#8B5CF6", "#38BDF8", "#7C3AED", "#0EA5E9", "#6366F1"],
|
||||||
plotOptions: {
|
plotOptions: {
|
||||||
pie: {
|
pie: {
|
||||||
donut: {
|
donut: {
|
||||||
|
|
@ -2092,7 +2092,7 @@ const SuperAdminDashboard = () => {
|
||||||
className="avatar avatar-md rounded-circle text-white fw-bold d-flex align-items-center justify-content-center"
|
className="avatar avatar-md rounded-circle text-white fw-bold d-flex align-items-center justify-content-center"
|
||||||
style={{
|
style={{
|
||||||
background:
|
background:
|
||||||
"linear-gradient(135deg, #f59e0b, #f97316)",
|
"linear-gradient(135deg, #8B5CF6, #38BDF8)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{getAvatarText(p.client_name)}
|
{getAvatarText(p.client_name)}
|
||||||
|
|
|
||||||
110
src/index.scss
110
src/index.scss
|
|
@ -64,8 +64,8 @@ a {
|
||||||
|
|
||||||
//ant datatable pagination
|
//ant datatable pagination
|
||||||
.ant-pagination-item.ant-pagination-item-1.ant-pagination-item-active {
|
.ant-pagination-item.ant-pagination-item-1.ant-pagination-item-active {
|
||||||
background: #00918e;
|
background: #8B5CF6;
|
||||||
border-color: #00918e;
|
border-color: #8B5CF6;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -78,7 +78,7 @@ h4,
|
||||||
// date range picker
|
// date range picker
|
||||||
.daterangepicker td.active,
|
.daterangepicker td.active,
|
||||||
.daterangepicker td.active:hover {
|
.daterangepicker td.active:hover {
|
||||||
background-color: #00918e;
|
background-color: #8B5CF6;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -88,8 +88,8 @@ h4,
|
||||||
|
|
||||||
.applyBtn.btn.btn-sm.btn-primary {
|
.applyBtn.btn.btn-sm.btn-primary {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background-color: #00918e;
|
background-color: #8B5CF6;
|
||||||
border: 1px solid #00918e;
|
border: 1px solid #8B5CF6;
|
||||||
}
|
}
|
||||||
|
|
||||||
// react-select plugin
|
// react-select plugin
|
||||||
|
|
@ -2784,7 +2784,7 @@ a.dropdown-active-toggle.show,
|
||||||
}
|
}
|
||||||
|
|
||||||
.lead-row:hover td:first-child {
|
.lead-row:hover td:first-child {
|
||||||
border-left: 3px solid #22c55e;
|
border-left: 3px solid #8B5CF6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.recent-leads-table th {
|
.recent-leads-table th {
|
||||||
|
|
@ -3088,26 +3088,26 @@ body,
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Subtle semantic accents for icon badges (matching CipherBizz XD) */
|
/* Subtle semantic accents for icon badges */
|
||||||
&.kpi-accent-success .kpi-icon-badge {
|
&.kpi-accent-success .kpi-icon-badge {
|
||||||
background: #EAF7EE;
|
background: #E0F2FE;
|
||||||
color: #16A34A;
|
color: #0284C7;
|
||||||
}
|
}
|
||||||
&.kpi-accent-info .kpi-icon-badge {
|
&.kpi-accent-info .kpi-icon-badge {
|
||||||
background: #E4F6FC;
|
background: #E0F2FE;
|
||||||
color: #0284C7;
|
color: #0284C7;
|
||||||
}
|
}
|
||||||
&.kpi-accent-danger .kpi-icon-badge {
|
&.kpi-accent-danger .kpi-icon-badge {
|
||||||
background: #FDEBEC;
|
background: #F3E8FF;
|
||||||
color: #E11D48;
|
color: #7C3AED;
|
||||||
}
|
}
|
||||||
&.kpi-accent-warning .kpi-icon-badge {
|
&.kpi-accent-warning .kpi-icon-badge {
|
||||||
background: #FEF6E8;
|
background: #E0F2FE;
|
||||||
color: #D97706;
|
color: #0284C7;
|
||||||
}
|
}
|
||||||
&.kpi-accent-peach .kpi-icon-badge {
|
&.kpi-accent-peach .kpi-icon-badge {
|
||||||
background: #FDEFEA;
|
background: #E0F2FE;
|
||||||
color: #EA580C;
|
color: #0284C7;
|
||||||
}
|
}
|
||||||
&.kpi-accent-primary .kpi-icon-badge {
|
&.kpi-accent-primary .kpi-icon-badge {
|
||||||
background: #F3E8FF;
|
background: #F3E8FF;
|
||||||
|
|
@ -3487,12 +3487,88 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Outlines */
|
/* Outlines & Buttons */
|
||||||
.btn-outline-warning {
|
.btn-outline-warning {
|
||||||
border-color: #38BDF8 !important;
|
border-color: #38BDF8 !important;
|
||||||
color: #0284C7 !important;
|
color: #0284C7 !important;
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: #38BDF8 !important;
|
background-color: #38BDF8 !important;
|
||||||
|
border-color: #38BDF8 !important;
|
||||||
color: #FFFFFF !important;
|
color: #FFFFFF !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-warning {
|
||||||
|
background-color: #38BDF8 !important;
|
||||||
|
border-color: #38BDF8 !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
&:hover {
|
||||||
|
background-color: #0EA5E9 !important;
|
||||||
|
border-color: #0EA5E9 !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-outline-success {
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
&:hover {
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-success {
|
||||||
|
background-color: #8B5CF6 !important;
|
||||||
|
border-color: #8B5CF6 !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
&:hover {
|
||||||
|
background-color: #7C3AED !important;
|
||||||
|
border-color: #7C3AED !important;
|
||||||
|
color: #FFFFFF !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Badges */
|
||||||
|
.badge.bg-warning,
|
||||||
|
.badge.bg-warning-subtle,
|
||||||
|
.badge-soft-warning {
|
||||||
|
background-color: #E0F2FE !important;
|
||||||
|
color: #0284C7 !important;
|
||||||
|
border: 1px solid #BAE6FD !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge.bg-success,
|
||||||
|
.badge.bg-success-subtle,
|
||||||
|
.badge-soft-success {
|
||||||
|
background-color: #F3E8FF !important;
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
border: 1px solid #DDD6FE !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge.bg-danger,
|
||||||
|
.badge.bg-danger-subtle,
|
||||||
|
.badge-soft-danger {
|
||||||
|
background-color: #F3E8FF !important;
|
||||||
|
color: #7C3AED !important;
|
||||||
|
border: 1px solid #DDD6FE !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* KPI Icons & Widgets */
|
||||||
|
.kpi-icon.bg-warning,
|
||||||
|
.kpi-icon.bg-warning-subtle {
|
||||||
|
background-color: #E0F2FE !important;
|
||||||
|
color: #0284C7 !important;
|
||||||
|
}
|
||||||
|
.kpi-icon.bg-success,
|
||||||
|
.kpi-icon.bg-success-subtle {
|
||||||
|
background-color: #F3E8FF !important;
|
||||||
|
color: #8B5CF6 !important;
|
||||||
|
}
|
||||||
|
.kpi-icon.bg-danger,
|
||||||
|
.kpi-icon.bg-danger-subtle {
|
||||||
|
background-color: #F3E8FF !important;
|
||||||
|
color: #7C3AED !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,14 +22,14 @@ $primary: #8B5CF6;
|
||||||
$primary-hover: #7C3AED;
|
$primary-hover: #7C3AED;
|
||||||
$secondary: #38BDF8;
|
$secondary: #38BDF8;
|
||||||
$secondary-hover: #0EA5E9;
|
$secondary-hover: #0EA5E9;
|
||||||
$success: #10B981;
|
$success: #8B5CF6;
|
||||||
$success-hover: darken($success, 10%);
|
$success-hover: #7C3AED;
|
||||||
$info: #38BDF8;
|
$info: #38BDF8;
|
||||||
$info-hover: #0EA5E9;
|
$info-hover: #0EA5E9;
|
||||||
$warning: #F59E0B;
|
$warning: #38BDF8;
|
||||||
$warning-hover: darken($warning, 10%);
|
$warning-hover: #0EA5E9;
|
||||||
$danger: #EF4444;
|
$danger: #8B5CF6;
|
||||||
$danger-hover: darken($danger, 10%);
|
$danger-hover: #7C3AED;
|
||||||
$dark: #171724;
|
$dark: #171724;
|
||||||
$dark-border: #393947;
|
$dark-border: #393947;
|
||||||
$dark-text: #a3a6a6;
|
$dark-text: #a3a6a6;
|
||||||
|
|
@ -40,9 +40,9 @@ $dark-input: #1A1A25;
|
||||||
$dark-bg: #1E1E2D;
|
$dark-bg: #1E1E2D;
|
||||||
$primary-transparent: #F3E8FF;
|
$primary-transparent: #F3E8FF;
|
||||||
$secondary-transparent: #E0F2FE;
|
$secondary-transparent: #E0F2FE;
|
||||||
$success-transparent: #ECFDF5;
|
$success-transparent: #F3E8FF;
|
||||||
$warning-transparent: #FFFBEB;
|
$warning-transparent: #E0F2FE;
|
||||||
$danger-transparent: #FEF2F2;
|
$danger-transparent: #F3E8FF;
|
||||||
$info-transparent: #E0F2FE;
|
$info-transparent: #E0F2FE;
|
||||||
$pink-transparent: #FDF4FF;
|
$pink-transparent: #FDF4FF;
|
||||||
$light-transparent: #F8FAFC;
|
$light-transparent: #F8FAFC;
|
||||||
|
|
@ -56,17 +56,17 @@ $light-hover: darken($light, 10%);
|
||||||
$white: #FFF;
|
$white: #FFF;
|
||||||
$black: #000;
|
$black: #000;
|
||||||
$purple: #8B5CF6;
|
$purple: #8B5CF6;
|
||||||
$pink: #EC4899;
|
$pink: #8B5CF6;
|
||||||
$blue: #38BDF8;
|
$blue: #38BDF8;
|
||||||
$teal: #06B6D4;
|
$teal: #38BDF8;
|
||||||
$violet: #8B5CF6;
|
$violet: #8B5CF6;
|
||||||
$cyan: #38BDF8;
|
$cyan: #38BDF8;
|
||||||
$green: #10B981;
|
$green: #8B5CF6;
|
||||||
$orange: #F97316;
|
$orange: #38BDF8;
|
||||||
$indigo: #6366F1;
|
$indigo: #7C3AED;
|
||||||
$indigo-hover: darken($indigo, 10%);
|
$indigo-hover: darken($indigo, 10%);
|
||||||
$tertiary: #7C3AED;
|
$tertiary: #7C3AED;
|
||||||
$yellow: #FACC15;
|
$yellow: #38BDF8;
|
||||||
|
|
||||||
// Primary (Vibrant Purple)
|
// Primary (Vibrant Purple)
|
||||||
$primary-100: #FAF5FF;
|
$primary-100: #FAF5FF;
|
||||||
|
|
@ -91,58 +91,59 @@ $secondary-800: #0369A1;
|
||||||
$secondary-900: #075985;
|
$secondary-900: #075985;
|
||||||
|
|
||||||
// Tertiary
|
// Tertiary
|
||||||
$tertiary-100: #ECE9F1;
|
$tertiary-100: #FAF5FF;
|
||||||
$tertiary-200: #D8D3E3;
|
$tertiary-200: #F3E8FF;
|
||||||
$tertiary-300: #C5BDD4;
|
$tertiary-300: #E9D5FF;
|
||||||
$tertiary-400: #B1A7C6;
|
$tertiary-400: #D8B4FE;
|
||||||
$tertiary-500: #9E91B8;
|
$tertiary-500: #C084FC;
|
||||||
$tertiary-600: #8A7BAA;
|
$tertiary-600: #A855F7;
|
||||||
$tertiary-700: #77659C;
|
$tertiary-700: #9333EA;
|
||||||
$tertiary-800: #634F8D;
|
$tertiary-800: #8B5CF6;
|
||||||
$tertiary-900: #50397F;
|
$tertiary-900: #7C3AED;
|
||||||
|
|
||||||
// Green
|
// Green (Mapped to Purple)
|
||||||
$green-100: #E6F4F4;
|
$green-100: #FAF5FF;
|
||||||
$green-200: #CCE9E8;
|
$green-200: #F3E8FF;
|
||||||
$green-300: #B3DEDD;
|
$green-300: #E9D5FF;
|
||||||
$green-400: #99D3D2;
|
$green-400: #D8B4FE;
|
||||||
$green-500: #80C8C7;
|
$green-500: #C084FC;
|
||||||
$green-600: #66BDBB;
|
$green-600: #A855F7;
|
||||||
$green-700: #4DB2B0;
|
$green-700: #9333EA;
|
||||||
$green-800: #33A7A5;
|
$green-800: #8B5CF6;
|
||||||
$green-900: #1A9C99;
|
$green-900: #7C3AED;
|
||||||
|
|
||||||
// Blue
|
// Blue
|
||||||
$blue-100: #EBF5FF;
|
$blue-100: #F0F9FF;
|
||||||
$blue-200: #D6EBFF;
|
$blue-200: #E0F2FE;
|
||||||
$blue-300: #C2E2FF;
|
$blue-300: #BAE6FD;
|
||||||
$blue-400: #ADD8FF;
|
$blue-400: #7DD3FC;
|
||||||
$blue-500: #99CEFF;
|
$blue-500: #38BDF8;
|
||||||
$blue-600: #85C4FF;
|
$blue-600: #0EA5E9;
|
||||||
$blue-700: #70BAFF;
|
$blue-700: #0284C7;
|
||||||
$blue-800: #5CB1FF;
|
$blue-800: #0369A1;
|
||||||
$blue-900: #47A7FF;
|
$blue-900: #075985;
|
||||||
|
|
||||||
// Orange
|
// Orange (Mapped to Light Blue)
|
||||||
$orange-100: #FFF5E7;
|
$orange-100: #F0F9FF;
|
||||||
$orange-200: #FFEBCE;
|
$orange-200: #E0F2FE;
|
||||||
$orange-300: #FFE2B6;
|
$orange-300: #BAE6FD;
|
||||||
$orange-400: #FFD89D;
|
$orange-400: #7DD3FC;
|
||||||
$orange-500: #FFCE85;
|
$orange-500: #38BDF8;
|
||||||
$orange-600: #FFC46C;
|
$orange-600: #0EA5E9;
|
||||||
$orange-700: #FFBA54;
|
$orange-700: #0284C7;
|
||||||
$orange-800: #FFB13B;
|
$orange-800: #0369A1;
|
||||||
$orange-900: #FFA723;
|
$orange-900: #075985;
|
||||||
|
|
||||||
// Pink
|
// Pink (Mapped to Purple)
|
||||||
$pink-100: #FDE6F8;
|
$pink-100: #FAF5FF;
|
||||||
$pink-200: #FBCCF0;
|
$pink-200: #F3E8FF;
|
||||||
$pink-300: #F9B3E9;
|
$pink-300: #E9D5FF;
|
||||||
$pink-400: #F799E2;
|
$pink-400: #D8B4FE;
|
||||||
$pink-500: #F580DB;
|
$pink-500: #C084FC;
|
||||||
$pink-600: #F266D3;
|
$pink-600: #A855F7;
|
||||||
$pink-700: #F04DCC;
|
$pink-700: #9333EA;
|
||||||
$pink-800: #EE33C5;
|
$pink-800: #8B5CF6;
|
||||||
|
$pink-900: #7C3AED;
|
||||||
$pink-900: #EC1ABD;
|
$pink-900: #EC1ABD;
|
||||||
|
|
||||||
// Violet
|
// Violet
|
||||||
|
|
@ -201,37 +202,37 @@ $info-800: #4BD5E8;
|
||||||
$info-900: #35D0E5;
|
$info-900: #35D0E5;
|
||||||
|
|
||||||
// Success
|
// Success
|
||||||
$success-100: #EFF8EF;
|
$success-100: #FAF5FF;
|
||||||
$success-200: #E0F5D7;
|
$success-200: #F3E8FF;
|
||||||
$success-300: #CEEACE;
|
$success-300: #E9D5FF;
|
||||||
$success-400: #BEE3BE;
|
$success-400: #D8B4FE;
|
||||||
$success-500: #AEDCAE;
|
$success-500: #C084FC;
|
||||||
$success-600: #9DD49D;
|
$success-600: #A855F7;
|
||||||
$success-700: #8DCD8D;
|
$success-700: #9333EA;
|
||||||
$success-800: #7DC67D;
|
$success-800: #8B5CF6;
|
||||||
$success-900: #6CBF6C;
|
$success-900: #7C3AED;
|
||||||
|
|
||||||
// Danger
|
// Danger
|
||||||
$danger-100: #FFEEEC;
|
$danger-100: #FAF5FF;
|
||||||
$danger-200: #FECCD4;
|
$danger-200: #F3E8FF;
|
||||||
$danger-300: #FEB3BE;
|
$danger-300: #E9D5FF;
|
||||||
$danger-400: #FE99A9;
|
$danger-400: #D8B4FE;
|
||||||
$danger-500: #FE8093;
|
$danger-500: #C084FC;
|
||||||
$danger-600: #FD667D;
|
$danger-600: #A855F7;
|
||||||
$danger-700: #FD4D68;
|
$danger-700: #9333EA;
|
||||||
$danger-800: #FD3352;
|
$danger-800: #8B5CF6;
|
||||||
$danger-900: #FC1A3D;
|
$danger-900: #7C3AED;
|
||||||
|
|
||||||
// Warning
|
// Warning
|
||||||
$warning-100: #FFF7D8;
|
$warning-100: #F0F9FF;
|
||||||
$warning-200: #FFEDCC;
|
$warning-200: #E0F2FE;
|
||||||
$warning-300: #FEE5B3;
|
$warning-300: #BAE6FD;
|
||||||
$warning-400: #FEDC99;
|
$warning-400: #7DD3FC;
|
||||||
$warning-500: #FED380;
|
$warning-500: #38BDF8;
|
||||||
$warning-600: #FECA66;
|
$warning-600: #0EA5E9;
|
||||||
$warning-700: #FEC14D;
|
$warning-700: #0284C7;
|
||||||
$warning-800: #FDB933;
|
$warning-800: #0369A1;
|
||||||
$warning-900: #FDB01A;
|
$warning-900: #075985;
|
||||||
|
|
||||||
// Purple
|
// Purple
|
||||||
$purple-100: #F3EDFF;
|
$purple-100: #F3EDFF;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue