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% 80%;
--destructive-foreground: 10 62% 20%;
--success: 138 62% 80%;
--success-foreground: 138 62% 20%;
--warning: 23 62% 80%;
--warning-foreground: 23 62% 20%;
--info: 195 62% 80%;
--info-foreground: 195 62% 20%;
}
.dark {
--destructive: 1 62% 9%;
--destructive-foreground: 1 62% 69%;
--success: 139 62% 9%;
--success-foreground: 139 62% 49%;
--warning: 38 62% 9%;
--warning-foreground: 38 62% 49%;
--info: 235 62% 9%;
--info-foreground: 235 62% 89%;
}
}
Add new variants to your components.