Recovery is a shadcn/ui theme built around a light yellow primary color (#f8ebce) with light green accents (#f0f8ce). The light mode uses a neutral background (#fefdfb). Dark mode keeps the light yellow primary (#f8ebce) on a neutral background (#040302).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #040302black |
| Foreground | #140f06black | #fbfaf9snow |
| Card | #fefdfbsnow | #040302black |
| Card foreground | #140f06black | #fbfaf9snow |
| Popover | #fefdfbsnow | #040302black |
| Popover foreground | #140f06black | #fbfaf9snow |
| Primary | #f8ebceblanchedalmond | #f8ebceblanchedalmond |
| Primary foreground | #281d06black | #281d06black |
| Secondary | #f8d6cebisque | #f8d6cebisque |
| Secondary foreground | #812712saddlebrown | #812712saddlebrown |
| Muted | #f0e3e0mistyrose | #1f120fblack |
| Muted foreground | #614c48darkolivegreen | #b7a39edarkgray |
| Accent | #f0f8celightgoldenrodyellow | #f0f8celightgoldenrodyellow |
| Accent foreground | #222806black | #222806black |
| Destructive | #ae2e0afirebrick | #f4663etomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f8ebceblanchedalmond | #f8ebceblanchedalmond |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.77:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 13.97:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 6.35:1 | AA |
| Accent | 13.84:1 | AAA |
| Destructive | 6.61:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 13.97:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 7.60:1 | AAA |
| Accent | 13.84:1 | AAA |
| Destructive | 6.79:1 | AA |
Paste this into your globals.css to use Recovery in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 86.019);
--foreground: oklch(0.172 0.02 86.876);
--muted: oklch(0.925 0.015 32.669);
--muted-foreground: oklch(0.437 0.029 32.834);
--popover: oklch(0.994 0.003 86.019);
--popover-foreground: oklch(0.172 0.02 86.876);
--card: oklch(0.994 0.003 86.019);
--card-foreground: oklch(0.172 0.02 86.876);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.942 0.04 86.095);
--primary-foreground: oklch(0.239 0.041 84.118);
--secondary: oklch(0.902 0.04 32.738);
--secondary-foreground: oklch(0.41 0.128 33.99);
--accent: oklch(0.963 0.055 115.887);
--accent-foreground: oklch(0.263 0.054 119.147);
--destructive: oklch(0.497 0.17 34.559);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.942 0.04 86.095);
--chart-1: oklch(0.942 0.04 86.095);
--chart-2: oklch(0.902 0.04 32.738);
--chart-3: oklch(0.963 0.055 115.887);
--chart-4: oklch(0.928 0.029 32.696);
--chart-5: oklch(0.943 0.042 86.094);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.008 90.176);
--foreground: oklch(0.986 0.001 86.011);
--muted: oklch(0.198 0.024 33.165);
--muted-foreground: oklch(0.732 0.025 32.706);
--popover: oklch(0.096 0.008 90.176);
--popover-foreground: oklch(0.986 0.001 86.011);
--card: oklch(0.096 0.008 90.176);
--card-foreground: oklch(0.986 0.001 86.011);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.942 0.04 86.095);
--primary-foreground: oklch(0.239 0.041 84.118);
--secondary: oklch(0.902 0.04 32.738);
--secondary-foreground: oklch(0.41 0.128 33.99);
--accent: oklch(0.963 0.055 115.887);
--accent-foreground: oklch(0.263 0.054 119.147);
--destructive: oklch(0.682 0.184 36.216);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.942 0.04 86.095);
--chart-1: oklch(0.942 0.04 86.095);
--chart-2: oklch(0.902 0.04 32.738);
--chart-3: oklch(0.963 0.055 115.887);
--chart-4: oklch(0.928 0.029 32.696);
--chart-5: oklch(0.943 0.042 86.094);
}