Night is a shadcn/ui theme built around a muted deep green primary color (#2d392f) with muted deep teal accents (#2d3935). The light mode uses a neutral background (#f7fcf8). Dark mode keeps the muted deep green primary (#2d392f) on a green-tinted background (#040b05).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcf8mintcream | #040b05black |
| Foreground | #031705black | #f9fbf9mintcream |
| Card | #f4fbf5whitesmoke | #050f06black |
| Card foreground | #021204black | #fcfdfcwhite |
| Popover | #f4fbf5whitesmoke | #050f06black |
| Popover foreground | #021204black | #fcfdfcwhite |
| Primary | #2d392fdarkslategray | #2d392fdarkslategray |
| Primary foreground | #c6d2c8lightgrey | #c6d2c8lightgrey |
| Secondary | #31392ddarkslategray | #31392ddarkslategray |
| Secondary foreground | #cad2c6lightgrey | #cad2c6lightgrey |
| Muted | #e7ede3beige | #161c12black |
| Muted foreground | #4b5148darkslategray | #b1b7aedarkgray |
| Accent | #2d3935darkslategray | #2d3935darkslategray |
| Accent foreground | #c6d2celightgrey | #c6d2celightgrey |
| Destructive | #be2713firebrick | #d52c15firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2d392fdarkslategray | #2d392fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 17.98:1 | AAA |
| Text on card | 18.29:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 6.84:1 | AA |
| Accent | 7.72:1 | AAA |
| Destructive | 6.01:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 8.51:1 | AAA |
| Accent | 7.72:1 | AAA |
| Destructive | 4.99:1 | AA |
Paste this into your globals.css to use Night in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.008 149.587);
--foreground: oklch(0.18 0.045 146.996);
--muted: oklch(0.938 0.014 133.697);
--muted-foreground: oklch(0.427 0.017 133.854);
--popover: oklch(0.981 0.012 149.537);
--popover-foreground: oklch(0.162 0.04 147.486);
--card: oklch(0.981 0.012 149.537);
--card-foreground: oklch(0.162 0.04 147.486);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.33 0.025 148.713);
--primary-foreground: oklch(0.852 0.02 149.395);
--secondary: oklch(0.334 0.023 134.067);
--secondary-foreground: oklch(0.855 0.019 133.743);
--accent: oklch(0.332 0.018 170.892);
--accent-foreground: oklch(0.853 0.015 172.071);
--destructive: oklch(0.522 0.19 31.028);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.33 0.025 148.713);
--chart-1: oklch(0.33 0.025 148.713);
--chart-2: oklch(0.334 0.023 134.067);
--chart-3: oklch(0.332 0.018 170.892);
--chart-4: oklch(0.365 0.026 134.08);
--chart-5: oklch(0.333 0.031 148.472);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.022 148.635);
--foreground: oklch(0.986 0.003 149.646);
--muted: oklch(0.215 0.02 134.216);
--muted-foreground: oklch(0.772 0.014 133.723);
--popover: oklch(0.156 0.026 148.266);
--popover-foreground: oklch(0.993 0.002 149.665);
--card: oklch(0.156 0.026 148.266);
--card-foreground: oklch(0.993 0.002 149.665);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.33 0.025 148.713);
--primary-foreground: oklch(0.852 0.02 149.395);
--secondary: oklch(0.334 0.023 134.067);
--secondary-foreground: oklch(0.855 0.019 133.743);
--accent: oklch(0.332 0.018 170.892);
--accent-foreground: oklch(0.853 0.015 172.071);
--destructive: oklch(0.568 0.208 31.017);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.33 0.025 148.713);
--chart-1: oklch(0.33 0.025 148.713);
--chart-2: oklch(0.334 0.023 134.067);
--chart-3: oklch(0.332 0.018 170.892);
--chart-4: oklch(0.365 0.026 134.08);
--chart-5: oklch(0.333 0.031 148.472);
}