Noteworthy is a shadcn/ui theme built around a near-black primary color (#1d1c21) with near-black accents (#1c211d). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#1d1c21) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #010109black | #f6f6f8whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #010104black | #f9f9fbghostwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #010104black | #f9f9fbghostwhite |
| Primary | #1d1c21black | #1d1c21black |
| Primary foreground | #b3b3bdsilver | #b3b3bdsilver |
| Secondary | #211d1cblack | #211d1cblack |
| Secondary foreground | #bdb3b3silver | #bdb3b3silver |
| Muted | #e8dedegainsboro | #211717black |
| Muted foreground | #5b4848darkolivegreen | #b7a4a4darkgray |
| Accent | #1c211dblack | #1c211dblack |
| Accent foreground | #b3bdb3silver | #b3bdb3silver |
| Destructive | #650101maroon | #e80202red |
| Destructive foreground | #fe9a9alightsalmon | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1d1c21black | #1d1c21black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.80:1 | AAA |
| Text on card | 20.39:1 | AAA |
| Primary button | 8.12:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 6.46:1 | AA |
| Accent | 8.45:1 | AAA |
| Destructive | 6.61:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 8.12:1 | AAA |
| Secondary button | 8.19:1 | AAA |
| Muted text | 7.37:1 | AAA |
| Accent | 8.45:1 | AAA |
| Destructive | 4.71:1 | AA |
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.085 0.03 279.325);
--muted: oklch(0.909 0.011 18.546);
--muted-foreground: oklch(0.422 0.026 19.387);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.067 0.024 279.325);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.067 0.024 279.325);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.23 0.008 286.503);
--primary-foreground: oklch(0.769 0.014 286.83);
--secondary: oklch(0.234 0.007 18.803);
--secondary-foreground: oklch(0.774 0.011 18.586);
--accent: oklch(0.241 0.01 145.705);
--accent-foreground: oklch(0.786 0.018 145.87);
--destructive: oklch(0.319 0.13 29.04);
--destructive-foreground: oklch(0.789 0.12 20.109);
--ring: oklch(0.23 0.008 286.503);
--chart-1: oklch(0.23 0.008 286.503);
--chart-2: oklch(0.234 0.007 18.803);
--chart-3: oklch(0.241 0.01 145.705);
--chart-4: oklch(0.265 0.008 18.835);
--chart-5: oklch(0.227 0.012 286.188);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.975 0.003 287.116);
--muted: oklch(0.218 0.016 19.595);
--muted-foreground: oklch(0.735 0.023 18.845);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.983 0.002 287.134);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.983 0.002 287.134);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.23 0.008 286.503);
--primary-foreground: oklch(0.769 0.014 286.83);
--secondary: oklch(0.234 0.007 18.803);
--secondary-foreground: oklch(0.774 0.011 18.586);
--accent: oklch(0.241 0.01 145.705);
--accent-foreground: oklch(0.786 0.018 145.87);
--destructive: oklch(0.586 0.24 29.162);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.23 0.008 286.503);
--chart-1: oklch(0.23 0.008 286.503);
--chart-2: oklch(0.234 0.007 18.803);
--chart-3: oklch(0.241 0.01 145.705);
--chart-4: oklch(0.265 0.008 18.835);
--chart-5: oklch(0.227 0.012 286.188);
}