Ovary is a shadcn/ui theme built around a light blue primary color (#e3e8f2) with muted light blue accents (#bdc3d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#e3e8f2) on a neutral background (#020408).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020408black |
| Foreground | #030916black | #f5f7f9whitesmoke |
| Card | #ffffffwhite | #020408black |
| Card foreground | #030916black | #f5f7f9whitesmoke |
| Popover | #ffffffwhite | #020408black |
| Popover foreground | #030916black | #f5f7f9whitesmoke |
| Primary | #e3e8f2lavender | #e3e8f2lavender |
| Primary foreground | #35476edarkslategray | #35476edarkslategray |
| Secondary | #d7dae0gainsboro | #1a1a1ablack |
| Secondary foreground | #3a3f4bdarkslategray | #b3b3b3darkgray |
| Muted | #d3d7dfgainsboro | #2c2020black |
| Muted foreground | #464d5ddarkslategray | #b9a2a2darkgray |
| Accent | #bdc3d1silver | #352c2cdarkslategray |
| Accent foreground | #262b36darkslategray | #cec5c5silver |
| Destructive | #bc4c10chocolate | #ed7331tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e3e8f2lavender | #e3e8f2lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.91:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.49:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 8.03:1 | AAA |
| Destructive | 5.02:1 | AA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 6.54:1 | AA |
| Accent | 8.01:1 | AAA |
| Destructive | 7.07:1 | AAA |
Paste this into your globals.css to use Ovary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.141 0.032 258.919);
--muted: oklch(0.877 0.012 265.94);
--muted-foreground: oklch(0.421 0.028 265.584);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.141 0.032 258.919);
--card: oklch(1 0 180);
--card-foreground: oklch(0.141 0.032 258.919);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.93 0.014 265.934);
--primary-foreground: oklch(0.402 0.07 264.534);
--secondary: oklch(0.887 0.009 265.958);
--secondary-foreground: oklch(0.368 0.022 265.64);
--accent: oklch(0.817 0.021 265.876);
--accent-foreground: oklch(0.288 0.022 265.494);
--destructive: oklch(0.558 0.157 43.131);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.93 0.014 265.934);
--chart-1: oklch(0.93 0.014 265.934);
--chart-2: oklch(0.887 0.009 265.958);
--chart-3: oklch(0.817 0.021 265.876);
--chart-4: oklch(0.911 0.007 265.97);
--chart-5: oklch(0.93 0.015 265.926);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.106 0.015 257.597);
--foreground: oklch(0.975 0.004 265.989);
--muted: oklch(0.259 0.019 18.457);
--muted-foreground: oklch(0.732 0.027 17.782);
--popover: oklch(0.106 0.015 257.597);
--popover-foreground: oklch(0.975 0.004 265.989);
--card: oklch(0.106 0.015 257.597);
--card-foreground: oklch(0.975 0.004 265.989);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.93 0.014 265.934);
--primary-foreground: oklch(0.402 0.07 264.534);
--secondary: oklch(0.216 0 180);
--secondary-foreground: oklch(0.765 0 172.405);
--accent: oklch(0.303 0.013 17.882);
--accent-foreground: oklch(0.83 0.011 17.374);
--destructive: oklch(0.689 0.17 45.628);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.93 0.014 265.934);
--chart-1: oklch(0.93 0.014 265.934);
--chart-2: oklch(0.216 0 180);
--chart-3: oklch(0.303 0.013 17.882);
--chart-4: oklch(0.248 0 173.29);
--chart-5: oklch(0.93 0.015 265.926);
}