Noteworthy is a shadcn/ui theme built around a neutral gray primary color (#706f6b) with neutral gray accents (#6b6d70). The light mode uses a neutral background (#fdfcf6). Dark mode keeps the neutral gray primary (#706f6b) on a yellow-tinted background (#0a0905).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf6snow | #0a0905black |
| Foreground | #050301black | #faf9f4whitesmoke |
| Card | #fdfcf6snow | #0a0905black |
| Card foreground | #050301black | #faf9f4whitesmoke |
| Popover | #fdfcf6snow | #0a0905black |
| Popover foreground | #050301black | #faf9f4whitesmoke |
| Primary | #706f6bdimgray | #706f6bdimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #6b6d70dimgray | #6b6d70dimgray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dee2edlavender | #121621black |
| Muted foreground | #4b4c4edarkslategray | #b1b2b4darkgray |
| Accent | #6b6d70dimgray | #6b6d70dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8b2304darkred | #fa5a29tomato |
| Destructive foreground | #fdd1c3peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #706f6bdimgray | #706f6bdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.99:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 5.04:1 | AA |
| Secondary button | 5.20:1 | AA |
| Muted text | 6.64:1 | AA |
| Accent | 5.20:1 | AA |
| Destructive | 6.42:1 | AA |
| Text on background | 18.90:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 5.04:1 | AA |
| Secondary button | 5.20:1 | AA |
| Muted text | 8.50:1 | AAA |
| Accent | 5.20:1 | AA |
| Destructive | 6.53:1 | AA |
Paste this into your globals.css to use Noteworthy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.007 90.174);
--foreground: oklch(0.102 0.017 96.964);
--muted: oklch(0.913 0.015 269.982);
--muted-foreground: oklch(0.416 0.004 270.044);
--popover: oklch(0.99 0.007 90.174);
--popover-foreground: oklch(0.102 0.017 96.964);
--card: oklch(0.99 0.007 90.174);
--card-foreground: oklch(0.102 0.017 96.964);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.541 0.005 90.192);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.533 0.005 270.04);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.533 0.005 270.04);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.423 0.144 35.31);
--destructive-foreground: oklch(0.895 0.054 37.592);
--ring: oklch(0.541 0.005 90.192);
--chart-1: oklch(0.541 0.005 90.192);
--chart-2: oklch(0.533 0.005 270.04);
--chart-3: oklch(0.533 0.005 270.04);
--chart-4: oklch(0.56 0.005 270.039);
--chart-5: oklch(0.546 0.013 90.282);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.01 93.235);
--foreground: oklch(0.981 0.006 90.167);
--muted: oklch(0.202 0.022 268.928);
--muted-foreground: oklch(0.763 0.003 270.085);
--popover: oklch(0.139 0.01 93.235);
--popover-foreground: oklch(0.981 0.006 90.167);
--card: oklch(0.139 0.01 93.235);
--card-foreground: oklch(0.981 0.006 90.167);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.541 0.005 90.192);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.533 0.005 270.04);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.533 0.005 270.04);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.674 0.204 36.581);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.541 0.005 90.192);
--chart-1: oklch(0.541 0.005 90.192);
--chart-2: oklch(0.533 0.005 270.04);
--chart-3: oklch(0.533 0.005 270.04);
--chart-4: oklch(0.56 0.005 270.039);
--chart-5: oklch(0.546 0.013 90.282);
}