Recapitulation is a shadcn/ui theme built around a light violet primary color (#c1a8f0) with light purple accents (#e5a8f0). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the light violet primary (#c1a8f0) on a violet-tinted background (#07040b).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #07040bblack |
| Foreground | #040208black | #ffffffwhite |
| Card | #f9f8fcghostwhite | #07040bblack |
| Card foreground | #040208black | #ffffffwhite |
| Popover | #f9f8fcghostwhite | #07040bblack |
| Popover foreground | #040208black | #ffffffwhite |
| Primary | #c1a8f0plum | #c1a8f0plum |
| Primary foreground | #280f57midnightblue | #280f57midnightblue |
| Secondary | #a8b3f0lightsteelblue | #a8b3f0lightsteelblue |
| Secondary foreground | #0f1a57midnightblue | #0f1a57midnightblue |
| Muted | #d6d8e6gainsboro | #191c29black |
| Muted foreground | #5c5e66dimgray | #999ba3darkgray |
| Accent | #e5a8f0plum | #e5a8f0plum |
| Accent foreground | #4c0f57indigo | #4c0f57indigo |
| Destructive | #c20e05firebrick | #f41206red |
| Destructive foreground | #fffafasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c1a8f0plum | #c1a8f0plum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 4.57:1 | AA |
| Accent | 7.39:1 | AAA |
| Destructive | 6.04:1 | AA |
| Text on background | 20.33:1 | AAA |
| Text on card | 20.33:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 7.92:1 | AAA |
| Muted text | 6.12:1 | AA |
| Accent | 7.39:1 | AAA |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Recapitulation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 302.113);
--foreground: oklch(0.099 0.023 302.949);
--muted: oklch(0.885 0.019 278.005);
--muted-foreground: oklch(0.482 0.013 277.906);
--popover: oklch(0.98 0.006 302.113);
--popover-foreground: oklch(0.099 0.023 302.949);
--card: oklch(0.98 0.006 302.113);
--card-foreground: oklch(0.099 0.023 302.949);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.779 0.105 300.053);
--primary-foreground: oklch(0.26 0.119 291.73);
--secondary: oklch(0.779 0.089 276.401);
--secondary-foreground: oklch(0.256 0.111 268.903);
--accent: oklch(0.812 0.119 321.347);
--accent-foreground: oklch(0.312 0.129 321.059);
--destructive: oklch(0.515 0.206 29.576);
--destructive-foreground: oklch(0.989 0.005 20.952);
--ring: oklch(0.779 0.105 300.053);
--chart-1: oklch(0.779 0.105 300.053);
--chart-2: oklch(0.779 0.089 276.401);
--chart-3: oklch(0.812 0.119 321.347);
--chart-4: oklch(0.813 0.075 276.814);
--chart-5: oklch(0.776 0.109 299.948);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.018 302.64);
--foreground: oklch(1 0 180);
--muted: oklch(0.229 0.026 276.364);
--muted-foreground: oklch(0.69 0.012 278.06);
--popover: oklch(0.119 0.018 302.64);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.119 0.018 302.64);
--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.779 0.105 300.053);
--primary-foreground: oklch(0.26 0.119 291.73);
--secondary: oklch(0.779 0.089 276.401);
--secondary-foreground: oklch(0.256 0.111 268.903);
--accent: oklch(0.812 0.119 321.347);
--accent-foreground: oklch(0.312 0.129 321.059);
--destructive: oklch(0.611 0.245 29.533);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.779 0.105 300.053);
--chart-1: oklch(0.779 0.105 300.053);
--chart-2: oklch(0.779 0.089 276.401);
--chart-3: oklch(0.812 0.119 321.347);
--chart-4: oklch(0.813 0.075 276.814);
--chart-5: oklch(0.776 0.109 299.948);
}