Cassava is a shadcn/ui theme built around a vivid cyan primary color (#75d9f5) with muted light cyan accents (#c2cacc). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the vivid cyan primary (#75d9f5) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #000000black |
| Foreground | #041215black | #f8fbfbghostwhite |
| Card | #fbfdfewhite | #000000black |
| Card foreground | #041215black | #f8fbfbghostwhite |
| Popover | #fbfdfewhite | #000000black |
| Popover foreground | #041215black | #f8fbfbghostwhite |
| Primary | #75d9f5lightskyblue | #75d9f5lightskyblue |
| Primary foreground | #042a34darkslategray | #042a34darkslategray |
| Secondary | #d5d7d7lightgrey | #262627darkslategray |
| Secondary foreground | #3c3e3edarkslategray | #bfc0c0silver |
| Muted | #e3ebeelavender | #111a1cblack |
| Muted foreground | #606162dimgray | #9d9f9fdarkgray |
| Accent | #c2caccsilver | #374143darkslategray |
| Accent foreground | #2a3032darkslategray | #d2d9dalightgrey |
| Destructive | #7c0503maroon | #ea0a06red |
| Destructive foreground | #fdb6b4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #75d9f5lightskyblue | #75d9f5lightskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.69:1 | AAA |
| Text on card | 18.69:1 | AAA |
| Primary button | 9.38:1 | AAA |
| Secondary button | 7.43:1 | AAA |
| Muted text | 5.13:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.64:1 | AA |
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 9.38:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 6.63:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 4.63:1 | AA |
Paste this into your globals.css to use Cassava in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 216.022);
--foreground: oklch(0.169 0.021 216.322);
--muted: oklch(0.935 0.01 216.058);
--muted-foreground: oklch(0.493 0.002 216.029);
--popover: oklch(0.993 0.002 216.022);
--popover-foreground: oklch(0.169 0.021 216.322);
--card: oklch(0.993 0.002 216.022);
--card-foreground: oklch(0.169 0.021 216.322);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.835 0.101 218.014);
--primary-foreground: oklch(0.264 0.045 220.824);
--secondary: oklch(0.877 0.001 216.019);
--secondary-foreground: oklch(0.362 0.003 216.044);
--accent: oklch(0.833 0.009 216.061);
--accent-foreground: oklch(0.305 0.01 216.195);
--destructive: oklch(0.372 0.149 29.157);
--destructive-foreground: oklch(0.841 0.084 20.071);
--ring: oklch(0.835 0.101 218.014);
--chart-1: oklch(0.835 0.101 218.014);
--chart-2: oklch(0.877 0.001 216.019);
--chart-3: oklch(0.833 0.009 216.061);
--chart-4: oklch(0.901 0.001 216.017);
--chart-5: oklch(0.838 0.104 218.135);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.003 216.023);
--muted: oklch(0.211 0.014 216.568);
--muted-foreground: oklch(0.7 0.002 216.023);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.003 216.023);
--card: oklch(0 0 0);
--card-foreground: oklch(0.986 0.003 216.023);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.835 0.101 218.014);
--primary-foreground: oklch(0.264 0.045 220.824);
--secondary: oklch(0.27 0.001 216.026);
--secondary-foreground: oklch(0.806 0.001 216.018);
--accent: oklch(0.366 0.013 216.242);
--accent-foreground: oklch(0.879 0.007 216.048);
--destructive: oklch(0.59 0.239 29.195);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.835 0.101 218.014);
--chart-1: oklch(0.835 0.101 218.014);
--chart-2: oklch(0.27 0.001 216.026);
--chart-3: oklch(0.366 0.013 216.242);
--chart-4: oklch(0.301 0.001 216.027);
--chart-5: oklch(0.838 0.104 218.135);
}