Capitulation is a shadcn/ui theme built around a deep teal primary color (#11362f) with deep yellow accents (#362f11). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep teal primary (#11362f) on a teal-tinted background (#030c0a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030c0ablack |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #fcfcfcsnow | #04100eblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #030c0ablack |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #11362fdarkslategray | #11362fdarkslategray |
| Primary foreground | #4dc7b0mediumaquamarine | #4dc7b0mediumaquamarine |
| Secondary | #2f1136midnightblue | #2f1136midnightblue |
| Secondary foreground | #d39adfplum | #d39adfplum |
| Muted | #e9dfeclavender | #1d1320black |
| Muted foreground | #443946darkslategray | #c3b9c6silver |
| Accent | #362f11darkslategray | #362f11darkslategray |
| Accent foreground | #c7b04ddarkkhaki | #c7b04ddarkkhaki |
| Destructive | #9d3b10saddlebrown | #ec7846coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #11362fdarkslategray | #11362fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.32:1 | AA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 8.48:1 | AAA |
| Accent | 6.16:1 | AA |
| Destructive | 6.86:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 6.32:1 | AA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 9.46:1 | AAA |
| Accent | 6.16:1 | AA |
| Destructive | 7.32:1 | AAA |
Paste this into your globals.css to use Capitulation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.916 0.02 320.011);
--muted-foreground: oklch(0.362 0.026 320.053);
--popover: oklch(1 0 180);
--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.305 0.044 179.147);
--primary-foreground: oklch(0.754 0.113 178.781);
--secondary: oklch(0.244 0.076 319.943);
--secondary-foreground: oklch(0.764 0.114 320.096);
--accent: oklch(0.307 0.047 96.811);
--accent-foreground: oklch(0.758 0.122 96.697);
--destructive: oklch(0.483 0.141 40.257);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.305 0.044 179.147);
--chart-1: oklch(0.305 0.044 179.147);
--chart-2: oklch(0.244 0.076 319.943);
--chart-3: oklch(0.307 0.047 96.811);
--chart-4: oklch(0.274 0.089 319.903);
--chart-5: oklch(0.308 0.046 178.872);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.016 183.426);
--foreground: oklch(0.994 0.002 184.26);
--muted: oklch(0.207 0.028 320.091);
--muted-foreground: oklch(0.798 0.021 320.015);
--popover: oklch(0.143 0.016 183.426);
--popover-foreground: oklch(0.994 0.002 184.26);
--card: oklch(0.16 0.019 181.911);
--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.305 0.044 179.147);
--primary-foreground: oklch(0.754 0.113 178.781);
--secondary: oklch(0.244 0.076 319.943);
--secondary-foreground: oklch(0.764 0.114 320.096);
--accent: oklch(0.307 0.047 96.811);
--accent-foreground: oklch(0.758 0.122 96.697);
--destructive: oklch(0.697 0.157 42.723);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.305 0.044 179.147);
--chart-1: oklch(0.305 0.044 179.147);
--chart-2: oklch(0.244 0.076 319.943);
--chart-3: oklch(0.307 0.047 96.811);
--chart-4: oklch(0.274 0.089 319.903);
--chart-5: oklch(0.308 0.046 178.872);
}