Carter is a shadcn/ui theme built around a vivid deep teal primary color (#085443) with vivid deep yellow accents (#544308). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the vivid deep teal primary (#085443) on a teal-tinted background (#030c0a).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfbmintcream | #030c0ablack |
| Foreground | #040b0ablack | #fcfdfdwhite |
| Card | #f5faf9mintcream | #04100eblack |
| Card foreground | #030807black | #ffffffwhite |
| Popover | #f5faf9mintcream | #04100eblack |
| Popover foreground | #030807black | #ffffffwhite |
| Primary | #085443darkslategray | #085443darkslategray |
| Primary foreground | #99f5e1paleturquoise | #99f5e1paleturquoise |
| Secondary | #430854indigo | #430854indigo |
| Secondary foreground | #e199f5plum | #e199f5plum |
| Muted | #e2dde3gainsboro | #201c22black |
| Muted foreground | #545454dimgray | #abababdarkgray |
| Accent | #544308darkolivegreen | #544308darkolivegreen |
| Accent foreground | #f5e199khaki | #f5e199khaki |
| Destructive | #6a230bmaroon | #ec7046tomato |
| Destructive foreground | #f7c2b1lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #085443darkslategray | #085443darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.16:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 5.67:1 | AA |
| Accent | 7.37:1 | AAA |
| Destructive | 7.15:1 | AAA |
| Text on background | 19.40:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 7.33:1 | AAA |
| Accent | 7.37:1 | AAA |
| Destructive | 6.94:1 | AA |
Paste this into your globals.css to use Carter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 181.96);
--foreground: oklch(0.142 0.015 181.615);
--muted: oklch(0.904 0.01 318.887);
--muted-foreground: oklch(0.446 0 180);
--popover: oklch(0.981 0.006 181.905);
--popover-foreground: oklch(0.124 0.013 181.995);
--card: oklch(0.981 0.006 181.905);
--card-foreground: oklch(0.124 0.013 181.995);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.398 0.073 173.025);
--primary-foreground: oklch(0.907 0.093 178.755);
--secondary: oklch(0.289 0.129 317.244);
--secondary-foreground: oklch(0.785 0.147 318.764);
--accent: oklch(0.39 0.075 91.912);
--accent-foreground: oklch(0.91 0.093 94.491);
--destructive: oklch(0.362 0.107 37.578);
--destructive-foreground: oklch(0.857 0.065 39.237);
--ring: oklch(0.398 0.073 173.025);
--chart-1: oklch(0.398 0.073 173.025);
--chart-2: oklch(0.289 0.129 317.244);
--chart-3: oklch(0.39 0.075 91.912);
--chart-4: oklch(0.32 0.144 317.099);
--chart-5: oklch(0.402 0.075 172.738);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.017 181.279);
--foreground: oklch(0.994 0.002 182.011);
--muted: oklch(0.233 0.014 318.869);
--muted-foreground: oklch(0.741 0 171.254);
--popover: oklch(0.161 0.02 179.527);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.161 0.02 179.527);
--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.398 0.073 173.025);
--primary-foreground: oklch(0.907 0.093 178.755);
--secondary: oklch(0.289 0.129 317.244);
--secondary-foreground: oklch(0.785 0.147 318.764);
--accent: oklch(0.39 0.075 91.912);
--accent-foreground: oklch(0.91 0.093 94.491);
--destructive: oklch(0.684 0.164 38.745);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.398 0.073 173.025);
--chart-1: oklch(0.398 0.073 173.025);
--chart-2: oklch(0.289 0.129 317.244);
--chart-3: oklch(0.39 0.075 91.912);
--chart-4: oklch(0.32 0.144 317.099);
--chart-5: oklch(0.402 0.075 172.738);
}