fix(ui): keep warning callouts yellow in custom themes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andras Bacsai
2026-11-09 14:44:54 +01:00
co-authored by Claude Opus 5.5
parent 79dabc1972
commit ab4964ea85
2 changed files with 9 additions and 4 deletions
@@ -0,0 +1,4 @@
---
type: fixed
---
Showed warning callouts in the accent color instead of yellow when a custom theme is active
+5 -4
View File
@@ -10,10 +10,11 @@
$styles = [
'warning' => [
'icon' => 'alert-triangle',
'shell' => 'border-warning/25 bg-warning/[0.07] dark:border-warning/20 dark:bg-warning/[0.06]',
'iconClass' => 'text-warning-700 dark:text-warning',
'titleClass' => 'text-warning-900 dark:text-warning',
'textClass' => 'text-warning-900/75 dark:text-warning/70',
// Numbered warning shades: the custom theme maps the plain warning color to its accent.
'shell' => 'border-warning-700/25 bg-warning-700/[0.07] dark:border-warning-400/20 dark:bg-warning-400/[0.06]',
'iconClass' => 'text-warning-700 dark:text-warning-400',
'titleClass' => 'text-warning-900 dark:text-warning-400',
'textClass' => 'text-warning-900/75 dark:text-warning-400/70',
],
'danger' => [
'icon' => 'alert-circle',