Over 10000 Themes for shadcn/ui available.
Explore themesWanna work with 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: 13 57% 89%;
--destructive-foreground: 13 57% 29%;
--success: 100 57% 89%;
--success-foreground: 100 57% 9%;
--warning: 46 57% 89%;
--warning-foreground: 46 57% 9%;
--info: 209 57% 89%;
--info-foreground: 209 57% 29%;
}
.dark {
--destructive: 11 57% 9%;
--destructive-foreground: 11 57% 69%;
--success: 121 57% 9%;
--success-foreground: 121 57% 49%;
--warning: 49 57% 9%;
--warning-foreground: 49 57% 49%;
--info: 225 57% 9%;
--info-foreground: 225 57% 69%;
}
}
Add new variants to your components.