fix: add CSS variables for status colors to playground
Added error, warning, success, and info color CSS variables to playground globals.css so that Badge component variants display with correct colors. The error variant will now show red as expected. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
0e907338ed
commit
722cb6af0b
1 changed files with 27 additions and 0 deletions
|
|
@ -1,3 +1,30 @@
|
|||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@layer base {
|
||||
/* Light mode (default) */
|
||||
:root {
|
||||
/* Status Colors */
|
||||
--error: 0 65% 51%; /* Red */
|
||||
--error-foreground: 0 0% 100%; /* White text */
|
||||
--warning: 36 100% 50%; /* Amber */
|
||||
--warning-foreground: 0 0% 100%;
|
||||
--success: 152 57% 45%; /* Green */
|
||||
--success-foreground: 0 0% 100%;
|
||||
--info: 210 100% 56%; /* Blue */
|
||||
--info-foreground: 0 0% 100%;
|
||||
}
|
||||
|
||||
/* Dark mode */
|
||||
.dark {
|
||||
--error: 0 65% 58%; /* Brighter red for dark mode */
|
||||
--error-foreground: 0 0% 100%;
|
||||
--warning: 36 100% 55%;
|
||||
--warning-foreground: 0 0% 100%;
|
||||
--success: 152 57% 50%;
|
||||
--success-foreground: 0 0% 100%;
|
||||
--info: 210 100% 60%;
|
||||
--info-foreground: 0 0% 100%;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue