Mimosa is a shadcn/ui theme built around a green primary color (#30d955) with neutral gray accents (#d2d5d3). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#30d955) on a neutral background (#040704).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040704black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #ffffffwhite | #040704black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #ffffffwhite | #040704black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #30d955limegreen | #30d955limegreen |
| Primary foreground | #093413darkgreen | #093413darkgreen |
| Secondary | #d2d5d3lightgrey | #29382cdarkslategray |
| Secondary foreground | #383d39darkslategray | #c1d1c5silver |
| Muted | #e2f3e6honeydew | #0c1d10black |
| Muted foreground | #404040darkslategray | #bfbfbfsilver |
| Accent | #d2d5d3lightgrey | #29382cdarkslategray |
| Accent foreground | #383d39darkslategray | #c1d1c5silver |
| Destructive | #6e0802maroon | #e61005red |
| Destructive foreground | #fda9a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #30d955limegreen | #30d955limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 8.97:1 | AAA |
| Accent | 7.51:1 | AAA |
| Destructive | 6.71:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.39:1 | AAA |
| Secondary button | 7.79:1 | AAA |
| Muted text | 9.55:1 | AAA |
| Accent | 7.79:1 | AAA |
| Destructive | 4.73:1 | AA |
Paste this into your globals.css to use Mimosa in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.948 0.024 152.211);
--muted-foreground: oklch(0.371 0 168.69);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.776 0.22 146.156);
--primary-foreground: oklch(0.286 0.074 147.112);
--secondary: oklch(0.871 0.005 152.522);
--secondary-foreground: oklch(0.354 0.009 152.218);
--accent: oklch(0.871 0.005 152.522);
--accent-foreground: oklch(0.354 0.009 152.218);
--destructive: oklch(0.343 0.134 29.947);
--destructive-foreground: oklch(0.817 0.1 22.791);
--ring: oklch(0.776 0.22 146.156);
--chart-1: oklch(0.776 0.22 146.156);
--chart-2: oklch(0.871 0.005 152.522);
--chart-3: oklch(0.871 0.005 152.522);
--chart-4: oklch(0.894 0.004 152.541);
--chart-5: oklch(0.785 0.227 145.941);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.011 152.186);
--foreground: oklch(0.993 0.002 152.587);
--muted: oklch(0.21 0.034 149.702);
--muted-foreground: oklch(0.805 0 169.695);
--popover: oklch(0.12 0.011 152.186);
--popover-foreground: oklch(0.993 0.002 152.587);
--card: oklch(0.12 0.011 152.186);
--card-foreground: oklch(0.993 0.002 152.587);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.776 0.22 146.156);
--primary-foreground: oklch(0.286 0.074 147.112);
--secondary: oklch(0.323 0.028 151.175);
--secondary-foreground: oklch(0.846 0.024 152.156);
--accent: oklch(0.323 0.028 151.175);
--accent-foreground: oklch(0.846 0.024 152.156);
--destructive: oklch(0.584 0.235 29.563);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.776 0.22 146.156);
--chart-1: oklch(0.776 0.22 146.156);
--chart-2: oklch(0.323 0.028 151.175);
--chart-3: oklch(0.323 0.028 151.175);
--chart-4: oklch(0.354 0.031 151.13);
--chart-5: oklch(0.785 0.227 145.941);
}