Noted is a shadcn/ui theme built around a near-black primary color (#030203) with near-black accents (#020302). The light mode uses a neutral background (#fcf7fc). Dark mode keeps the near-black primary (#030203) on a purple-tinted background (#0b040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fcsnow | #0b040bblack |
| Foreground | #080208black | #f8f7f8whitesmoke |
| Card | #fbf4fbghostwhite | #0f050fblack |
| Card foreground | #040104black | #faf9fasnow |
| Popover | #fcf7fcsnow | #0b040bblack |
| Popover foreground | #080208black | #f8f7f8whitesmoke |
| Primary | #030203black | #030203black |
| Primary foreground | #a690a7darkgray | #a690a7darkgray |
| Secondary | #020302black | #020302black |
| Secondary foreground | #91a790darkseagreen | #91a790darkseagreen |
| Muted | #e8ede8linen | #121712black |
| Muted foreground | #496148darkolivegreen | #9fb79edarkgray |
| Accent | #020302black | #020302black |
| Accent foreground | #91a790darkseagreen | #91a790darkseagreen |
| Destructive | #a71701darkred | #f92201red |
| Destructive foreground | #ffe0dbmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030203black | #030203black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.47:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 5.74:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.10:1 | AA |
| Text on background | 18.96:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 7.06:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 8.42:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Noted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.008 324.179);
--foreground: oklch(0.107 0.03 326.091);
--muted: oklch(0.941 0.008 144.079);
--muted-foreground: oklch(0.465 0.049 143.483);
--popover: oklch(0.982 0.008 324.179);
--popover-foreground: oklch(0.107 0.03 326.091);
--card: oklch(0.974 0.012 324.204);
--card-foreground: oklch(0.085 0.024 326.091);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.091 0.004 324.485);
--primary-foreground: oklch(0.68 0.043 324.489);
--secondary: oklch(0.093 0.004 143.773);
--secondary-foreground: oklch(0.706 0.043 143.77);
--accent: oklch(0.093 0.004 143.773);
--accent-foreground: oklch(0.706 0.043 143.77);
--destructive: oklch(0.467 0.18 31.359);
--destructive-foreground: oklch(0.931 0.035 28.166);
--ring: oklch(0.091 0.004 324.485);
--chart-1: oklch(0.091 0.004 324.485);
--chart-2: oklch(0.093 0.004 143.773);
--chart-3: oklch(0.093 0.004 143.773);
--chart-4: oklch(0.148 0.007 143.799);
--chart-5: oklch(0.09 0.005 324.574);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.025 325.5);
--foreground: oklch(0.976 0.003 324.145);
--muted: oklch(0.197 0.012 143.766);
--muted-foreground: oklch(0.756 0.044 143.78);
--popover: oklch(0.125 0.025 325.5);
--popover-foreground: oklch(0.976 0.003 324.145);
--card: oklch(0.139 0.029 325.356);
--card-foreground: oklch(0.984 0.002 324.14);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.091 0.004 324.485);
--primary-foreground: oklch(0.68 0.043 324.489);
--secondary: oklch(0.093 0.004 143.773);
--secondary-foreground: oklch(0.706 0.043 143.77);
--accent: oklch(0.093 0.004 143.773);
--accent-foreground: oklch(0.706 0.043 143.77);
--destructive: oklch(0.626 0.244 30.895);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.091 0.004 324.485);
--chart-1: oklch(0.091 0.004 324.485);
--chart-2: oklch(0.093 0.004 143.773);
--chart-3: oklch(0.093 0.004 143.773);
--chart-4: oklch(0.148 0.007 143.799);
--chart-5: oklch(0.09 0.005 324.574);
}