Note is a shadcn/ui theme built around a muted green primary color (#566c41) with muted violet accents (#57416c). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#566c41) on a neutral background (#050803).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050803black |
| Foreground | #0a1104black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #080b04black |
| Card foreground | #070d03black | #ffffffwhite |
| Popover | #ffffffwhite | #050803black |
| Popover foreground | #0a1104black | #fcfdfcwhite |
| Primary | #566c41darkolivegreen | #566c41darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #57416cdarkslateblue | #57416cdarkslateblue |
| Secondary foreground | #f0ecf4whitesmoke | #f0ecf4whitesmoke |
| Muted | #d9cce6gainsboro | #271933darkslategray |
| Muted foreground | #57515ddimgray | #a9a2aedarkgray |
| Accent | #57416cdarkslateblue | #57416cdarkslateblue |
| Accent foreground | #f0ecf4whitesmoke | #f0ecf4whitesmoke |
| Destructive | #973402saddlebrown | #ed5102orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #566c41darkolivegreen | #566c41darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 5.78:1 | AA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 5.00:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 7.47:1 | AAA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 5.78:1 | AA |
| Secondary button | 7.55:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 7.55:1 | AAA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Note in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.165 0.031 129.35);
--muted: oklch(0.863 0.038 308.661);
--muted-foreground: oklch(0.444 0.021 308.628);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.165 0.031 129.35);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.147 0.026 128.091);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.503 0.07 130.796);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.418 0.075 307.174);
--secondary-foreground: oklch(0.948 0.011 309.004);
--accent: oklch(0.418 0.075 307.174);
--accent-foreground: oklch(0.948 0.011 309.004);
--destructive: oklch(0.464 0.143 40.47);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.503 0.07 130.796);
--chart-1: oklch(0.503 0.07 130.796);
--chart-2: oklch(0.418 0.075 307.174);
--chart-3: oklch(0.418 0.075 307.174);
--chart-4: oklch(0.443 0.08 307.149);
--chart-5: oklch(0.509 0.078 130.996);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.018 128.047);
--foreground: oklch(0.993 0.001 129.14);
--muted: oklch(0.245 0.051 306.812);
--muted-foreground: oklch(0.722 0.019 308.854);
--popover: oklch(0.125 0.018 128.047);
--popover-foreground: oklch(0.993 0.001 129.14);
--card: oklch(0.144 0.02 128.18);
--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.503 0.07 130.796);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.418 0.075 307.174);
--secondary-foreground: oklch(0.948 0.011 309.004);
--accent: oklch(0.418 0.075 307.174);
--accent-foreground: oklch(0.948 0.011 309.004);
--destructive: oklch(0.643 0.204 39.236);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.503 0.07 130.796);
--chart-1: oklch(0.503 0.07 130.796);
--chart-2: oklch(0.418 0.075 307.174);
--chart-3: oklch(0.418 0.075 307.174);
--chart-4: oklch(0.443 0.08 307.149);
--chart-5: oklch(0.509 0.078 130.996);
}