Neat is a shadcn/ui theme built around a blue primary color (#205a7e) with orange accents (#7e4420). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#205a7e) on a blue-tinted background (#04090c).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #04090cblack |
| Foreground | #010609black | #f6f8f8whitesmoke |
| Card | #fcfcfcsnow | #050b0fblack |
| Card foreground | #010305black | #f9fafbghostwhite |
| Popover | #fcfcfcsnow | #050b0fblack |
| Popover foreground | #010305black | #f9fafbghostwhite |
| Primary | #205a7eteal | #205a7eteal |
| Primary foreground | #daebf6lavender | #daebf6lavender |
| Secondary | #7e4420saddlebrown | #7e4420saddlebrown |
| Secondary foreground | #f6e5daantiquewhite | #f6e5daantiquewhite |
| Muted | #eae5e1gainsboro | #1e1915black |
| Muted foreground | #51453ddarkslategray | #c2b5aesilver |
| Accent | #7e4420saddlebrown | #7e4420saddlebrown |
| Accent foreground | #f6e5daantiquewhite | #f6e5daantiquewhite |
| Destructive | #c2230afirebrick | #da270bfirebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #205a7eteal | #205a7eteal |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.36:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 6.25:1 | AA |
| Muted text | 7.37:1 | AAA |
| Accent | 6.25:1 | AA |
| Destructive | 5.94:1 | AA |
| Text on background | 18.81:1 | AAA |
| Text on card | 18.89:1 | AAA |
| Primary button | 6.07:1 | AA |
| Secondary button | 6.25:1 | AA |
| Muted text | 8.75:1 | AAA |
| Accent | 6.25:1 | AA |
| Destructive | 4.90:1 | AA |
Paste this into your globals.css to use Neat in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.115 0.016 225.464);
--muted: oklch(0.924 0.007 54.402);
--muted-foreground: oklch(0.401 0.021 53.801);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.092 0.013 225.464);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.092 0.013 225.464);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.448 0.084 240.024);
--primary-foreground: oklch(0.931 0.023 234.874);
--secondary: oklch(0.451 0.094 50.109);
--secondary-foreground: oklch(0.932 0.023 54.165);
--accent: oklch(0.451 0.094 50.109);
--accent-foreground: oklch(0.932 0.023 54.165);
--destructive: oklch(0.525 0.196 31.338);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.448 0.084 240.024);
--chart-1: oklch(0.448 0.084 240.024);
--chart-2: oklch(0.451 0.094 50.109);
--chart-3: oklch(0.451 0.094 50.109);
--chart-4: oklch(0.482 0.102 50.005);
--chart-5: oklch(0.45 0.088 240.446);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.012 228.793);
--foreground: oklch(0.977 0.002 234.529);
--muted: oklch(0.216 0.01 53.883);
--muted-foreground: oklch(0.782 0.018 54.197);
--popover: oklch(0.146 0.014 232.493);
--popover-foreground: oklch(0.985 0.001 234.521);
--card: oklch(0.146 0.014 232.493);
--card-foreground: oklch(0.985 0.001 234.521);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.448 0.084 240.024);
--primary-foreground: oklch(0.931 0.023 234.874);
--secondary: oklch(0.451 0.094 50.109);
--secondary-foreground: oklch(0.932 0.023 54.165);
--accent: oklch(0.451 0.094 50.109);
--accent-foreground: oklch(0.932 0.023 54.165);
--destructive: oklch(0.573 0.215 31.287);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.448 0.084 240.024);
--chart-1: oklch(0.448 0.084 240.024);
--chart-2: oklch(0.451 0.094 50.109);
--chart-3: oklch(0.451 0.094 50.109);
--chart-4: oklch(0.482 0.102 50.005);
--chart-5: oklch(0.45 0.088 240.446);
}