Chord is a shadcn/ui theme built around a muted light green primary color (#e8eae6) with neutral gray accents (#e6e7e4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#e8eae6) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030401black |
| Foreground | #000000black | #f8faf5whitesmoke |
| Card | #ffffffwhite | #030401black |
| Card foreground | #000000black | #f8faf5whitesmoke |
| Popover | #ffffffwhite | #030401black |
| Popover foreground | #000000black | #f8faf5whitesmoke |
| Primary | #e8eae6linen | #e8eae6linen |
| Primary foreground | #505648darkolivegreen | #505648darkolivegreen |
| Secondary | #e6e7e4gainsboro | #171a14black |
| Secondary foreground | #4d5148darkslategray | #b1bba5darkgray |
| Muted | #f3f7edwhitesmoke | #0d1208black |
| Muted foreground | #525a49darkolivegreen | #aeb6a5darkgray |
| Accent | #e6e7e4gainsboro | #171a14black |
| Accent foreground | #4d5148darkslategray | #b1bba5darkgray |
| Destructive | #920707darkred | #db0a0ared |
| Destructive foreground | #fdcecepink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e8eae6linen | #e8eae6linen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 6.53:1 | AA |
| Muted text | 6.63:1 | AA |
| Accent | 6.53:1 | AA |
| Destructive | 6.59:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 6.27:1 | AA |
| Secondary button | 8.79:1 | AAA |
| Muted text | 9.07:1 | AAA |
| Accent | 8.79:1 | AAA |
| Destructive | 5.16:1 | AA |
Paste this into your globals.css to use Chord in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.971 0.014 126.613);
--muted-foreground: oklch(0.455 0.027 127.221);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.935 0.006 126.509);
--primary-foreground: oklch(0.444 0.024 127.141);
--secondary: oklch(0.926 0.004 126.489);
--secondary-foreground: oklch(0.429 0.016 126.905);
--accent: oklch(0.926 0.004 126.489);
--accent-foreground: oklch(0.429 0.016 126.905);
--destructive: oklch(0.418 0.167 28.662);
--destructive-foreground: oklch(0.892 0.053 18.183);
--ring: oklch(0.935 0.006 126.509);
--chart-1: oklch(0.935 0.006 126.509);
--chart-2: oklch(0.926 0.004 126.489);
--chart-3: oklch(0.926 0.004 126.489);
--chart-4: oklch(0.948 0.003 126.469);
--chart-5: oklch(0.936 0.008 126.535);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.015 125.512);
--foreground: oklch(0.982 0.007 126.526);
--muted: oklch(0.172 0.021 127.864);
--muted-foreground: oklch(0.764 0.024 126.839);
--popover: oklch(0.101 0.015 125.512);
--popover-foreground: oklch(0.982 0.007 126.526);
--card: oklch(0.101 0.015 125.512);
--card-foreground: oklch(0.982 0.007 126.526);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.935 0.006 126.509);
--primary-foreground: oklch(0.444 0.024 127.141);
--secondary: oklch(0.213 0.013 127.235);
--secondary-foreground: oklch(0.778 0.033 126.975);
--accent: oklch(0.213 0.013 127.235);
--accent-foreground: oklch(0.778 0.033 126.975);
--destructive: oklch(0.563 0.227 28.879);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.935 0.006 126.509);
--chart-1: oklch(0.935 0.006 126.509);
--chart-2: oklch(0.213 0.013 127.235);
--chart-3: oklch(0.213 0.013 127.235);
--chart-4: oklch(0.249 0.017 127.317);
--chart-5: oklch(0.936 0.008 126.535);
}