Ovary is a shadcn/ui theme built around a near-white primary color (#f7fdf7) with muted light green accents (#c8d6c7). The light mode uses a neutral background (#fbfefb). Dark mode keeps the near-white primary (#f7fdf7) on a neutral background (#040704).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefbwhite | #040704black |
| Foreground | #031103black | #f6f9f6whitesmoke |
| Card | #fbfefbwhite | #040704black |
| Card foreground | #031103black | #f6f9f6whitesmoke |
| Popover | #fbfefbwhite | #040704black |
| Popover foreground | #031103black | #f6f9f6whitesmoke |
| Primary | #f7fdf7mintcream | #f7fdf7mintcream |
| Primary foreground | #164715darkgreen | #164715darkgreen |
| Secondary | #c8d6c7lightgrey | #1b271bblack |
| Secondary foreground | #2e3e2edarkslategray | #aec7adsilver |
| Muted | #e3eee2gainsboro | #111d11black |
| Muted foreground | #445544darkslategray | #aabbaadarkgray |
| Accent | #c8d6c7lightgrey | #1b271bblack |
| Accent foreground | #2e3e2edarkslategray | #aec7adsilver |
| Destructive | #903004saddlebrown | #f96824tomato |
| Destructive foreground | #fed9c8bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f7fdf7mintcream | #f7fdf7mintcream |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.00:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 10.43:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 6.67:1 | AA |
| Accent | 7.51:1 | AAA |
| Destructive | 6.10:1 | AA |
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 10.43:1 | AAA |
| Secondary button | 8.51:1 | AAA |
| Muted text | 8.62:1 | AAA |
| Accent | 8.51:1 | AAA |
| Destructive | 7.03:1 | AAA |
Paste this into your globals.css to use Ovary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.004 145.075);
--foreground: oklch(0.16 0.04 142.946);
--muted: oklch(0.937 0.019 144.954);
--muted-foreground: oklch(0.43 0.034 144.522);
--popover: oklch(0.993 0.004 145.075);
--popover-foreground: oklch(0.16 0.04 142.946);
--card: oklch(0.993 0.004 145.075);
--card-foreground: oklch(0.16 0.04 142.946);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.987 0.009 145.035);
--primary-foreground: oklch(0.351 0.095 142.987);
--secondary: oklch(0.861 0.025 144.894);
--secondary-foreground: oklch(0.343 0.034 144.365);
--accent: oklch(0.861 0.025 144.894);
--accent-foreground: oklch(0.343 0.034 144.365);
--destructive: oklch(0.447 0.138 39.829);
--destructive-foreground: oklch(0.912 0.047 46.348);
--ring: oklch(0.987 0.009 145.035);
--chart-1: oklch(0.987 0.009 145.035);
--chart-2: oklch(0.861 0.025 144.894);
--chart-3: oklch(0.861 0.025 144.894);
--chart-4: oklch(0.883 0.021 144.932);
--chart-5: oklch(0.988 0.01 145.031);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.013 144.224);
--foreground: oklch(0.979 0.005 145.062);
--muted: oklch(0.215 0.027 144.151);
--muted-foreground: oklch(0.774 0.03 144.827);
--popover: oklch(0.119 0.013 144.224);
--popover-foreground: oklch(0.979 0.005 145.062);
--card: oklch(0.119 0.013 144.224);
--card-foreground: oklch(0.979 0.005 145.062);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.987 0.009 145.035);
--primary-foreground: oklch(0.351 0.095 142.987);
--secondary: oklch(0.259 0.029 144.278);
--secondary-foreground: oklch(0.804 0.046 144.692);
--accent: oklch(0.259 0.029 144.278);
--accent-foreground: oklch(0.804 0.046 144.692);
--destructive: oklch(0.691 0.193 41.71);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.987 0.009 145.035);
--chart-1: oklch(0.987 0.009 145.035);
--chart-2: oklch(0.259 0.029 144.278);
--chart-3: oklch(0.259 0.029 144.278);
--chart-4: oklch(0.293 0.034 144.231);
--chart-5: oklch(0.988 0.01 145.031);
}