Oval is a shadcn/ui theme built around a near-white primary color (#ffffff) with muted light red accents (#e8dede). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#ffffff) on a red-tinted background (#0c0303).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0c0303black |
| Foreground | #160404black | #fdfcfcsnow |
| Card | #ffffffwhite | #0c0303black |
| Card foreground | #160404black | #fdfcfcsnow |
| Popover | #ffffffwhite | #0c0303black |
| Popover foreground | #160404black | #fdfcfcsnow |
| Primary | #ffffffwhite | #ffffffwhite |
| Primary foreground | #333333darkslategray | #333333darkslategray |
| Secondary | #e8dedegainsboro | #181616black |
| Secondary foreground | #573d3ddarkslategray | #b4acacdarkgray |
| Muted | #ece4e4linen | #1b1313black |
| Muted foreground | #4b4444darkslategray | #bbb4b4silver |
| Accent | #e8dedegainsboro | #181616black |
| Accent foreground | #573d3ddarkslategray | #b4acacdarkgray |
| Destructive | #bf2612firebrick | #eb432dtomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ffffffwhite | #ffffffwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.93:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 7.58:1 | AAA |
| Accent | 7.45:1 | AAA |
| Destructive | 5.98:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 12.63:1 | AAA |
| Secondary button | 8.10:1 | AAA |
| Muted text | 8.98:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Oval in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.142 0.036 22.819);
--muted: oklch(0.925 0.01 17.328);
--muted-foreground: oklch(0.393 0.01 17.574);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.142 0.036 22.819);
--card: oklch(1 0 180);
--card-foreground: oklch(0.142 0.036 22.819);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.909 0.01 17.349);
--secondary-foreground: oklch(0.39 0.036 18.802);
--accent: oklch(0.909 0.01 17.349);
--accent-foreground: oklch(0.39 0.036 18.802);
--destructive: oklch(0.523 0.191 31.018);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.909 0.01 17.349);
--chart-3: oklch(0.909 0.01 17.349);
--chart-4: oklch(0.934 0.008 17.291);
--chart-5: oklch(1 0 180);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.022 20.823);
--foreground: oklch(0.992 0.001 17.174);
--muted: oklch(0.196 0.015 18.468);
--muted-foreground: oklch(0.776 0.008 17.332);
--popover: oklch(0.118 0.022 20.823);
--popover-foreground: oklch(0.992 0.001 17.174);
--card: oklch(0.118 0.022 20.823);
--card-foreground: oklch(0.992 0.001 17.174);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(1 0 180);
--primary-foreground: oklch(0.321 0 180);
--secondary: oklch(0.202 0.004 17.462);
--secondary-foreground: oklch(0.751 0.009 17.359);
--accent: oklch(0.202 0.004 17.462);
--accent-foreground: oklch(0.751 0.009 17.359);
--destructive: oklch(0.628 0.208 30.916);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(1 0 180);
--chart-1: oklch(1 0 180);
--chart-2: oklch(0.202 0.004 17.462);
--chart-3: oklch(0.202 0.004 17.462);
--chart-4: oklch(0.235 0.005 17.495);
--chart-5: oklch(1 0 180);
}