Noteworthy is a shadcn/ui theme built around a muted light yellow primary color (#f6f5f4) with muted light purple accents (#f5f4f6). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light yellow primary (#f6f5f4) on a neutral background (#080603).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080603black |
| Foreground | #161203black | #fdfdfcwhite |
| Card | #ffffffwhite | #080603black |
| Card foreground | #161203black | #fdfdfcwhite |
| Popover | #ffffffwhite | #080603black |
| Popover foreground | #161203black | #fdfdfcwhite |
| Primary | #f6f5f4whitesmoke | #f6f5f4whitesmoke |
| Primary foreground | #2d2b25darkslategray | #2d2b25darkslategray |
| Secondary | #f4f6f5whitesmoke | #f4f6f5whitesmoke |
| Secondary foreground | #252d2bdarkslategray | #252d2bdarkslategray |
| Muted | #e9eceblavender | #131615black |
| Muted foreground | #566763dimgray | #98a9a5darkgray |
| Accent | #f5f4f6whitesmoke | #f5f4f6whitesmoke |
| Accent foreground | #605365dimgray | #605365dimgray |
| Destructive | #973907saddlebrown | #db530achocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f6f5f4whitesmoke | #f6f5f4whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.71:1 | AAA |
| Text on card | 18.71:1 | AAA |
| Primary button | 13.01:1 | AAA |
| Secondary button | 12.97:1 | AAA |
| Muted text | 5.02:1 | AA |
| Accent | 6.54:1 | AA |
| Destructive | 7.20:1 | AAA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 13.01:1 | AAA |
| Secondary button | 12.97:1 | AAA |
| Muted text | 7.43:1 | AAA |
| Accent | 6.54:1 | AA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Noteworthy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.182 0.029 93.197);
--muted: oklch(0.941 0.003 179.783);
--muted-foreground: oklch(0.498 0.022 178.568);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.182 0.029 93.197);
--card: oklch(1 0 180);
--card-foreground: oklch(0.182 0.029 93.197);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.971 0.002 91.428);
--primary-foreground: oklch(0.288 0.011 91.697);
--secondary: oklch(0.971 0.002 179.799);
--secondary-foreground: oklch(0.288 0.012 178.632);
--accent: oklch(0.968 0.003 317.758);
--accent-foreground: oklch(0.461 0.034 317.642);
--destructive: oklch(0.471 0.137 42.472);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.971 0.002 91.428);
--chart-1: oklch(0.971 0.002 91.428);
--chart-2: oklch(0.971 0.002 179.799);
--chart-3: oklch(0.968 0.003 317.758);
--chart-4: oklch(0.993 0.001 179.85);
--chart-5: oklch(0.971 0.003 91.434);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.013 95.777);
--foreground: oklch(0.993 0.001 91.422);
--muted: oklch(0.196 0.004 179.271);
--muted-foreground: oklch(0.721 0.02 179.055);
--popover: oklch(0.124 0.013 95.777);
--popover-foreground: oklch(0.993 0.001 91.422);
--card: oklch(0.124 0.013 95.777);
--card-foreground: oklch(0.993 0.001 91.422);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.971 0.002 91.428);
--primary-foreground: oklch(0.288 0.011 91.697);
--secondary: oklch(0.971 0.002 179.799);
--secondary-foreground: oklch(0.288 0.012 178.632);
--accent: oklch(0.968 0.003 317.758);
--accent-foreground: oklch(0.461 0.034 317.642);
--destructive: oklch(0.617 0.184 41.64);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.971 0.002 91.428);
--chart-1: oklch(0.971 0.002 91.428);
--chart-2: oklch(0.971 0.002 179.799);
--chart-3: oklch(0.968 0.003 317.758);
--chart-4: oklch(0.993 0.001 179.85);
--chart-5: oklch(0.971 0.003 91.434);
}