Vernacular is a shadcn/ui theme built around a vivid deep teal primary color (#0c554b) with muted light teal accents (#e5ebea). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the vivid deep teal primary (#0c554b) on a teal-tinted background (#060e0d).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #060e0dblack |
| Foreground | #051412black | #f9fbfbghostwhite |
| Card | #f8fcfbmintcream | #071211black |
| Card foreground | #04100fblack | #fcfdfdwhite |
| Popover | #fcfdfdwhite | #060e0dblack |
| Popover foreground | #051412black | #f9fbfbghostwhite |
| Primary | #0c554bdarkslategray | #0c554bdarkslategray |
| Primary foreground | #a1f2e7paleturquoise | #a1f2e7paleturquoise |
| Secondary | #e5ebealavender | #212b2adarkslategray |
| Secondary foreground | #445a57darkslategray | #b7c8c5silver |
| Muted | #dde4e3gainsboro | #1b2221black |
| Muted foreground | #3e4746darkslategray | #b8c1c0silver |
| Accent | #e5ebealavender | #212b2adarkslategray |
| Accent foreground | #445a57darkslategray | #b7c8c5silver |
| Destructive | #7a2b01saddlebrown | #e45101orangered |
| Destructive foreground | #ffcaaepeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0c554bdarkslategray | #0c554bdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.50:1 | AAA |
| Text on card | 18.67:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 6.12:1 | AA |
| Muted text | 7.41:1 | AAA |
| Accent | 6.12:1 | AA |
| Destructive | 6.59:1 | AA |
| Text on background | 18.73:1 | AAA |
| Text on card | 18.65:1 | AAA |
| Primary button | 6.74:1 | AA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 8.78:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 3.83:1 | AA Large |
Paste this into your globals.css to use Vernacular in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 187.7);
--foreground: oklch(0.178 0.022 184.645);
--muted: oklch(0.913 0.008 187.533);
--muted-foreground: oklch(0.389 0.012 186.959);
--popover: oklch(0.994 0.002 187.7);
--popover-foreground: oklch(0.178 0.022 184.645);
--card: oklch(0.987 0.004 187.651);
--card-foreground: oklch(0.161 0.02 185.388);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.406 0.069 181.141);
--primary-foreground: oklch(0.906 0.081 185.337);
--secondary: oklch(0.936 0.007 187.566);
--secondary-foreground: oklch(0.449 0.027 186.178);
--accent: oklch(0.936 0.007 187.566);
--accent-foreground: oklch(0.449 0.027 186.178);
--destructive: oklch(0.401 0.119 42.407);
--destructive-foreground: oklch(0.878 0.071 49.71);
--ring: oklch(0.406 0.069 181.141);
--chart-1: oklch(0.406 0.069 181.141);
--chart-2: oklch(0.936 0.007 187.566);
--chart-3: oklch(0.936 0.007 187.566);
--chart-4: oklch(0.957 0.005 187.63);
--chart-5: oklch(0.41 0.071 180.917);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.014 186.001);
--foreground: oklch(0.986 0.002 187.692);
--muted: oklch(0.245 0.011 186.64);
--muted-foreground: oklch(0.804 0.01 187.429);
--popover: oklch(0.156 0.014 186.001);
--popover-foreground: oklch(0.986 0.002 187.692);
--card: oklch(0.172 0.016 185.366);
--card-foreground: oklch(0.993 0.001 187.72);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.406 0.069 181.141);
--primary-foreground: oklch(0.906 0.081 185.337);
--secondary: oklch(0.28 0.014 186.476);
--secondary-foreground: oklch(0.818 0.018 187.191);
--accent: oklch(0.28 0.014 186.476);
--accent-foreground: oklch(0.818 0.018 187.191);
--destructive: oklch(0.628 0.196 40.268);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.406 0.069 181.141);
--chart-1: oklch(0.406 0.069 181.141);
--chart-2: oklch(0.28 0.014 186.476);
--chart-3: oklch(0.28 0.014 186.476);
--chart-4: oklch(0.313 0.016 186.419);
--chart-5: oklch(0.41 0.071 180.917);
}