Required is a shadcn/ui theme built around a deep teal primary color (#196367) with deep red accents (#671d19). The light mode uses a neutral background (#f7fdfd). Dark mode keeps the deep teal primary (#196367) on a neutral background (#010404).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdfdmintcream | #010404black |
| Foreground | #020d0dblack | #f8fbfbghostwhite |
| Card | #f2fcfcazure | #020808black |
| Card foreground | #010809black | #fcfdfdwhite |
| Popover | #f7fdfdmintcream | #010404black |
| Popover foreground | #020d0dblack | #f8fbfbghostwhite |
| Primary | #196367darkslategray | #196367darkslategray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #671d19maroon | #671d19maroon |
| Secondary foreground | #f0c4c1pink | #f0c4c1pink |
| Muted | #eae2e1gainsboro | #1e1615black |
| Muted foreground | #4b3f3fdarkslategray | #c0b5b4silver |
| Accent | #671d19maroon | #671d19maroon |
| Accent foreground | #f0c4c1pink | #f0c4c1pink |
| Destructive | #9b380dsaddlebrown | #d34c12chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #196367darkslategray | #196367darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 7.88:1 | AAA |
| Accent | 7.59:1 | AAA |
| Destructive | 7.09:1 | AAA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 8.92:1 | AAA |
| Accent | 7.59:1 | AAA |
| Destructive | 4.35:1 | AA Large |
Paste this into your globals.css to use Required in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.007 200.808);
--foreground: oklch(0.146 0.019 198.798);
--muted: oklch(0.918 0.009 21.014);
--muted-foreground: oklch(0.381 0.016 21.476);
--popover: oklch(0.989 0.007 200.808);
--popover-foreground: oklch(0.146 0.019 198.798);
--card: oklch(0.984 0.01 200.768);
--card-foreground: oklch(0.126 0.017 198.341);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.457 0.069 200.243);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.349 0.107 27.123);
--secondary-foreground: oklch(0.858 0.051 21.721);
--accent: oklch(0.349 0.107 27.123);
--accent-foreground: oklch(0.858 0.051 21.721);
--destructive: oklch(0.476 0.141 39.899);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.457 0.069 200.243);
--chart-1: oklch(0.457 0.069 200.243);
--chart-2: oklch(0.349 0.107 27.123);
--chart-3: oklch(0.349 0.107 27.123);
--chart-4: oklch(0.376 0.117 27.255);
--chart-5: oklch(0.462 0.071 200.305);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.01 198.818);
--foreground: oklch(0.987 0.003 200.851);
--muted: oklch(0.209 0.014 21.806);
--muted-foreground: oklch(0.781 0.013 21.112);
--popover: oklch(0.098 0.01 198.818);
--popover-foreground: oklch(0.987 0.003 200.851);
--card: oklch(0.124 0.013 198.818);
--card-foreground: oklch(0.993 0.002 200.87);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.457 0.069 200.243);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.349 0.107 27.123);
--secondary-foreground: oklch(0.858 0.051 21.721);
--accent: oklch(0.349 0.107 27.123);
--accent-foreground: oklch(0.858 0.051 21.721);
--destructive: oklch(0.595 0.181 39.434);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.457 0.069 200.243);
--chart-1: oklch(0.457 0.069 200.243);
--chart-2: oklch(0.349 0.107 27.123);
--chart-3: oklch(0.349 0.107 27.123);
--chart-4: oklch(0.376 0.117 27.255);
--chart-5: oklch(0.462 0.071 200.305);
}