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.
Accurate is a shadcn/ui theme built around a yellow primary color (#c0c37f) with muted light yellow accents (#dadad3). The light mode uses a neutral background (#ffffff). Dark mode keeps the yellow primary (#c0c37f) on a yellow-tinted background (#0c0c03).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0c03black |
| Foreground | #0b0c04black | #fafaf5whitesmoke |
| Card | #ffffffwhite | #0c0c03black |
| Card foreground | #0b0c04black | #fafaf5whitesmoke |
| Popover | #ffffffwhite | #0c0c03black |
| Popover foreground | #0b0c04black | #fafaf5whitesmoke |
| Primary | #c0c37fdarkkhaki | #c0c37fdarkkhaki |
| Primary foreground | #0a0a05black | #0a0a05black |
| Secondary | #dadad3gainsboro | #1c1c17black |
| Secondary foreground | #424338darkslategray | #b9b9acsilver |
| Muted | #e7e8d4gainsboro | #2b2b17black |
| Muted foreground | #66675bdimgray | #a4a498darkgray |
| Accent | #dadad3gainsboro | #1c1c17black |
| Accent foreground | #424338darkslategray | #b9b9acsilver |
| Destructive | #d90b08red | #f83430crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c0c37fdarkkhaki | #c0c37fdarkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 10.70:1 | AAA |
| Secondary button | 7.13:1 | AAA |
| Muted text | 4.62:1 | AA |
| Accent | 7.13:1 | AAA |
| Destructive | 5.26:1 | AA |
| Text on background | 18.73:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 10.70:1 | AAA |
| Secondary button | 8.65:1 | AAA |
| Muted text | 5.69:1 | AA |
| Accent | 8.65:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Accurate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.149 0.019 109.862);
--muted: oklch(0.925 0.027 108.474);
--muted-foreground: oklch(0.509 0.018 108.575);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.149 0.019 109.862);
--card: oklch(1 0 180);
--card-foreground: oklch(0.149 0.019 109.862);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.798 0.089 109.882);
--primary-foreground: oklch(0.144 0.013 109.306);
--secondary: oklch(0.886 0.01 108.145);
--secondary-foreground: oklch(0.378 0.018 108.802);
--accent: oklch(0.886 0.01 108.145);
--accent-foreground: oklch(0.378 0.018 108.802);
--destructive: oklch(0.558 0.225 29.111);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.798 0.089 109.882);
--chart-1: oklch(0.798 0.089 109.882);
--chart-2: oklch(0.886 0.01 108.145);
--chart-3: oklch(0.886 0.01 108.145);
--chart-4: oklch(0.907 0.008 108.102);
--chart-5: oklch(0.806 0.095 109.999);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.151 0.022 110.109);
--foreground: oklch(0.983 0.006 108.056);
--muted: oklch(0.284 0.034 110.05);
--muted-foreground: oklch(0.715 0.017 108.36);
--popover: oklch(0.151 0.022 110.109);
--popover-foreground: oklch(0.983 0.006 108.056);
--card: oklch(0.151 0.022 110.109);
--card-foreground: oklch(0.983 0.006 108.056);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.798 0.089 109.882);
--primary-foreground: oklch(0.144 0.013 109.306);
--secondary: oklch(0.224 0.009 108.638);
--secondary-foreground: oklch(0.783 0.019 108.383);
--accent: oklch(0.224 0.009 108.638);
--accent-foreground: oklch(0.783 0.019 108.383);
--destructive: oklch(0.636 0.23 27.477);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.798 0.089 109.882);
--chart-1: oklch(0.798 0.089 109.882);
--chart-2: oklch(0.224 0.009 108.638);
--chart-3: oklch(0.224 0.009 108.638);
--chart-4: oklch(0.259 0.011 108.695);
--chart-5: oklch(0.806 0.095 109.999);
}