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: 13 90% 49%;
--destructive-foreground: 0 0% 100%;
--success: 91 90% 49%;
--success-foreground: 91 90% 9%;
--warning: 54 90% 49%;
--warning-foreground: 54 90% 9%;
--info: 219 90% 49%;
--info-foreground: 0 0% 100%;
}
.dark {
--destructive: 4 90% 5%;
--destructive-foreground: 4 90% 65%;
--success: 151 90% 5%;
--success-foreground: 151 90% 45%;
--warning: 38 90% 5%;
--warning-foreground: 38 90% 45%;
--info: 222 90% 5%;
--info-foreground: 222 90% 85%;
}
}
Add new variants to your components.