Capital is a shadcn/ui theme built around a muted light green primary color (#eaf0eb) with muted light teal accents (#eaf0ee). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the muted light green primary (#eaf0eb) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf8mintcream | #010402black |
| Foreground | #030c05black | #ffffffwhite |
| Card | #f7fdf8mintcream | #010402black |
| Card foreground | #030c05black | #ffffffwhite |
| Popover | #f7fdf8mintcream | #010402black |
| Popover foreground | #030c05black | #ffffffwhite |
| Primary | #eaf0ebwhitesmoke | #eaf0ebwhitesmoke |
| Primary foreground | #1c261eblack | #1c261eblack |
| Secondary | #ecf0ealinen | #ecf0ealinen |
| Secondary foreground | #1f261cblack | #1f261cblack |
| Muted | #eaf4e6beige | #0f190bblack |
| Muted foreground | #54674cdarkolivegreen | #a0b398darkseagreen |
| Accent | #eaf0eewhitesmoke | #eaf0eewhitesmoke |
| Accent foreground | #1c2623black | #1c2623black |
| Destructive | #db0e0ared | #e00e0bred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eaf0ebwhitesmoke | #eaf0ebwhitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 13.51:1 | AAA |
| Secondary button | 13.47:1 | AAA |
| Muted text | 5.44:1 | AA |
| Accent | 13.48:1 | AAA |
| Destructive | 5.14:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 13.51:1 | AAA |
| Secondary button | 13.47:1 | AAA |
| Muted text | 8.07:1 | AAA |
| Accent | 13.48:1 | AAA |
| Destructive | 4.95:1 | AA |
Paste this into your globals.css to use Capital in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.01 151.86);
--foreground: oklch(0.141 0.025 150.932);
--muted: oklch(0.957 0.022 136.105);
--muted-foreground: oklch(0.489 0.047 136.414);
--popover: oklch(0.988 0.01 151.86);
--popover-foreground: oklch(0.141 0.025 150.932);
--card: oklch(0.988 0.01 151.86);
--card-foreground: oklch(0.141 0.025 150.932);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.95 0.009 151.87);
--primary-foreground: oklch(0.257 0.022 150.658);
--secondary: oklch(0.951 0.009 136.055);
--secondary-foreground: oklch(0.259 0.022 136.359);
--accent: oklch(0.95 0.006 176.459);
--accent-foreground: oklch(0.259 0.016 174.717);
--destructive: oklch(0.564 0.226 29.048);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.95 0.009 151.87);
--chart-1: oklch(0.95 0.009 151.87);
--chart-2: oklch(0.951 0.009 136.055);
--chart-3: oklch(0.95 0.006 176.459);
--chart-4: oklch(0.972 0.005 136.04);
--chart-5: oklch(0.95 0.01 151.845);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.017 151.114);
--foreground: oklch(1 0 180);
--muted: oklch(0.199 0.031 136.743);
--muted-foreground: oklch(0.745 0.043 136.242);
--popover: oklch(0.097 0.017 151.114);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.097 0.017 151.114);
--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.95 0.009 151.87);
--primary-foreground: oklch(0.257 0.022 150.658);
--secondary: oklch(0.951 0.009 136.055);
--secondary-foreground: oklch(0.259 0.022 136.359);
--accent: oklch(0.95 0.006 176.459);
--accent-foreground: oklch(0.259 0.016 174.717);
--destructive: oklch(0.573 0.23 29.055);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.95 0.009 151.87);
--chart-1: oklch(0.95 0.009 151.87);
--chart-2: oklch(0.951 0.009 136.055);
--chart-3: oklch(0.95 0.006 176.459);
--chart-4: oklch(0.972 0.005 136.04);
--chart-5: oklch(0.95 0.01 151.845);
}