Capital is a shadcn/ui theme built around a deep blue primary color (#152061) with deep green accents (#206115). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#152061) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010204black |
| Foreground | #010104black | #f5f6fawhitesmoke |
| Card | #fcfcfcsnow | #030407black |
| Card foreground | #000000black | #f8f9fcghostwhite |
| Popover | #fcfcfcsnow | #030407black |
| Popover foreground | #000000black | #f8f9fcghostwhite |
| Primary | #152061midnightblue | #152061midnightblue |
| Primary foreground | #b7c0f0lightsteelblue | #b7c0f0lightsteelblue |
| Secondary | #611520maroon | #611520maroon |
| Secondary foreground | #f0b7c0lightpink | #f0b7c0lightpink |
| Muted | #f4ebeclinen | #140b0cblack |
| Muted foreground | #625053dimgray | #af9da0darkgray |
| Accent | #206115darkgreen | #206115darkgreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #820503maroon | #fa1d19red |
| Destructive foreground | #febab9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #152061midnightblue | #152061midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.84:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 6.43:1 | AA |
| Accent | 7.57:1 | AAA |
| Destructive | 6.56:1 | AA |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 8.38:1 | AAA |
| Secondary button | 7.50:1 | AAA |
| Muted text | 7.54:1 | AAA |
| Accent | 7.57:1 | AAA |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Capital in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.075 0.018 268.511);
--muted: oklch(0.948 0.01 6.872);
--muted-foreground: oklch(0.451 0.024 7.928);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.282 0.115 269.573);
--primary-foreground: oklch(0.817 0.068 276.966);
--secondary: oklch(0.329 0.108 17.335);
--secondary-foreground: oklch(0.834 0.066 8.569);
--accent: oklch(0.434 0.126 140.97);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.383 0.154 29.234);
--destructive-foreground: oklch(0.851 0.078 19.933);
--ring: oklch(0.282 0.115 269.573);
--chart-1: oklch(0.282 0.115 269.573);
--chart-2: oklch(0.329 0.108 17.335);
--chart-3: oklch(0.434 0.126 140.97);
--chart-4: oklch(0.358 0.119 17.641);
--chart-5: oklch(0.28 0.12 269.069);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.083 0.011 273.638);
--foreground: oklch(0.973 0.006 278.235);
--muted: oklch(0.162 0.017 9.217);
--muted-foreground: oklch(0.712 0.021 7.343);
--popover: oklch(0.104 0.013 273.638);
--popover-foreground: oklch(0.982 0.004 278.263);
--card: oklch(0.104 0.013 273.638);
--card-foreground: oklch(0.982 0.004 278.263);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.282 0.115 269.573);
--primary-foreground: oklch(0.817 0.068 276.966);
--secondary: oklch(0.329 0.108 17.335);
--secondary-foreground: oklch(0.834 0.066 8.569);
--accent: oklch(0.434 0.126 140.97);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.627 0.246 28.699);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.282 0.115 269.573);
--chart-1: oklch(0.282 0.115 269.573);
--chart-2: oklch(0.329 0.108 17.335);
--chart-3: oklch(0.434 0.126 140.97);
--chart-4: oklch(0.358 0.119 17.641);
--chart-5: oklch(0.28 0.12 269.069);
}