Oval for shadcn/ui

Oval is a shadcn/ui theme built around a muted deep pink primary color (#2c1b23) with muted pink accents (#cbaebc). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the muted deep pink primary (#2c1b23) on a pink-tinted background (#0b0407).

Color palette

TokenLightDark
Background
#fcf8fasnow
#0b0407black
Foreground
#10050ablack
#fdfcfcsnow
Card
#fbf4f7lavenderblush
#0f060ablack
Card foreground
#0c0407black
#ffffffwhite
Popover
#fbf4f7lavenderblush
#0f060ablack
Popover foreground
#0c0407black
#ffffffwhite
Primary
#2c1b23black
#2c1b23black
Primary foreground
#cdadbcsilver
#cdadbcsilver
Secondary
#d7cbd1lightgrey
#272526darkslategray
Secondary foreground
#3f3138darkslategray
#c1bdbfsilver
Muted
#f3edefwhitesmoke
#120c0fblack
Muted foreground
#5a5859dimgray
#a7a5a6darkgray
Accent
#cbaebcsilver
#45353ddarkslategray
Accent foreground
#2c1c23black
#dcd1d6lightgrey
Destructive
#8f320asaddlebrown
#ef5d1fchocolate
Destructive foreground
#fcddcfbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2c1b23black
#2c1b23black

Contrast

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

Light mode
Text on background18.98:1AAA
Text on card18.68:1AAA
Primary button7.97:1AAA
Secondary button7.82:1AAA
Muted text6.09:1AA
Accent7.96:1AAA
Destructive6.23:1AA
Dark mode
Text on background19.79:1AAA
Text on card20.02:1AAA
Primary button7.97:1AAA
Secondary button8.17:1AAA
Muted text7.88:1AAA
Accent7.70:1AAA
Destructive6.28:1AA

CSS variables

Paste this into your globals.css to use Oval in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 347.065);
  --foreground: oklch(0.135 0.025 348.632);
  --muted: oklch(0.951 0.008 347.121);
  --muted-foreground: oklch(0.464 0.003 347.06);
  --popover: oklch(0.973 0.009 347.146);
  --popover-foreground: oklch(0.122 0.022 346.901);
  --card: oklch(0.973 0.009 347.146);
  --card-foreground: oklch(0.122 0.022 346.901);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.248 0.03 349.98);
  --primary-foreground: oklch(0.779 0.042 348.302);
  --secondary: oklch(0.854 0.015 347.382);
  --secondary-foreground: oklch(0.331 0.024 348.757);
  --accent: oklch(0.781 0.038 348.186);
  --accent-foreground: oklch(0.249 0.028 349.722);
  --destructive: oklch(0.448 0.135 39.653);
  --destructive-foreground: oklch(0.919 0.039 44.602);
  --ring: oklch(0.248 0.03 349.98);
  --chart-1: oklch(0.248 0.03 349.98);
  --chart-2: oklch(0.854 0.015 347.382);
  --chart-3: oklch(0.781 0.038 348.186);
  --chart-4: oklch(0.879 0.013 347.29);
  --chart-5: oklch(0.247 0.034 350.369);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.018 346.804);
  --foreground: oklch(0.992 0.001 346.927);
  --muted: oklch(0.165 0.012 348.763);
  --muted-foreground: oklch(0.723 0.002 346.995);
  --popover: oklch(0.137 0.021 348.39);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.137 0.021 348.39);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.248 0.03 349.98);
  --primary-foreground: oklch(0.779 0.042 348.302);
  --secondary: oklch(0.268 0.004 347.297);
  --secondary-foreground: oklch(0.803 0.005 347.072);
  --accent: oklch(0.35 0.026 348.788);
  --accent-foreground: oklch(0.87 0.013 347.32);
  --destructive: oklch(0.662 0.193 40.23);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.248 0.03 349.98);
  --chart-1: oklch(0.248 0.03 349.98);
  --chart-2: oklch(0.268 0.004 347.297);
  --chart-3: oklch(0.35 0.026 348.788);
  --chart-4: oklch(0.299 0.005 347.315);
  --chart-5: oklch(0.247 0.034 350.369);
}