Noteworthy is a shadcn/ui theme built around a green primary color (#a4cf96) with red accents (#cf96a4). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the green primary (#a4cf96) on a neutral background (#040703).
| Token | Light | Dark |
|---|---|---|
| Background | #f9fcf8mintcream | #040703black |
| Foreground | #020401black | #ffffffwhite |
| Card | #f9fcf8mintcream | #040703black |
| Card foreground | #020401black | #ffffffwhite |
| Popover | #f9fcf8mintcream | #040703black |
| Popover foreground | #020401black | #ffffffwhite |
| Primary | #a4cf96darkseagreen | #a4cf96darkseagreen |
| Primary foreground | #152310black | #152310black |
| Secondary | #96a4cfdarkgray | #96a4cfdarkgray |
| Secondary foreground | #101523black | #101523black |
| Muted | #edeff2whitesmoke | #0d0e12black |
| Muted foreground | #565c6cdimgray | #9399a9darkgray |
| Accent | #cf96a4rosybrown | #cf96a4rosybrown |
| Accent foreground | #231015black | #231015black |
| Destructive | #b63711firebrick | #ec5d32tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a4cf96darkseagreen | #a4cf96darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 9.32:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 5.78:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 5.91:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 9.32:1 | AAA |
| Secondary button | 7.39:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 7.40:1 | AAA |
| Destructive | 6.17:1 | AA |
Paste this into your globals.css to use Noteworthy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 137.772);
--foreground: oklch(0.1 0.02 135.811);
--muted: oklch(0.951 0.005 271.362);
--muted-foreground: oklch(0.474 0.027 270.801);
--popover: oklch(0.987 0.005 137.772);
--popover-foreground: oklch(0.1 0.02 135.811);
--card: oklch(0.987 0.005 137.772);
--card-foreground: oklch(0.1 0.02 135.811);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.809 0.09 137.992);
--primary-foreground: oklch(0.237 0.04 138.191);
--secondary: oklch(0.724 0.064 270.381);
--secondary-foreground: oklch(0.198 0.03 269.482);
--accent: oklch(0.732 0.07 2.477);
--accent-foreground: oklch(0.203 0.033 4.276);
--destructive: oklch(0.522 0.169 35.855);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.809 0.09 137.992);
--chart-1: oklch(0.809 0.09 137.992);
--chart-2: oklch(0.724 0.064 270.381);
--chart-3: oklch(0.732 0.07 2.477);
--chart-4: oklch(0.752 0.057 270.551);
--chart-5: oklch(0.813 0.097 138.014);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.015 136.571);
--foreground: oklch(1 0 180);
--muted: oklch(0.165 0.007 270.932);
--muted-foreground: oklch(0.683 0.024 271.046);
--popover: oklch(0.122 0.015 136.571);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.015 136.571);
--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.809 0.09 137.992);
--primary-foreground: oklch(0.237 0.04 138.191);
--secondary: oklch(0.724 0.064 270.381);
--secondary-foreground: oklch(0.198 0.03 269.482);
--accent: oklch(0.732 0.07 2.477);
--accent-foreground: oklch(0.203 0.033 4.276);
--destructive: oklch(0.658 0.186 37.036);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.809 0.09 137.992);
--chart-1: oklch(0.809 0.09 137.992);
--chart-2: oklch(0.724 0.064 270.381);
--chart-3: oklch(0.732 0.07 2.477);
--chart-4: oklch(0.752 0.057 270.551);
--chart-5: oklch(0.813 0.097 138.014);
}