Over 10000 Themes for shadcn/ui available.
Explore themesFound an awesome theme? Consider supporting me.
Add the colors to your config file. (Nested under theme ➡︎ extend ➡︎ colors). Just search for destructive in your current config and insert it below.
tailwind.config.js
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
},
success: {
DEFAULT: "hsl(var(--success))",
foreground: "hsl(var(--success-foreground))",
},
warning: {
DEFAULT: "hsl(var(--warning))",
foreground: "hsl(var(--warning-foreground))",
},
info: {
DEFAULT: "hsl(var(--info))",
foreground: "hsl(var(--info-foreground))",
}
globals.css
@layer base {
:root {
--destructive: 11 48% 45%;
--destructive-foreground: 0 0% 100%;
--success: 129 48% 45%;
--success-foreground: 0 0% 100%;
--warning: 29 48% 45%;
--warning-foreground: 0 0% 100%;
--info: 190 48% 45%;
--info-foreground: 0 0% 100%;
}
.dark {
--destructive: 11 48% 7%;
--destructive-foreground: 11 48% 67%;
--success: 159 48% 7%;
--success-foreground: 159 48% 47%;
--warning: 30 48% 7%;
--warning-foreground: 30 48% 67%;
--info: 228 48% 7%;
--info-foreground: 228 48% 67%;
}
}
Add new variants to your components.