Cassava is a shadcn/ui theme built around a light green primary color (#cff7e0) with light teal accents (#cff7f4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#cff7e0) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020302black |
| Foreground | #041109black | #f7f8f7whitesmoke |
| Card | #ffffffwhite | #020302black |
| Card foreground | #041109black | #f7f8f7whitesmoke |
| Popover | #ffffffwhite | #020302black |
| Popover foreground | #041109black | #f7f8f7whitesmoke |
| Primary | #cff7e0gainsboro | #cff7e0gainsboro |
| Primary foreground | #072715black | #072715black |
| Secondary | #d2f7cfgainsboro | #d2f7cfgainsboro |
| Secondary foreground | #092707black | #092707black |
| Muted | #d6dcd5gainsboro | #232a23darkslategray |
| Muted foreground | #4e604ddarkolivegreen | #a0b29fdarkgray |
| Accent | #cff7f4lightcyan | #cff7f4lightcyan |
| Accent foreground | #072725black | #072725black |
| Destructive | #b43a0efirebrick | #ed4c12orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cff7e0gainsboro | #cff7e0gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.27:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 13.73:1 | AAA |
| Secondary button | 13.71:1 | AAA |
| Muted text | 4.85:1 | AA |
| Accent | 13.74:1 | AAA |
| Destructive | 5.90:1 | AA |
| Text on background | 19.37:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 13.73:1 | AAA |
| Secondary button | 13.71:1 | AAA |
| Muted text | 6.57:1 | AA |
| Accent | 13.74:1 | AAA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Cassava in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.16 0.025 159.788);
--muted: oklch(0.888 0.012 143.567);
--muted-foreground: oklch(0.469 0.037 143.207);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.16 0.025 159.788);
--card: oklch(1 0 180);
--card-foreground: oklch(0.16 0.025 159.788);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.941 0.05 160.446);
--primary-foreground: oklch(0.243 0.051 154.812);
--secondary: oklch(0.938 0.065 143.265);
--secondary-foreground: oklch(0.242 0.066 142.062);
--accent: oklch(0.946 0.041 191.528);
--accent-foreground: oklch(0.249 0.037 188.779);
--destructive: oklch(0.522 0.166 37.371);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.941 0.05 160.446);
--chart-1: oklch(0.941 0.05 160.446);
--chart-2: oklch(0.938 0.065 143.265);
--chart-3: oklch(0.946 0.041 191.528);
--chart-4: oklch(0.955 0.047 143.373);
--chart-5: oklch(0.942 0.053 160.387);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.009 161.795);
--foreground: oklch(0.978 0.002 161.754);
--muted: oklch(0.275 0.015 143.335);
--muted-foreground: oklch(0.744 0.033 143.396);
--popover: oklch(0.096 0.009 161.795);
--popover-foreground: oklch(0.978 0.002 161.754);
--card: oklch(0.096 0.009 161.795);
--card-foreground: oklch(0.978 0.002 161.754);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.941 0.05 160.446);
--primary-foreground: oklch(0.243 0.051 154.812);
--secondary: oklch(0.938 0.065 143.265);
--secondary-foreground: oklch(0.242 0.066 142.062);
--accent: oklch(0.946 0.041 191.528);
--accent-foreground: oklch(0.249 0.037 188.779);
--destructive: oklch(0.638 0.206 37.031);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.941 0.05 160.446);
--chart-1: oklch(0.941 0.05 160.446);
--chart-2: oklch(0.938 0.065 143.265);
--chart-3: oklch(0.946 0.041 191.528);
--chart-4: oklch(0.955 0.047 143.373);
--chart-5: oklch(0.942 0.053 160.387);
}