Oval for shadcn/ui

Oval is a shadcn/ui theme built around a neutral gray primary color (#626060) with muted light red accents (#dcc1c3). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#626060) on a neutral background (#070303).

Color palette

TokenLightDark
Background
#ffffffwhite
#070303black
Foreground
#0c0304black
#ffffffwhite
Card
#fcfcfcsnow
#0b0505black
Card foreground
#080203black
#ffffffwhite
Popover
#ffffffwhite
#070303black
Popover foreground
#0c0304black
#ffffffwhite
Primary
#626060dimgray
#626060dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e4d8d9gainsboro
#262122black
Secondary foreground
#52383adarkslategray
#c1b8b9silver
Muted
#e7e4e4gainsboro
#1b1818black
Muted foreground
#5c5757dimgray
#a8a3a4darkgray
Accent
#dcc1c3thistle
#3e2d2edarkslategray
Accent foreground
#452729darkslategray
#d6c7c8lightgrey
Destructive
#89280bsaddlebrown
#ed5121chocolate
Destructive foreground
#fbd6cbbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#626060dimgray
#626060dimgray

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.13:1AAA
Primary button6.25:1AA
Secondary button7.59:1AAA
Muted text5.62:1AA
Accent7.91:1AAA
Destructive6.56:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.26:1AAA
Primary button6.25:1AA
Secondary button8.16:1AAA
Muted text7.08:1AAA
Accent7.93:1AAA
Destructive3.62: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.119 0.021 13.132);
  --muted: oklch(0.922 0.003 11.316);
  --muted-foreground: oklch(0.46 0.007 11.582);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.119 0.021 13.132);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.104 0.018 13.022);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.491 0.002 11.36);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.891 0.014 11.592);
  --secondary-foreground: oklch(0.371 0.038 13.532);
  --accent: oklch(0.834 0.031 12.064);
  --accent-foreground: oklch(0.31 0.045 14.653);
  --destructive: oklch(0.425 0.136 35.994);
  --destructive-foreground: oklch(0.905 0.044 37.6);
  --ring: oklch(0.491 0.002 11.36);
  --chart-1: oklch(0.491 0.002 11.36);
  --chart-2: oklch(0.891 0.014 11.592);
  --chart-3: oklch(0.834 0.031 12.064);
  --chart-4: oklch(0.917 0.011 11.503);
  --chart-5: oklch(0.486 0.01 11.701);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.012 12.261);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.213 0.004 11.666);
  --muted-foreground: oklch(0.72 0.006 11.439);
  --popover: oklch(0.108 0.012 12.261);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.013 12.269);
  --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.491 0.002 11.36);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.254 0.008 11.908);
  --secondary-foreground: oklch(0.791 0.011 11.542);
  --accent: oklch(0.317 0.025 13.031);
  --accent-foreground: oklch(0.842 0.017 11.704);
  --destructive: oklch(0.643 0.2 36.313);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.491 0.002 11.36);
  --chart-1: oklch(0.491 0.002 11.36);
  --chart-2: oklch(0.254 0.008 11.908);
  --chart-3: oklch(0.317 0.025 13.031);
  --chart-4: oklch(0.285 0.009 11.944);
  --chart-5: oklch(0.486 0.01 11.701);
}