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: 4 89% 60%;
--destructive-foreground: 0 0% 100%;
--success: 138 89% 60%;
--success-foreground: 138 89% 0%;
--warning: 44 89% 60%;
--warning-foreground: 44 89% 0%;
--info: 230 89% 60%;
--info-foreground: 0 0% 100%;
}
.dark {
--destructive: 14 89% 15%;
--destructive-foreground: 14 89% 75%;
--success: 140 89% 15%;
--success-foreground: 140 89% 55%;
--warning: 47 89% 15%;
--warning-foreground: 47 89% 55%;
--info: 185 89% 15%;
--info-foreground: 185 89% 55%;
}
}
Add new variants to your components.