Note is a shadcn/ui theme built around a muted deep green primary color (#1a2414) with muted deep green accents (#142416). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted deep green primary (#1a2414) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #020401black |
| Foreground | #091103black | #fafbf9snow |
| Card | #f9fdf6mintcream | #040802black |
| Card foreground | #060d02black | #fcfdfcwhite |
| Popover | #f9fdf6mintcream | #040802black |
| Popover foreground | #060d02black | #fcfdfcwhite |
| Primary | #1a2414black | #1a2414black |
| Primary foreground | #b0caa0darkgray | #b0caa0darkgray |
| Secondary | #222414black | #222414black |
| Secondary foreground | #c5caa0tan | #c5caa0tan |
| Muted | #e7ead2antiquewhite | #2a2d15black |
| Muted foreground | #6a6d55dimgray | #a7aa92darkgray |
| Accent | #142416black | #142416black |
| Accent foreground | #a0caa5darkseagreen | #a0caa5darkseagreen |
| Destructive | #902204darkred | #fa6238tomato |
| Destructive foreground | #fed4c8peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a2414black | #1a2414black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.96:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 9.03:1 | AAA |
| Secondary button | 9.27:1 | AAA |
| Muted text | 4.34:1 | AA Large |
| Accent | 8.88:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 9.03:1 | AAA |
| Secondary button | 9.27:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 8.88:1 | AAA |
| Destructive | 6.86:1 | AA |
Paste this into your globals.css to use Note in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 133.021);
--foreground: oklch(0.165 0.035 132.439);
--muted: oklch(0.928 0.032 112.417);
--muted-foreground: oklch(0.524 0.035 113.025);
--popover: oklch(0.99 0.01 133.057);
--popover-foreground: oklch(0.147 0.03 131.456);
--card: oklch(0.99 0.01 133.057);
--card-foreground: oklch(0.147 0.03 131.456);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.245 0.032 133.997);
--primary-foreground: oklch(0.808 0.063 133.554);
--secondary: oklch(0.253 0.028 113.82);
--secondary-foreground: oklch(0.824 0.056 113.039);
--accent: oklch(0.241 0.034 147.304);
--accent-foreground: oklch(0.798 0.067 148.084);
--destructive: oklch(0.431 0.15 34.481);
--destructive-foreground: oklch(0.902 0.05 35.952);
--ring: oklch(0.245 0.032 133.997);
--chart-1: oklch(0.245 0.032 133.997);
--chart-2: oklch(0.253 0.028 113.82);
--chart-3: oklch(0.241 0.034 147.304);
--chart-4: oklch(0.292 0.034 113.947);
--chart-5: oklch(0.248 0.035 134.11);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.015 131.576);
--foreground: oklch(0.987 0.004 133.013);
--muted: oklch(0.288 0.04 114.378);
--muted-foreground: oklch(0.728 0.033 112.615);
--popover: oklch(0.125 0.019 131.576);
--popover-foreground: oklch(0.993 0.002 132.999);
--card: oklch(0.125 0.019 131.576);
--card-foreground: oklch(0.993 0.002 132.999);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.245 0.032 133.997);
--primary-foreground: oklch(0.808 0.063 133.554);
--secondary: oklch(0.253 0.028 113.82);
--secondary-foreground: oklch(0.824 0.056 113.039);
--accent: oklch(0.241 0.034 147.304);
--accent-foreground: oklch(0.798 0.067 148.084);
--destructive: oklch(0.686 0.194 36.071);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.245 0.032 133.997);
--chart-1: oklch(0.245 0.032 133.997);
--chart-2: oklch(0.253 0.028 113.82);
--chart-3: oklch(0.241 0.034 147.304);
--chart-4: oklch(0.292 0.034 113.947);
--chart-5: oklch(0.248 0.035 134.11);
}