North is a shadcn/ui theme built around a green primary color (#c0e359) with neutral gray accents (#d7d8d5). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the green primary (#c0e359) on a green-tinted background (#0d0f05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcf8snow | #0d0f05black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fbfcf8snow | #0d0f05black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfcf8snow | #0d0f05black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #c0e359darkkhaki | #c0e359darkkhaki |
| Primary foreground | #070901black | #070901black |
| Secondary | #d7d8d5lightgrey | #30312bdarkslategray |
| Secondary foreground | #3e403bdarkslategray | #c9cbc3silver |
| Muted | #eef0eblinen | #13140fblack |
| Muted foreground | #42453bdarkslategray | #c2c4basilver |
| Accent | #d7d8d5lightgrey | #30312bdarkslategray |
| Accent foreground | #3e403bdarkslategray | #c9cbc3silver |
| Destructive | #7a2306maroon | #f4541forangered |
| Destructive foreground | #fcc7b6peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c0e359darkkhaki | #c0e359darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.33:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 13.71:1 | AAA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 8.51:1 | AAA |
| Accent | 7.32:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.29:1 | AAA |
| Primary button | 13.71:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 10.46:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 3.40:1 | AA Large |
Paste this into your globals.css to use North in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 117.91);
--foreground: oklch(0 0 0);
--muted: oklch(0.952 0.007 117.951);
--muted-foreground: oklch(0.384 0.017 118.619);
--popover: oklch(0.988 0.005 117.91);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.988 0.005 117.91);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.864 0.167 121.859);
--primary-foreground: oklch(0.132 0.023 118.062);
--secondary: oklch(0.88 0.005 117.915);
--secondary-foreground: oklch(0.367 0.008 118.229);
--accent: oklch(0.88 0.005 117.915);
--accent-foreground: oklch(0.367 0.008 118.229);
--destructive: oklch(0.39 0.126 36.66);
--destructive-foreground: oklch(0.872 0.065 39.24);
--ring: oklch(0.864 0.167 121.859);
--chart-1: oklch(0.864 0.167 121.859);
--chart-2: oklch(0.88 0.005 117.915);
--chart-3: oklch(0.88 0.005 117.915);
--chart-4: oklch(0.903 0.004 117.896);
--chart-5: oklch(0.871 0.172 122.004);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.163 0.022 119.387);
--foreground: oklch(1 0 180);
--muted: oklch(0.189 0.01 118.766);
--muted-foreground: oklch(0.816 0.014 118.135);
--popover: oklch(0.163 0.022 119.387);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.163 0.022 119.387);
--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.864 0.167 121.859);
--primary-foreground: oklch(0.132 0.023 118.062);
--secondary: oklch(0.31 0.011 118.48);
--secondary-foreground: oklch(0.838 0.011 118.056);
--accent: oklch(0.31 0.011 118.48);
--accent-foreground: oklch(0.838 0.011 118.056);
--destructive: oklch(0.659 0.205 37.037);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.864 0.167 121.859);
--chart-1: oklch(0.864 0.167 121.859);
--chart-2: oklch(0.31 0.011 118.48);
--chart-3: oklch(0.31 0.011 118.48);
--chart-4: oklch(0.341 0.013 118.502);
--chart-5: oklch(0.871 0.172 122.004);
}