Choir is a shadcn/ui theme built around a muted light green primary color (#f4f6f4) with muted light green accents (#d1d8cf). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#f4f6f4) on a neutral background (#040802).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040802black |
| Foreground | #040802black | #fafbf9snow |
| Card | #fcfcfcsnow | #060c04black |
| Card foreground | #020401black | #fcfdfcwhite |
| Popover | #ffffffwhite | #040802black |
| Popover foreground | #040802black | #fafbf9snow |
| Primary | #f4f6f4whitesmoke | #f4f6f4whitesmoke |
| Primary foreground | #272d25darkslategray | #272d25darkslategray |
| Secondary | #d1d8cflightgrey | #30312fdarkslategray |
| Secondary foreground | #384134darkslategray | #c9cbc8silver |
| Muted | #d5e9cegainsboro | #1e3116black |
| Muted foreground | #5e6f58dimgray | #96a790darkseagreen |
| Accent | #d1d8cflightgrey | #30312fdarkslategray |
| Accent foreground | #384134darkslategray | #c9cbc8silver |
| Destructive | #bb0502firebrick | #f20602red |
| Destructive foreground | #fff0f0lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4f6f4whitesmoke | #f4f6f4whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 12.98:1 | AAA |
| Secondary button | 7.34:1 | AAA |
| Muted text | 4.19:1 | AA Large |
| Accent | 7.34:1 | AAA |
| Destructive | 6.06:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 12.98:1 | AAA |
| Secondary button | 7.96:1 | AAA |
| Muted text | 5.47:1 | AA |
| Accent | 7.96:1 | AAA |
| Destructive | 4.35:1 | AA Large |
Paste this into your globals.css to use Choir in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.022 135.428);
--muted: oklch(0.911 0.041 137.298);
--muted-foreground: oklch(0.522 0.042 137.398);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.125 0.022 135.428);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.099 0.018 135.428);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.971 0.003 137.197);
--primary-foreground: oklch(0.288 0.017 137.334);
--secondary: oklch(0.875 0.015 137.229);
--secondary-foreground: oklch(0.363 0.025 137.364);
--accent: oklch(0.875 0.015 137.229);
--accent-foreground: oklch(0.363 0.025 137.364);
--destructive: oklch(0.498 0.203 29.329);
--destructive-foreground: oklch(0.967 0.016 18.617);
--ring: oklch(0.971 0.003 137.197);
--chart-1: oklch(0.971 0.003 137.197);
--chart-2: oklch(0.875 0.015 137.229);
--chart-3: oklch(0.875 0.015 137.229);
--chart-4: oklch(0.898 0.012 137.221);
--chart-5: oklch(0.971 0.004 137.199);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.02 135.6);
--foreground: oklch(0.986 0.002 137.195);
--muted: oklch(0.288 0.052 137.818);
--muted-foreground: oklch(0.709 0.039 137.326);
--popover: oklch(0.124 0.02 135.6);
--popover-foreground: oklch(0.986 0.002 137.195);
--card: oklch(0.142 0.023 135.681);
--card-foreground: oklch(0.993 0.001 137.192);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.971 0.003 137.197);
--primary-foreground: oklch(0.288 0.017 137.334);
--secondary: oklch(0.313 0.004 137.219);
--secondary-foreground: oklch(0.839 0.003 137.199);
--accent: oklch(0.313 0.004 137.219);
--accent-foreground: oklch(0.839 0.003 137.199);
--destructive: oklch(0.605 0.247 29.302);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.971 0.003 137.197);
--chart-1: oklch(0.971 0.003 137.197);
--chart-2: oklch(0.313 0.004 137.219);
--chart-3: oklch(0.313 0.004 137.219);
--chart-4: oklch(0.343 0.004 137.22);
--chart-5: oklch(0.971 0.004 137.199);
}