Noteworthy is a shadcn/ui theme built around a vivid light indigo primary color (#d1cafc) with vivid light green accents (#f5fcca). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light indigo primary (#d1cafc) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #070515black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #070515black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #070515black | #ffffffwhite |
| Primary | #d1cafclavender | #d1cafclavender |
| Primary foreground | #1b078ddarkblue | #1b078ddarkblue |
| Secondary | #f5fccalightgoldenrodyellow | #f5fccalightgoldenrodyellow |
| Secondary foreground | #252c02black | #252c02black |
| Muted | #f4f5efwhitesmoke | #0f100ablack |
| Muted foreground | #636652dimgray | #aaad99darkgray |
| Accent | #f5fccalightgoldenrodyellow | #f5fccalightgoldenrodyellow |
| Accent foreground | #252c02black | #252c02black |
| Destructive | #8a0500darkred | #e60800red |
| Destructive foreground | #ffbfbdlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d1cafclavender | #d1cafclavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.16:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 9.26:1 | AAA |
| Secondary button | 13.65:1 | AAA |
| Muted text | 5.40:1 | AA |
| Accent | 13.65:1 | AAA |
| Destructive | 6.41:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 9.26:1 | AAA |
| Secondary button | 13.65:1 | AAA |
| Muted text | 8.34:1 | AAA |
| Accent | 13.65:1 | AAA |
| Destructive | 4.79: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.13 0.036 289.052);
--muted: oklch(0.968 0.008 113.456);
--muted-foreground: oklch(0.501 0.031 114.46);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.13 0.036 289.052);
--card: oklch(1 0 180);
--card-foreground: oklch(0.13 0.036 289.052);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.861 0.07 291.738);
--primary-foreground: oklch(0.307 0.19 272.11);
--secondary: oklch(0.973 0.066 114.561);
--secondary-foreground: oklch(0.276 0.061 117.977);
--accent: oklch(0.973 0.066 114.561);
--accent-foreground: oklch(0.276 0.061 117.977);
--destructive: oklch(0.399 0.161 29.787);
--destructive-foreground: oklch(0.862 0.074 20.97);
--ring: oklch(0.861 0.07 291.738);
--chart-1: oklch(0.861 0.07 291.738);
--chart-2: oklch(0.973 0.066 114.561);
--chart-3: oklch(0.973 0.066 114.561);
--chart-4: oklch(0.98 0.048 114.218);
--chart-5: oklch(0.859 0.072 291.679);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.168 0.012 114.614);
--muted-foreground: oklch(0.74 0.028 114.021);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--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.861 0.07 291.738);
--primary-foreground: oklch(0.307 0.19 272.11);
--secondary: oklch(0.973 0.066 114.561);
--secondary-foreground: oklch(0.276 0.061 117.977);
--accent: oklch(0.973 0.066 114.561);
--accent-foreground: oklch(0.276 0.061 117.977);
--destructive: oklch(0.581 0.236 29.53);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.861 0.07 291.738);
--chart-1: oklch(0.861 0.07 291.738);
--chart-2: oklch(0.973 0.066 114.561);
--chart-3: oklch(0.973 0.066 114.561);
--chart-4: oklch(0.98 0.048 114.218);
--chart-5: oklch(0.859 0.072 291.679);
}