Noted is a shadcn/ui theme built around a muted deep blue primary color (#090a0b) with muted deep indigo accents (#09090b). The light mode uses a neutral background (#fbfcfd). Dark mode keeps the muted deep blue primary (#090a0b) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfdwhite | #000000black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fbfcfdwhite | #000000black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfcfdwhite | #000000black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #090a0bblack | #090a0bblack |
| Primary foreground | #9ca2abdarkgray | #9ca2abdarkgray |
| Secondary | #090b0bblack | #090b0bblack |
| Secondary foreground | #9caaabdarkgray | #9caaabdarkgray |
| Muted | #dee7e7gainsboro | #182021black |
| Muted foreground | #4e5e5fdimgray | #a0b0b1darkgray |
| Accent | #09090bblack | #09090bblack |
| Accent foreground | #9d9cabdarkgray | #9d9cabdarkgray |
| Destructive | #661505maroon | #f45434tomato |
| Destructive foreground | #fab1a3lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #090a0bblack | #090a0bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 5.40:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 7.09:1 | AAA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 7.38:1 | AAA |
| Accent | 7.35:1 | AAA |
| Destructive | 6.16:1 | AA |
Paste this into your globals.css to use Noted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 254.963);
--foreground: oklch(0 0 0);
--muted: oklch(0.921 0.009 202.11);
--muted-foreground: oklch(0.469 0.02 201.813);
--popover: oklch(0.992 0.002 254.963);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0.002 254.963);
--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.145 0.002 254.551);
--primary-foreground: oklch(0.71 0.014 255.053);
--secondary: oklch(0.147 0.003 202);
--secondary-foreground: oklch(0.726 0.016 201.996);
--accent: oklch(0.143 0.004 289.1);
--accent-foreground: oklch(0.698 0.021 288.899);
--destructive: oklch(0.336 0.116 33.119);
--destructive-foreground: oklch(0.827 0.088 31.631);
--ring: oklch(0.145 0.002 254.551);
--chart-1: oklch(0.145 0.002 254.551);
--chart-2: oklch(0.147 0.003 202);
--chart-3: oklch(0.143 0.004 289.1);
--chart-4: oklch(0.184 0.004 201.98);
--chart-5: oklch(0.144 0.003 254.328);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.235 0.012 201.746);
--muted-foreground: oklch(0.744 0.018 201.968);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.145 0.002 254.551);
--primary-foreground: oklch(0.71 0.014 255.053);
--secondary: oklch(0.147 0.003 202);
--secondary-foreground: oklch(0.726 0.016 201.996);
--accent: oklch(0.143 0.004 289.1);
--accent-foreground: oklch(0.698 0.021 288.899);
--destructive: oklch(0.66 0.202 33.207);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.145 0.002 254.551);
--chart-1: oklch(0.145 0.002 254.551);
--chart-2: oklch(0.147 0.003 202);
--chart-3: oklch(0.143 0.004 289.1);
--chart-4: oklch(0.184 0.004 201.98);
--chart-5: oklch(0.144 0.003 254.328);
}