From 76b66b224caa80044f5bb1d70c27775aaead6462 Mon Sep 17 00:00:00 2001
From: Marco Beretta <81851188+berry-13@users.noreply.github.com>
Date: Fri, 19 Jun 2026 23:51:12 +0200
Subject: [PATCH] refactor: tokenize SidePanel Memories/Parameters/Bookmarks
colors
Delete-confirm buttons to surface-destructive tokens (MemoryCardActions,
BookmarkCardActions), drop redundant text-white on submit Buttons (the variant
already sets it), legacy preset button green hover/focus to submit tokens, and
slider hover borders to border-light. Leaves DynamicCheckbox dark overrides for
a separate pass against the Checkbox component.
---
.../components/SidePanel/Bookmarks/BookmarkCardActions.tsx | 2 +-
.../src/components/SidePanel/Memories/MemoryCardActions.tsx | 2 +-
.../src/components/SidePanel/Memories/MemoryCreateDialog.tsx | 1 -
client/src/components/SidePanel/Memories/MemoryEditDialog.tsx | 1 -
client/src/components/SidePanel/Parameters/DynamicSlider.tsx | 4 ++--
client/src/components/SidePanel/Parameters/Panel.tsx | 2 +-
6 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/client/src/components/SidePanel/Bookmarks/BookmarkCardActions.tsx b/client/src/components/SidePanel/Bookmarks/BookmarkCardActions.tsx
index 1df7d35c36..cf105bef97 100644
--- a/client/src/components/SidePanel/Bookmarks/BookmarkCardActions.tsx
+++ b/client/src/components/SidePanel/Bookmarks/BookmarkCardActions.tsx
@@ -108,7 +108,7 @@ export default function BookmarkCardActions({ bookmark }: BookmarkCardActionsPro
selection={{
selectHandler: confirmDelete,
selectClasses:
- 'bg-destructive text-white transition-all duration-200 hover:bg-destructive/80',
+ 'bg-surface-destructive text-white transition-all duration-200 hover:bg-surface-destructive-hover',
selectText: localize('com_ui_delete'),
}}
/>
diff --git a/client/src/components/SidePanel/Memories/MemoryCardActions.tsx b/client/src/components/SidePanel/Memories/MemoryCardActions.tsx
index 564d485cd1..da1001e6ae 100644
--- a/client/src/components/SidePanel/Memories/MemoryCardActions.tsx
+++ b/client/src/components/SidePanel/Memories/MemoryCardActions.tsx
@@ -117,7 +117,7 @@ export default function MemoryCardActions({ memory }: MemoryCardActionsProps) {
selection={{
selectHandler: confirmDelete,
selectClasses:
- 'bg-red-700 dark:bg-red-600 hover:bg-red-800 dark:hover:bg-red-800 text-white',
+ 'bg-surface-destructive text-white hover:bg-surface-destructive-hover',
selectText: localize('com_ui_delete'),
}}
/>
diff --git a/client/src/components/SidePanel/Memories/MemoryCreateDialog.tsx b/client/src/components/SidePanel/Memories/MemoryCreateDialog.tsx
index d5965f4c4d..df5d5befff 100644
--- a/client/src/components/SidePanel/Memories/MemoryCreateDialog.tsx
+++ b/client/src/components/SidePanel/Memories/MemoryCreateDialog.tsx
@@ -147,7 +147,6 @@ export default function MemoryCreateDialog({
variant="submit"
onClick={handleSave}
disabled={isLoading || !key.trim() || !value.trim()}
- className="text-white"
aria-label={localize('com_ui_create_memory')}
>
{isLoading ?