From cfd9503313d5a993eec14da07503c9996e1e374b Mon Sep 17 00:00:00 2001 From: Moepchi Date: Fri, 18 Sep 2026 10:32:59 +0000 Subject: [PATCH] Design store: make the delete button red in every design Explicit red instead of the theme's accent color, so it stays visually distinct as a destructive action regardless of the active design. The confirm() prompt before deletion was already there. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU --- web/src/App.css | 14 ++++++++++++++ web/src/App.tsx | 1 + 2 files changed, 15 insertions(+) diff --git a/web/src/App.css b/web/src/App.css index 172b9ff..378c628 100644 --- a/web/src/App.css +++ b/web/src/App.css @@ -3458,6 +3458,20 @@ padding: 0.5rem 0; } +/* Delete is destructive - always red, regardless of the active design's + accent color. Selector nests one level deeper than the shared rules + above so it reliably wins the cascade instead of relying on source order. */ +.ts-design-theme-card-actions .ts-design-theme-card-delete { + background: linear-gradient(to bottom, #d64545, #b23a3a); + border-color: #8f2c2c; + color: #fff; +} + +.ts-design-theme-card-actions .ts-design-theme-card-delete:hover:not(:disabled) { + background: linear-gradient(to bottom, #e85d5d, #c94444); + border-color: #e85d5d; +} + .ts-design-store-card-actions { margin-top: 0.5rem; } diff --git a/web/src/App.tsx b/web/src/App.tsx index 4b4910c..92a1761 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -5421,6 +5421,7 @@ function DesignPanel({