Over 10000 Themes for shadcn/ui available.
Explore themesGet a MVP of your project idea within 2 weeks. Guaranteed.
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: 12 93% 70%;
--destructive-foreground: 12 93% 10%;
--success: 102 93% 70%;
--success-foreground: 102 93% 10%;
--warning: 53 93% 70%;
--warning-foreground: 53 93% 10%;
--info: 234 93% 70%;
--info-foreground: 0 0% 0%;
}
.dark {
--destructive: 3 93% 12%;
--destructive-foreground: 3 93% 72%;
--success: 104 93% 12%;
--success-foreground: 104 93% 52%;
--warning: 53 93% 12%;
--warning-foreground: 53 93% 52%;
--info: 201 93% 12%;
--info-foreground: 201 93% 72%;
}
}
Add new variants to your components.