Cassava is a shadcn/ui theme built around a muted teal primary color (#82aba4) with muted yellow accents (#aba482). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the muted teal primary (#82aba4) on a teal-tinted background (#04100e).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfbmintcream | #04100eblack |
| Foreground | #050f0dblack | #fcfdfdwhite |
| Card | #f8fcfbmintcream | #04100eblack |
| Card foreground | #050f0dblack | #fcfdfdwhite |
| Popover | #f8fcfbmintcream | #04100eblack |
| Popover foreground | #050f0dblack | #fcfdfdwhite |
| Primary | #82aba4darkseagreen | #82aba4darkseagreen |
| Primary foreground | #000000black | #000000black |
| Secondary | #a482abrosybrown | #a482abrosybrown |
| Secondary foreground | #000000black | #000000black |
| Muted | #e7dceagainsboro | #201523black |
| Muted foreground | #5b495fdimgray | #b2a0b6darkgray |
| Accent | #aba482rosybrown | #aba482rosybrown |
| Accent foreground | #000000black | #000000black |
| Destructive | #b51908firebrick | #f74a36tomato |
| Destructive foreground | #fef2f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #82aba4darkseagreen | #82aba4darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.76:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 8.32:1 | AAA |
| Secondary button | 6.33:1 | AA |
| Muted text | 6.17:1 | AA |
| Accent | 8.34:1 | AAA |
| Destructive | 6.16:1 | AA |
| Text on background | 18.97:1 | AAA |
| Text on card | 18.97:1 | AAA |
| Primary button | 8.32:1 | AAA |
| Secondary button | 6.33:1 | AA |
| Muted text | 7.19:1 | AAA |
| Accent | 8.34:1 | AAA |
| Destructive | 3.52:1 | AA Large |
Paste this into your globals.css to use Cassava in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 184.204);
--foreground: oklch(0.159 0.017 182.13);
--muted: oklch(0.908 0.022 320.014);
--muted-foreground: oklch(0.433 0.042 320.072);
--popover: oklch(0.987 0.004 184.204);
--popover-foreground: oklch(0.159 0.017 182.13);
--card: oklch(0.987 0.004 184.204);
--card-foreground: oklch(0.159 0.017 182.13);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.71 0.047 182.435);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.652 0.072 320.08);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.715 0.048 96.862);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.495 0.19 30.461);
--destructive-foreground: oklch(0.97 0.014 25.111);
--ring: oklch(0.71 0.047 182.435);
--chart-1: oklch(0.71 0.047 182.435);
--chart-2: oklch(0.652 0.072 320.08);
--chart-3: oklch(0.715 0.048 96.862);
--chart-4: oklch(0.678 0.066 320.072);
--chart-5: oklch(0.716 0.053 182.168);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.16 0.019 181.911);
--foreground: oklch(0.993 0.001 184.288);
--muted: oklch(0.217 0.032 320.095);
--muted-foreground: oklch(0.728 0.037 320.037);
--popover: oklch(0.16 0.019 181.911);
--popover-foreground: oklch(0.993 0.001 184.288);
--card: oklch(0.16 0.019 181.911);
--card-foreground: oklch(0.993 0.001 184.288);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.71 0.047 182.435);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.652 0.072 320.08);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.715 0.048 96.862);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.653 0.213 30.074);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.71 0.047 182.435);
--chart-1: oklch(0.71 0.047 182.435);
--chart-2: oklch(0.652 0.072 320.08);
--chart-3: oklch(0.715 0.048 96.862);
--chart-4: oklch(0.678 0.066 320.072);
--chart-5: oklch(0.716 0.053 182.168);
}