Capital is a shadcn/ui theme built around a vivid teal primary color (#0dfda9) with muted teal accents (#b6c9c2). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid teal primary (#0dfda9) on a neutral background (#030706).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #030706black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f6fdfbmintcream | #050a08black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfefdwhite | #030706black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #0dfda9mediumspringgreen | #0dfda9mediumspringgreen |
| Primary foreground | #013d28darkgreen | #013d28darkgreen |
| Secondary | #d1d6d4lightgrey | #17211dblack |
| Secondary foreground | #373e3cdarkslategray | #a8c2b9silver |
| Muted | #eaf6f1honeydew | #091511black |
| Muted foreground | #515c58dimgray | #a3aeaadarkgray |
| Accent | #b6c9c2silver | #28433adarkslategray |
| Accent foreground | #212c28darkslategray | #c2dbd2lightgrey |
| Destructive | #dd2003red | #ec2304orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0dfda9mediumspringgreen | #0dfda9mediumspringgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.70:1 | AAA |
| Text on card | 20.42:1 | AAA |
| Primary button | 9.16:1 | AAA |
| Secondary button | 7.46:1 | AAA |
| Muted text | 6.25:1 | AA |
| Accent | 8.31:1 | AAA |
| Destructive | 4.89:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 9.16:1 | AAA |
| Secondary button | 8.72:1 | AAA |
| Muted text | 8.14:1 | AAA |
| Accent | 7.35:1 | AAA |
| Destructive | 4.36:1 | AA Large |
Paste this into your globals.css to use Capital in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 173.457);
--foreground: oklch(0 0 0);
--muted: oklch(0.962 0.013 173.164);
--muted-foreground: oklch(0.464 0.014 172.652);
--popover: oklch(0.995 0.004 173.457);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.989 0.008 173.338);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.876 0.197 160.085);
--primary-foreground: oklch(0.317 0.068 162.68);
--secondary: oklch(0.872 0.006 173.367);
--secondary-foreground: oklch(0.357 0.01 172.709);
--accent: oklch(0.819 0.023 172.742);
--accent-foreground: oklch(0.281 0.017 171.624);
--destructive: oklch(0.574 0.222 31.044);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.876 0.197 160.085);
--chart-1: oklch(0.876 0.197 160.085);
--chart-2: oklch(0.872 0.006 173.367);
--chart-3: oklch(0.819 0.023 172.742);
--chart-4: oklch(0.895 0.005 173.409);
--chart-5: oklch(0.886 0.2 159.744);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.01 173.75);
--foreground: oklch(1 0 180);
--muted: oklch(0.184 0.019 170.08);
--muted-foreground: oklch(0.74 0.013 173.063);
--popover: oklch(0.121 0.01 173.75);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.012 173.725);
--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.876 0.197 160.085);
--primary-foreground: oklch(0.317 0.068 162.68);
--secondary: oklch(0.236 0.015 171.561);
--secondary-foreground: oklch(0.791 0.03 172.425);
--accent: oklch(0.358 0.037 170.074);
--accent-foreground: oklch(0.87 0.028 172.594);
--destructive: oklch(0.603 0.233 30.987);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.876 0.197 160.085);
--chart-1: oklch(0.876 0.197 160.085);
--chart-2: oklch(0.236 0.015 171.561);
--chart-3: oklch(0.358 0.037 170.074);
--chart-4: oklch(0.271 0.018 171.407);
--chart-5: oklch(0.886 0.2 159.744);
}