Generate feedback colors (success, warning, error, and info) for shadcn/ui
Go to generatorUsed by 4k+ developers. Want me to build your product next? Let's work together.
Chief is a shadcn/ui theme built around a light blue primary color (#dce8f4) with light orange accents (#f4e8dc). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the light blue primary (#dce8f4) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfdwhite | #000000black |
| Foreground | #010304black | #f9fafbghostwhite |
| Card | #fbfcfdwhite | #000000black |
| Card foreground | #010304black | #f9fafbghostwhite |
| Popover | #fbfcfdwhite | #000000black |
| Popover foreground | #010304black | #f9fafbghostwhite |
| Primary | #dce8f4lavender | #dce8f4lavender |
| Primary foreground | #24507adarkslateblue | #24507adarkslateblue |
| Secondary | #f4e8dcantiquewhite | #f4e8dcantiquewhite |
| Secondary foreground | #2b1c0dblack | #2b1c0dblack |
| Muted | #f7f2eewhitesmoke | #110d08black |
| Muted foreground | #574f47darkolivegreen | #b8b0a8darkgray |
| Accent | #f4e8dcantiquewhite | #f4e8dcantiquewhite |
| Accent foreground | #2b1c0dblack | #2b1c0dblack |
| Destructive | #9e3505saddlebrown | #f86825tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dce8f4lavender | #dce8f4lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 13.64:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 13.64:1 | AAA |
| Destructive | 7.04:1 | AAA |
| Text on background | 20.09:1 | AAA |
| Text on card | 20.09:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 13.64:1 | AAA |
| Muted text | 9.05:1 | AAA |
| Accent | 13.64:1 | AAA |
| Destructive | 7.01:1 | AAA |
Paste this into your globals.css to use Chief in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 245.987);
--foreground: oklch(0.089 0.011 236.899);
--muted: oklch(0.964 0.007 65.876);
--muted-foreground: oklch(0.432 0.016 65.486);
--popover: oklch(0.992 0.002 245.987);
--popover-foreground: oklch(0.089 0.011 236.899);
--card: oklch(0.992 0.002 245.987);
--card-foreground: oklch(0.089 0.011 236.899);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.926 0.021 246.229);
--primary-foreground: oklch(0.422 0.085 249.136);
--secondary: oklch(0.937 0.021 65.69);
--secondary-foreground: oklch(0.241 0.035 62.967);
--accent: oklch(0.937 0.021 65.69);
--accent-foreground: oklch(0.241 0.035 62.967);
--destructive: oklch(0.478 0.148 39.665);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.926 0.021 246.229);
--chart-1: oklch(0.926 0.021 246.229);
--chart-2: oklch(0.937 0.021 65.69);
--chart-3: oklch(0.937 0.021 65.69);
--chart-4: oklch(0.958 0.014 65.79);
--chart-5: oklch(0.926 0.022 246.244);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.002 245.989);
--muted: oklch(0.161 0.012 65.491);
--muted-foreground: oklch(0.761 0.014 65.739);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.984 0.002 245.989);
--card: oklch(0 0 0);
--card-foreground: oklch(0.984 0.002 245.989);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.926 0.021 246.229);
--primary-foreground: oklch(0.422 0.085 249.136);
--secondary: oklch(0.937 0.021 65.69);
--secondary-foreground: oklch(0.241 0.035 62.967);
--accent: oklch(0.937 0.021 65.69);
--accent-foreground: oklch(0.241 0.035 62.967);
--destructive: oklch(0.69 0.192 41.825);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.926 0.021 246.229);
--chart-1: oklch(0.926 0.021 246.229);
--chart-2: oklch(0.937 0.021 65.69);
--chart-3: oklch(0.937 0.021 65.69);
--chart-4: oklch(0.958 0.014 65.79);
--chart-5: oklch(0.926 0.022 246.244);
}