Oval is a shadcn/ui theme built around a light green primary color (#c6e2ce) with light purple accents (#e2c6da). The light mode uses a neutral background (#f7fdf9). Dark mode keeps the light green primary (#c6e2ce) on a neutral background (#020302).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf9mintcream | #020302black |
| Foreground | #031107black | #f5faf6whitesmoke |
| Card | #f7fdf9mintcream | #020302black |
| Card foreground | #031107black | #f5faf6whitesmoke |
| Popover | #f7fdf9mintcream | #020302black |
| Popover foreground | #031107black | #f5faf6whitesmoke |
| Primary | #c6e2celightgrey | #c6e2celightgrey |
| Primary foreground | #284d33darkslategray | #284d33darkslategray |
| Secondary | #e2c6dathistle | #e2c6dathistle |
| Secondary foreground | #4d2843darkslategray | #4d2843darkslategray |
| Muted | #e1d6degainsboro | #291e26black |
| Muted foreground | #5e5a5ddimgray | #a5a1a4darkgray |
| Accent | #e2c6dathistle | #e2c6dathistle |
| Accent foreground | #4d2843darkslategray | #4d2843darkslategray |
| Destructive | #832b02saddlebrown | #fc631dorangered |
| Destructive foreground | #fecfb9peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c6e2celightgrey | #c6e2celightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.70:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 4.78:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.44:1 | AA |
| Text on background | 19.54:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 6.28:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.94:1 | AA |
Paste this into your globals.css to use Oval in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.008 155.046);
--foreground: oklch(0.161 0.031 153.282);
--muted: oklch(0.886 0.017 335.529);
--muted-foreground: oklch(0.472 0.006 335.43);
--popover: oklch(0.988 0.008 155.046);
--popover-foreground: oklch(0.161 0.031 153.282);
--card: oklch(0.988 0.008 155.046);
--card-foreground: oklch(0.161 0.031 153.282);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.885 0.04 154.336);
--primary-foreground: oklch(0.385 0.063 151.613);
--secondary: oklch(0.855 0.041 336.035);
--secondary-foreground: oklch(0.336 0.069 338.61);
--accent: oklch(0.855 0.041 336.035);
--accent-foreground: oklch(0.336 0.069 338.61);
--destructive: oklch(0.416 0.129 39.997);
--destructive-foreground: oklch(0.889 0.061 46.198);
--ring: oklch(0.885 0.04 154.336);
--chart-1: oklch(0.885 0.04 154.336);
--chart-2: oklch(0.855 0.041 336.035);
--chart-3: oklch(0.855 0.041 336.035);
--chart-4: oklch(0.881 0.033 335.864);
--chart-5: oklch(0.887 0.044 154.256);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.008 154.899);
--foreground: oklch(0.98 0.007 155.065);
--muted: oklch(0.252 0.023 336.754);
--muted-foreground: oklch(0.714 0.006 335.334);
--popover: oklch(0.095 0.008 154.899);
--popover-foreground: oklch(0.98 0.007 155.065);
--card: oklch(0.095 0.008 154.899);
--card-foreground: oklch(0.98 0.007 155.065);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.885 0.04 154.336);
--primary-foreground: oklch(0.385 0.063 151.613);
--secondary: oklch(0.855 0.041 336.035);
--secondary-foreground: oklch(0.336 0.069 338.61);
--accent: oklch(0.855 0.041 336.035);
--accent-foreground: oklch(0.336 0.069 338.61);
--destructive: oklch(0.688 0.2 41.011);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.885 0.04 154.336);
--chart-1: oklch(0.885 0.04 154.336);
--chart-2: oklch(0.855 0.041 336.035);
--chart-3: oklch(0.855 0.041 336.035);
--chart-4: oklch(0.881 0.033 335.864);
--chart-5: oklch(0.887 0.044 154.256);
}