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: 10 62% 76%;
--destructive-foreground: 10 62% 16%;
--success: 108 62% 76%;
--success-foreground: 108 62% 16%;
--warning: 54 62% 76%;
--warning-foreground: 54 62% 16%;
--info: 184 62% 76%;
--info-foreground: 184 62% 16%;
}
.dark {
--destructive: 2 62% 11%;
--destructive-foreground: 2 62% 71%;
--success: 100 62% 11%;
--success-foreground: 100 62% 51%;
--warning: 17 62% 11%;
--warning-foreground: 17 62% 71%;
--info: 210 62% 11%;
--info-foreground: 210 62% 71%;
}
}
Add new variants to your components.