From f5447664a4c176ebd4ca08996b507a3bbdabd77d Mon Sep 17 00:00:00 2001 From: Bill Leoutsakos Date: Thu, 24 Sep 2026 11:23:38 -0700 Subject: [PATCH] Centralize chat and logs status colours and presentation shadow --- apps/sim/app/_styles/globals.css | 12 ++++++++++++ .../components/chats-section/chats-section.tsx | 6 ++++-- .../conversation-list-item.tsx | 9 +++++---- .../dashboard/components/status-bar/status-bar.tsx | 8 ++++---- .../[workspaceId]/w/components/sidebar/sidebar.tsx | 6 ++++-- apps/sim/lib/pptx-renderer/core/viewer.ts | 4 ++-- 6 files changed, 31 insertions(+), 14 deletions(-) diff --git a/apps/sim/app/_styles/globals.css b/apps/sim/app/_styles/globals.css index 295ce646cd6..adbe81b2c16 100644 --- a/apps/sim/app/_styles/globals.css +++ b/apps/sim/app/_styles/globals.css @@ -433,6 +433,15 @@ --auth-primary-btn-hover-border: #e0e0e0; --auth-primary-btn-hover-text: #000000; + /* Chat navigation and log history keep their existing state colours. */ + --chat-status-active: var(--color-yellow-500); + --logs-status-success: color-mix(in oklab, var(--color-emerald-400) 90%, transparent); + --logs-status-warning: color-mix(in oklab, var(--color-amber-400) 90%, transparent); + --logs-status-error: color-mix(in oklab, var(--color-red-400) 90%, transparent); + + /* The rendered presentation sheet uses this same shadow in both viewer modes. */ + --shadow-presentation-slide: 0 2px 8px rgba(0, 0, 0, 0.15); + /* z-index scale. The toast/notification stack is ambient: it sits above page content but BELOW the modal and the transient poppers (menus, selects, popovers, tooltips), so an open modal or dropdown menu is never occluded by @@ -800,6 +809,7 @@ html[data-sim-desktop-title-bar="inset"] --error-emphasis: #b91c1c; --caution: #f59e0b; --success: #22c55e; + --logs-status-empty: color-mix(in oklab, var(--color-gray-300) 60%, transparent); /* Brand extended */ --brand-knowledge: #00b0b0; @@ -918,6 +928,8 @@ html[data-sim-desktop-title-bar="inset"] --usage-agent: var(--color-violet-500); --usage-other: #8a8a8a; + --logs-status-empty: color-mix(in oklab, var(--color-gray-500) 40%, transparent); + /* Inverted surface (in dark mode, falls back to standard surfaces) */ --surface-inverted: #242424; --surface-inverted-hover: #363636; diff --git a/apps/sim/app/o/[organizationId]/components/organization-sidebar/components/chats-section/chats-section.tsx b/apps/sim/app/o/[organizationId]/components/organization-sidebar/components/chats-section/chats-section.tsx index b349e283201..d57410294db 100644 --- a/apps/sim/app/o/[organizationId]/components/organization-sidebar/components/chats-section/chats-section.tsx +++ b/apps/sim/app/o/[organizationId]/components/organization-sidebar/components/chats-section/chats-section.tsx @@ -71,8 +71,10 @@ function ChatRow({ showStatusDot ? (