Oval for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.93:1AAA
Text on card19.93:1AAA
Primary button12.63:1AAA
Secondary button7.45:1AAA
Muted text7.58:1AAA
Accent7.45:1AAA
Destructive5.98:1AA
Dark mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button12.63:1AAA
Secondary button8.10:1AAA
Muted text8.98:1AAA
Accent8.10:1AAA
Destructive3.89:1AA Large

CSS variables

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);
}