Over 10000 Themes for shadcn/ui available.
Explore themesFound an awesome theme? Consider supporting me.
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: 0 90% 70%;
--destructive-foreground: 0 90% 10%;
--success: 125 90% 70%;
--success-foreground: 125 90% 10%;
--warning: 45 90% 70%;
--warning-foreground: 45 90% 10%;
--info: 197 90% 70%;
--info-foreground: 197 90% 10%;
}
.dark {
--destructive: 6 90% 11%;
--destructive-foreground: 6 90% 71%;
--success: 105 90% 11%;
--success-foreground: 105 90% 51%;
--warning: 21 90% 11%;
--warning-foreground: 21 90% 71%;
--info: 195 90% 11%;
--info-foreground: 195 90% 51%;
}
}
Add new variants to your components.