Noted is a shadcn/ui theme built around a neutral gray primary color (#aaa7aa) with neutral gray accents (#a7aaaa). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the neutral gray primary (#aaa7aa) on a purple-tinted background (#0b030c).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #0b030cblack |
| Foreground | #080208black | #f9f6f9whitesmoke |
| Card | #fcf8fcsnow | #0f0410black |
| Card foreground | #040104black | #fbf9fbsnow |
| Popover | #fcf8fcsnow | #0f0410black |
| Popover foreground | #040104black | #fbf9fbsnow |
| Primary | #aaa7aadarkgray | #aaa7aadarkgray |
| Primary foreground | #100f10black | #100f10black |
| Secondary | #aaaaa7darkgray | #aaaaa7darkgray |
| Secondary foreground | #10100fblack | #10100fblack |
| Muted | #e5e4dcgainsboro | #23221ablack |
| Muted foreground | #514f3edarkolivegreen | #c1bfaesilver |
| Accent | #a7aaaadarkgray | #a7aaaadarkgray |
| Accent foreground | #0f1010black | #0f1010black |
| Destructive | #770303maroon | #f91f1fcrimson |
| Destructive foreground | #fdafaflightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #aaa7aadarkgray | #aaa7aadarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.00:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 6.47:1 | AA |
| Accent | 8.13:1 | AAA |
| Destructive | 6.61:1 | AA |
| Text on background | 18.93:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 7.99:1 | AAA |
| Secondary button | 8.15:1 | AAA |
| Muted text | 8.61:1 | AAA |
| Accent | 8.13:1 | AAA |
| Destructive | 3.99:1 | AA Large |
Paste this into your globals.css to use Noted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 322.641);
--foreground: oklch(0.106 0.027 324.57);
--muted: oklch(0.917 0.01 101.465);
--muted-foreground: oklch(0.424 0.027 102.198);
--popover: oklch(0.983 0.007 322.656);
--popover-foreground: oklch(0.084 0.022 324.57);
--card: oklch(0.983 0.007 322.656);
--card-foreground: oklch(0.084 0.022 324.57);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.731 0.006 322.66);
--primary-foreground: oklch(0.169 0.002 322.663);
--secondary: oklch(0.736 0.004 101.383);
--secondary-foreground: oklch(0.171 0.001 101.392);
--accent: oklch(0.735 0.004 189.954);
--accent-foreground: oklch(0.17 0.001 189.942);
--destructive: oklch(0.36 0.145 28.834);
--destructive-foreground: oklch(0.829 0.091 19.185);
--ring: oklch(0.731 0.006 322.66);
--chart-1: oklch(0.731 0.006 322.66);
--chart-2: oklch(0.736 0.004 101.383);
--chart-3: oklch(0.735 0.004 189.954);
--chart-4: oklch(0.76 0.004 101.371);
--chart-5: oklch(0.728 0.015 322.71);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.029 324.194);
--foreground: oklch(0.976 0.005 322.646);
--muted: oklch(0.25 0.014 102.112);
--muted-foreground: oklch(0.802 0.023 101.729);
--popover: oklch(0.137 0.033 323.848);
--popover-foreground: oklch(0.984 0.003 322.64);
--card: oklch(0.137 0.033 323.848);
--card-foreground: oklch(0.984 0.003 322.64);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.731 0.006 322.66);
--primary-foreground: oklch(0.169 0.002 322.663);
--secondary: oklch(0.736 0.004 101.383);
--secondary-foreground: oklch(0.171 0.001 101.392);
--accent: oklch(0.735 0.004 189.954);
--accent-foreground: oklch(0.17 0.001 189.942);
--destructive: oklch(0.626 0.244 28.13);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.731 0.006 322.66);
--chart-1: oklch(0.731 0.006 322.66);
--chart-2: oklch(0.736 0.004 101.383);
--chart-3: oklch(0.735 0.004 189.954);
--chart-4: oklch(0.76 0.004 101.371);
--chart-5: oklch(0.728 0.015 322.71);
}