Oval is a shadcn/ui theme built around a vivid light teal primary color (#9efae0) with vivid light cyan accents (#9ee6fa). The light mode uses a neutral background (#f8fcfb). Dark mode keeps the vivid light teal primary (#9efae0) on a neutral background (#010403).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfbmintcream | #010403black |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #f8fcfbmintcream | #010403black |
| Card foreground | #000000black | #fcfdfdwhite |
| Popover | #f8fcfbmintcream | #010403black |
| Popover foreground | #000000black | #fcfdfdwhite |
| Primary | #9efae0paleturquoise | #9efae0paleturquoise |
| Primary foreground | #056147darkslategray | #056147darkslategray |
| Secondary | #9efab2palegreen | #9efab2palegreen |
| Secondary foreground | #056119darkgreen | #056119darkgreen |
| Muted | #d5ecdagainsboro | #132a18black |
| Muted foreground | #404441darkslategray | #bbbfbcsilver |
| Accent | #9ee6fapaleturquoise | #9ee6fapaleturquoise |
| Accent foreground | #054d61darkslategray | #054d61darkslategray |
| Destructive | #6b1b00maroon | #ff5319orangered |
| Destructive foreground | #ffb69elightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9efae0paleturquoise | #9efae0paleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 6.15:1 | AA |
| Muted text | 7.92:1 | AAA |
| Accent | 6.77:1 | AA |
| Destructive | 6.98:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 6.14:1 | AA |
| Secondary button | 6.15:1 | AA |
| Muted text | 8.23:1 | AAA |
| Accent | 6.77:1 | AA |
| Destructive | 6.49:1 | AA |
Paste this into your globals.css to use Oval in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 177.597);
--foreground: oklch(0 0 0);
--muted: oklch(0.921 0.034 152.03);
--muted-foreground: oklch(0.383 0.007 152.311);
--popover: oklch(0.987 0.004 177.597);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.004 177.597);
--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.921 0.096 174.136);
--primary-foreground: oklch(0.439 0.089 166.404);
--secondary: oklch(0.91 0.134 149.992);
--secondary-foreground: oklch(0.43 0.132 145.125);
--accent: oklch(0.885 0.077 216.992);
--accent-foreground: oklch(0.392 0.071 223.442);
--destructive: oklch(0.352 0.118 36.9);
--destructive-foreground: oklch(0.84 0.092 39.21);
--ring: oklch(0.921 0.096 174.136);
--chart-1: oklch(0.921 0.096 174.136);
--chart-2: oklch(0.91 0.134 149.992);
--chart-3: oklch(0.885 0.077 216.992);
--chart-4: oklch(0.921 0.114 150.454);
--chart-5: oklch(0.924 0.099 174.021);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.011 177.851);
--foreground: oklch(0.993 0.002 177.666);
--muted: oklch(0.26 0.044 149.504);
--muted-foreground: oklch(0.8 0.006 152.496);
--popover: oklch(0.098 0.011 177.851);
--popover-foreground: oklch(0.993 0.002 177.666);
--card: oklch(0.098 0.011 177.851);
--card-foreground: oklch(0.993 0.002 177.666);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.921 0.096 174.136);
--primary-foreground: oklch(0.439 0.089 166.404);
--secondary: oklch(0.91 0.134 149.992);
--secondary-foreground: oklch(0.43 0.132 145.125);
--accent: oklch(0.885 0.077 216.992);
--accent-foreground: oklch(0.392 0.071 223.442);
--destructive: oklch(0.674 0.217 36.546);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.921 0.096 174.136);
--chart-1: oklch(0.921 0.096 174.136);
--chart-2: oklch(0.91 0.134 149.992);
--chart-3: oklch(0.885 0.077 216.992);
--chart-4: oklch(0.921 0.114 150.454);
--chart-5: oklch(0.924 0.099 174.021);
}