Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

fix(scss): use the amber token for the AI attachment warning state

Juan Denis507a467d986b
diff --git a/frontend/src/styles/components/_ai-assistant.scss b/frontend/src/styles/components/_ai-assistant.scss
index 27b2b505..7927c98a 100644
--- a/frontend/src/styles/components/_ai-assistant.scss
+++ b/frontend/src/styles/components/_ai-assistant.scss
@@ -245,7 +245,10 @@ body:has(.ui-sheet-content[data-state='open']) .sk-ai-bubble {
&.is-warning {
border-color: fade($warning-raw, 48%);
- color: var(--warning, #fbbf24);
+ // $warning is var(--amber, …). `--warning` is not a defined token, so
+ // the previous var(--warning, <amber literal>) always fell through to
+ // the literal and runtime skins could never recolour it.
+ color: $warning;
}
}
.sk-ai-attachment__type {