Cord is a shadcn/ui theme built around a muted deep green primary color (#151b13) with muted deep red accents (#1b1315). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted deep green primary (#151b13) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #020401black |
| Foreground | #081505black | #f6f9f5whitesmoke |
| Card | #f8fdf7mintcream | #040803black |
| Card foreground | #071104black | #f9fbf8mintcream |
| Popover | #fcfefbwhite | #020401black |
| Popover foreground | #081505black | #f6f9f5whitesmoke |
| Primary | #151b13black | #151b13black |
| Primary foreground | #a8bda3darkgray | #a8bda3darkgray |
| Secondary | #13151bblack | #13151bblack |
| Secondary foreground | #a3a8bddarkgray | #a3a8bddarkgray |
| Muted | #ebecf0lavender | #0f1014black |
| Muted foreground | #454854darkslategray | #abaebadarkgray |
| Accent | #1b1315black | #1b1315black |
| Accent foreground | #bda3a8darkgray | #bda3a8darkgray |
| Destructive | #912508saddlebrown | #f34212orangered |
| Destructive foreground | #fcd8cfbisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #151b13black | #151b13black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.48:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 8.75:1 | AAA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 7.68:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 8.75:1 | AAA |
| Secondary button | 7.74:1 | AAA |
| Muted text | 8.56:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 3.75:1 | AA Large |
Paste this into your globals.css to use Cord in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.005 138.892);
--foreground: oklch(0.177 0.037 138.124);
--muted: oklch(0.943 0.005 273.801);
--muted-foreground: oklch(0.404 0.021 273.225);
--popover: oklch(0.994 0.005 138.892);
--popover-foreground: oklch(0.177 0.037 138.124);
--card: oklch(0.989 0.01 138.894);
--card-foreground: oklch(0.161 0.032 137.575);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.212 0.018 138.936);
--primary-foreground: oklch(0.776 0.044 138.917);
--secondary: oklch(0.196 0.013 273.033);
--secondary-foreground: oklch(0.735 0.031 273.343);
--accent: oklch(0.198 0.013 3.859);
--accent-foreground: oklch(0.739 0.032 3.25);
--destructive: oklch(0.437 0.148 34.711);
--destructive-foreground: oklch(0.911 0.043 35.945);
--ring: oklch(0.212 0.018 138.936);
--chart-1: oklch(0.212 0.018 138.936);
--chart-2: oklch(0.196 0.013 273.033);
--chart-3: oklch(0.198 0.013 3.859);
--chart-4: oklch(0.226 0.016 272.927);
--chart-5: oklch(0.214 0.021 138.948);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.015 137.415);
--foreground: oklch(0.98 0.007 138.893);
--muted: oklch(0.176 0.008 273.278);
--muted-foreground: oklch(0.752 0.017 273.59);
--popover: oklch(0.098 0.015 137.415);
--popover-foreground: oklch(0.98 0.007 138.893);
--card: oklch(0.123 0.019 137.415);
--card-foreground: oklch(0.987 0.004 138.892);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.212 0.018 138.936);
--primary-foreground: oklch(0.776 0.044 138.917);
--secondary: oklch(0.196 0.013 273.033);
--secondary-foreground: oklch(0.735 0.031 273.343);
--accent: oklch(0.198 0.013 3.859);
--accent-foreground: oklch(0.739 0.032 3.25);
--destructive: oklch(0.637 0.219 34.467);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.212 0.018 138.936);
--chart-1: oklch(0.212 0.018 138.936);
--chart-2: oklch(0.196 0.013 273.033);
--chart-3: oklch(0.198 0.013 3.859);
--chart-4: oklch(0.226 0.016 272.927);
--chart-5: oklch(0.214 0.021 138.948);
}