Arbitrary Norfolk Green is a shadcn/ui theme built around a muted deep green primary color (#2d493a) with muted deep teal accents (#2d4948). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted deep green primary (#2d493a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #000000black |
| Foreground | #020805black | #f6f8f7whitesmoke |
| Card | #f7fdfamintcream | #030303black |
| Card foreground | #010402black | #f9fbfamintcream |
| Popover | #f7fdfamintcream | #030303black |
| Popover foreground | #010402black | #f9fbfamintcream |
| Primary | #2d493adarkslategray | #2d493adarkslategray |
| Primary foreground | #c9ded3lightgrey | #c9ded3lightgrey |
| Secondary | #2e492ddarkslategray | #2e492ddarkslategray |
| Secondary foreground | #cadec9lightgrey | #cadec9lightgrey |
| Muted | #e4f2e3beige | #0e1c0dblack |
| Muted foreground | #4a4f4adarkslategray | #b0b5b0darkgray |
| Accent | #2d4948darkslategray | #2d4948darkslategray |
| Accent foreground | #c9deddlightgrey | #c9deddlightgrey |
| Destructive | #b54103firebrick | #fc7b36coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #eceeedwhitesmoke | #181b19black |
| Input | #eceeedwhitesmoke | #181b19black |
| Ring | #2d493adarkslategray | #2d493adarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 7.02:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 7.20:1 | AAA |
| Accent | 6.97:1 | AA |
| Destructive | 5.64:1 | AA |
| Text on background | 19.68:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.02:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 8.50:1 | AAA |
| Accent | 6.97:1 | AA |
| Destructive | 8.03:1 | AAA |
Paste this into your globals.css to use Arbitrary Norfolk Green in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 163.349);
--foreground: oklch(0.124 0.018 163.518);
--muted: oklch(0.946 0.024 144.454);
--muted-foreground: oklch(0.421 0.009 144.474);
--popover: oklch(0.988 0.007 163.253);
--popover-foreground: oklch(0.098 0.014 163.518);
--card: oklch(0.988 0.007 163.253);
--card-foreground: oklch(0.098 0.014 163.518);
--border: oklch(0.948 0.002 163.384);
--input: oklch(0.948 0.002 163.384);
--primary: oklch(0.377 0.043 160.118);
--primary-foreground: oklch(0.882 0.027 162.654);
--secondary: oklch(0.374 0.058 143.565);
--secondary-foreground: oklch(0.88 0.035 144.356);
--accent: oklch(0.382 0.034 193.146);
--accent-foreground: oklch(0.885 0.022 194.325);
--destructive: oklch(0.531 0.162 41.159);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.377 0.043 160.118);
--chart-1: oklch(0.377 0.043 160.118);
--chart-2: oklch(0.374 0.058 143.565);
--chart-3: oklch(0.382 0.034 193.146);
--chart-4: oklch(0.406 0.064 143.544);
--chart-5: oklch(0.381 0.048 159.703);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.002 163.384);
--muted: oklch(0.207 0.034 143.499);
--muted-foreground: oklch(0.768 0.008 144.55);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.986 0.002 163.405);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.002 163.405);
--border: oklch(0.218 0.005 162.892);
--input: oklch(0.218 0.005 162.892);
--primary: oklch(0.377 0.043 160.118);
--primary-foreground: oklch(0.882 0.027 162.654);
--secondary: oklch(0.374 0.058 143.565);
--secondary-foreground: oklch(0.88 0.035 144.356);
--accent: oklch(0.382 0.034 193.146);
--accent-foreground: oklch(0.885 0.022 194.325);
--destructive: oklch(0.723 0.176 45.765);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.377 0.043 160.118);
--chart-1: oklch(0.377 0.043 160.118);
--chart-2: oklch(0.374 0.058 143.565);
--chart-3: oklch(0.382 0.034 193.146);
--chart-4: oklch(0.406 0.064 143.544);
--chart-5: oklch(0.381 0.048 159.703);
}