Neighbour is a shadcn/ui theme built around a muted deep red primary color (#271717) with muted deep orange accents (#271f17). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep red primary (#271717) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #080202black | #faf5f5whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #080202black | #faf5f5whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #080202black | #faf5f5whitesmoke |
| Primary | #271717black | #271717black |
| Primary foreground | #caa5a5tan | #caa5a5tan |
| Secondary | #27171fblack | #27171fblack |
| Secondary foreground | #caa5b8silver | #caa5b8silver |
| Muted | #efecedwhitesmoke | #131012black |
| Muted foreground | #463940darkslategray | #c6b9bfsilver |
| Accent | #271f17black | #271f17black |
| Accent foreground | #cab8a5tan | #cab8a5tan |
| Destructive | #cf3202firebrick | #fd5421orangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #271717black | #271717black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 9.29:1 | AAA |
| Accent | 8.46:1 | AAA |
| Destructive | 5.11:1 | AA |
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 9.96:1 | AAA |
| Accent | 8.46:1 | AAA |
| Destructive | 6.46:1 | AA |
Paste this into your globals.css to use Neighbour in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.103 0.019 20.789);
--muted: oklch(0.945 0.004 345.243);
--muted-foreground: oklch(0.362 0.021 346.574);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.103 0.019 20.789);
--card: oklch(1 0 180);
--card-foreground: oklch(0.103 0.019 20.789);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.224 0.026 19.31);
--primary-foreground: oklch(0.755 0.044 18.167);
--secondary: oklch(0.227 0.029 348.256);
--secondary-foreground: oklch(0.761 0.05 346.783);
--accent: oklch(0.244 0.019 66.74);
--accent-foreground: oklch(0.792 0.033 67.315);
--destructive: oklch(0.56 0.199 34.306);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.224 0.026 19.31);
--chart-1: oklch(0.224 0.026 19.31);
--chart-2: oklch(0.227 0.029 348.256);
--chart-3: oklch(0.244 0.019 66.74);
--chart-4: oklch(0.258 0.035 348.466);
--chart-5: oklch(0.223 0.029 19.623);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.973 0.006 17.253);
--muted: oklch(0.179 0.005 345.926);
--muted-foreground: oklch(0.798 0.017 345.686);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.973 0.006 17.253);
--card: oklch(0 0 0);
--card-foreground: oklch(0.973 0.006 17.253);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.224 0.026 19.31);
--primary-foreground: oklch(0.755 0.044 18.167);
--secondary: oklch(0.227 0.029 348.256);
--secondary-foreground: oklch(0.761 0.05 346.783);
--accent: oklch(0.244 0.019 66.74);
--accent-foreground: oklch(0.792 0.033 67.315);
--destructive: oklch(0.672 0.213 36.133);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.224 0.026 19.31);
--chart-1: oklch(0.224 0.026 19.31);
--chart-2: oklch(0.227 0.029 348.256);
--chart-3: oklch(0.244 0.019 66.74);
--chart-4: oklch(0.258 0.035 348.466);
--chart-5: oklch(0.223 0.029 19.623);
}