Cord is a shadcn/ui theme built around a cyan primary color (#3d6f76) with green accents (#6f763d). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#3d6f76) on a cyan-tinted background (#070d0e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070d0eblack |
| Foreground | #020708black | #ffffffwhite |
| Card | #fcfcfcsnow | #091011black |
| Card foreground | #010404black | #ffffffwhite |
| Popover | #fcfcfcsnow | #091011black |
| Popover foreground | #010404black | #ffffffwhite |
| Primary | #3d6f76seagreen | #3d6f76seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #763d6frebeccapurple | #763d6frebeccapurple |
| Secondary foreground | #f6eef5whitesmoke | #f6eef5whitesmoke |
| Muted | #e0d1dfgainsboro | #2e1f2cdarkslategray |
| Muted foreground | #5b4358dimgray | #bca4b9darkgray |
| Accent | #6f763ddarkolivegreen | #6f763ddarkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d03b16firebrick | #ea5834tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3d6f76seagreen | #3d6f76seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 5.61:1 | AA |
| Secondary button | 6.94:1 | AA |
| Muted text | 6.01:1 | AA |
| Accent | 4.85:1 | AA |
| Destructive | 4.87:1 | AA |
| Text on background | 19.60:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 5.61:1 | AA |
| Secondary button | 6.94:1 | AA |
| Muted text | 6.80:1 | AA |
| Accent | 4.85:1 | AA |
| Destructive | 5.94:1 | AA |
Paste this into your globals.css to use Cord in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.123 0.014 203.402);
--muted: oklch(0.877 0.025 329.457);
--muted-foreground: oklch(0.417 0.046 330.351);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.098 0.011 203.402);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.098 0.011 203.402);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.51 0.055 206.574);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.449 0.105 331.627);
--secondary-foreground: oklch(0.958 0.013 329.289);
--accent: oklch(0.546 0.08 114.561);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.571 0.191 34.272);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.51 0.055 206.574);
--chart-1: oklch(0.51 0.055 206.574);
--chart-2: oklch(0.449 0.105 331.627);
--chart-3: oklch(0.546 0.08 114.561);
--chart-4: oklch(0.476 0.113 331.651);
--chart-5: oklch(0.515 0.059 206.681);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.01 205.707);
--foreground: oklch(1 0 180);
--muted: oklch(0.262 0.033 330.524);
--muted-foreground: oklch(0.746 0.04 329.74);
--popover: oklch(0.166 0.012 206.19);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.166 0.012 206.19);
--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.51 0.055 206.574);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.449 0.105 331.627);
--secondary-foreground: oklch(0.958 0.013 329.289);
--accent: oklch(0.546 0.08 114.561);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.648 0.187 35.071);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.51 0.055 206.574);
--chart-1: oklch(0.51 0.055 206.574);
--chart-2: oklch(0.449 0.105 331.627);
--chart-3: oklch(0.546 0.08 114.561);
--chart-4: oklch(0.476 0.113 331.651);
--chart-5: oklch(0.515 0.059 206.681);
}