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.
Neighboring is a shadcn/ui theme built around a muted deep yellow primary color (#3a3927) with muted deep green accents (#323a27). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the muted deep yellow primary (#3a3927) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf8snow | #000000black |
| Foreground | #040401black | #ffffffwhite |
| Card | #fcfcf8snow | #000000black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fcfcf8snow | #000000black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #3a3927darkslategray | #3a3927darkslategray |
| Primary foreground | #d4d2bflightgrey | #d4d2bflightgrey |
| Secondary | #3a2f27darkslategray | #3a2f27darkslategray |
| Secondary foreground | #d4c8bfsilver | #d4c8bfsilver |
| Muted | #dbd8d7gainsboro | #282624darkslategray |
| Muted foreground | #5c5047darkolivegreen | #b8aca3darkgray |
| Accent | #323a27darkslategray | #323a27darkslategray |
| Accent foreground | #cbd4bflightgrey | #cbd4bflightgrey |
| Destructive | #d11815firebrick | #ec3f3ctomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3a3927darkslategray | #3a3927darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 5.51:1 | AA |
| Accent | 7.73:1 | AAA |
| Destructive | 5.46:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 6.79:1 | AA |
| Accent | 7.73:1 | AAA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Neighboring in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.005 102.296);
--foreground: oklch(0.102 0.012 104.944);
--muted: oklch(0.885 0.003 58.311);
--muted-foreground: oklch(0.44 0.022 57.667);
--popover: oklch(0.989 0.005 102.296);
--popover-foreground: oklch(0.102 0.012 104.944);
--card: oklch(0.989 0.005 102.296);
--card-foreground: oklch(0.102 0.012 104.944);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.339 0.029 103.468);
--primary-foreground: oklch(0.861 0.027 102.701);
--secondary: oklch(0.314 0.022 57.372);
--secondary-foreground: oklch(0.839 0.019 58.053);
--accent: oklch(0.335 0.034 126.546);
--accent-foreground: oklch(0.858 0.031 125.545);
--destructive: oklch(0.548 0.214 28.62);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.339 0.029 103.468);
--chart-1: oklch(0.339 0.029 103.468);
--chart-2: oklch(0.314 0.022 57.372);
--chart-3: oklch(0.335 0.034 126.546);
--chart-4: oklch(0.345 0.024 57.338);
--chart-5: oklch(0.343 0.033 103.593);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.27 0.004 58.135);
--muted-foreground: oklch(0.751 0.019 58.01);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.339 0.029 103.468);
--primary-foreground: oklch(0.861 0.027 102.701);
--secondary: oklch(0.314 0.022 57.372);
--secondary-foreground: oklch(0.839 0.019 58.053);
--accent: oklch(0.335 0.034 126.546);
--accent-foreground: oklch(0.858 0.031 125.545);
--destructive: oklch(0.626 0.21 26.451);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.339 0.029 103.468);
--chart-1: oklch(0.339 0.029 103.468);
--chart-2: oklch(0.314 0.022 57.372);
--chart-3: oklch(0.335 0.034 126.546);
--chart-4: oklch(0.345 0.024 57.338);
--chart-5: oklch(0.343 0.033 103.593);
}