Capitalism is a shadcn/ui theme built around a vivid deep green primary color (#151d02) with vivid deep purple accents (#1d0215). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the vivid deep green primary (#151d02) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #000000black |
| Foreground | #030501black | #f8f8f6whitesmoke |
| Card | #f9fcf3floralwhite | #030303black |
| Card foreground | #000000black | #fafbf9snow |
| Popover | #f9fcf3floralwhite | #030303black |
| Popover foreground | #000000black | #fafbf9snow |
| Primary | #151d02black | #151d02black |
| Primary foreground | #9fde0dyellowgreen | #9fde0dyellowgreen |
| Secondary | #02151dblack | #02151dblack |
| Secondary foreground | #0d9fdedodgerblue | #0d9fdedodgerblue |
| Muted | #e8ebedlavender | #121517black |
| Muted foreground | #4d5e66dimgray | #99abb2darkgray |
| Accent | #1d0215black | #1d0215black |
| Accent foreground | #f55bc7hotpink | #f55bc7hotpink |
| Destructive | #bb4d11chocolate | #ea631achocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #151d02black | #151d02black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.94:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 10.71:1 | AAA |
| Secondary button | 6.24:1 | AA |
| Muted text | 5.66:1 | AA |
| Accent | 6.73:1 | AA |
| Destructive | 5.04:1 | AA |
| Text on background | 19.74:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 10.71:1 | AAA |
| Secondary button | 6.24:1 | AA |
| Muted text | 7.68:1 | AAA |
| Accent | 6.73:1 | AA |
| Destructive | 6.28:1 | AA |
Paste this into your globals.css to use Capitalism in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.008 120.167);
--foreground: oklch(0.106 0.021 119.862);
--muted: oklch(0.94 0.004 225.028);
--muted-foreground: oklch(0.471 0.025 225.725);
--popover: oklch(0.986 0.011 120.232);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.986 0.011 120.232);
--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.215 0.049 123.799);
--primary-foreground: oklch(0.826 0.212 127.496);
--secondary: oklch(0.182 0.032 226.801);
--secondary-foreground: oklch(0.665 0.141 236.02);
--accent: oklch(0.16 0.061 341.081);
--accent-foreground: oklch(0.707 0.219 341.472);
--destructive: oklch(0.557 0.156 43.305);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.215 0.049 123.799);
--chart-1: oklch(0.215 0.049 123.799);
--chart-2: oklch(0.182 0.032 226.801);
--chart-3: oklch(0.16 0.061 341.081);
--chart-4: oklch(0.225 0.042 230.012);
--chart-5: oklch(0.216 0.051 123.87);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.003 120.088);
--muted: oklch(0.194 0.006 225.343);
--muted-foreground: oklch(0.729 0.022 225.37);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.986 0.002 120.071);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.002 120.071);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.215 0.049 123.799);
--primary-foreground: oklch(0.826 0.212 127.496);
--secondary: oklch(0.182 0.032 226.801);
--secondary-foreground: oklch(0.665 0.141 236.02);
--accent: oklch(0.16 0.061 341.081);
--accent-foreground: oklch(0.707 0.219 341.472);
--destructive: oklch(0.66 0.184 43.499);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.215 0.049 123.799);
--chart-1: oklch(0.215 0.049 123.799);
--chart-2: oklch(0.182 0.032 226.801);
--chart-3: oklch(0.16 0.061 341.081);
--chart-4: oklch(0.225 0.042 230.012);
--chart-5: oklch(0.216 0.051 123.87);
}