Oval for shadcn/ui

Oval is a shadcn/ui theme built around a light green primary color (#d9f2e3) with light orange accents (#f2e3d9). The light mode uses a neutral background (#fbfefc). Dark mode keeps the light green primary (#d9f2e3) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#fbfefcwhite
#010402black
Foreground
#010402black
#f6f8f7whitesmoke
Card
#f6fdf9mintcream
#030805black
Card foreground
#000000black
#f9fbfamintcream
Popover
#f6fdf9mintcream
#030805black
Popover foreground
#000000black
#f9fbfamintcream
Primary
#d9f2e3gainsboro
#d9f2e3gainsboro
Primary foreground
#0d2617black
#0d2617black
Secondary
#e3d9f2lavender
#e3d9f2lavender
Secondary foreground
#442871darkslateblue
#442871darkslateblue
Muted
#eceaf0lavender
#110f15black
Muted foreground
#4a494bdarkslategray
#b5b4b6silver
Accent
#f2e3d9antiquewhite
#f2e3d9antiquewhite
Accent foreground
#714428saddlebrown
#714428saddlebrown
Destructive
#d11a05firebrick
#ef1d06red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d9f2e3gainsboro
#d9f2e3gainsboro

Contrast

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

Light mode
Text on background20.30:1AAA
Text on card20.40:1AAA
Primary button13.57:1AAA
Secondary button8.66:1AAA
Muted text7.52:1AAA
Accent6.53:1AA
Destructive5.44:1AA
Dark mode
Text on background19.31:1AAA
Text on card19.45:1AAA
Primary button13.57:1AAA
Secondary button8.66:1AAA
Muted text9.21:1AAA
Accent6.53:1AA
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 159.363);
  --foreground: oklch(0.099 0.017 159.254);
  --muted: oklch(0.941 0.008 303.514);
  --muted-foreground: oklch(0.407 0.003 303.547);
  --popover: oklch(0.989 0.009 159.254);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.009 159.254);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.938 0.033 158.67);
  --primary-foreground: oklch(0.243 0.042 154.563);
  --secondary: oklch(0.901 0.035 303.073);
  --secondary-foreground: oklch(0.353 0.121 297.466);
  --accent: oklch(0.924 0.021 54.199);
  --accent-foreground: oklch(0.434 0.075 51.484);
  --destructive: oklch(0.548 0.214 30.384);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.938 0.033 158.67);
  --chart-1: oklch(0.938 0.033 158.67);
  --chart-2: oklch(0.901 0.035 303.073);
  --chart-3: oklch(0.924 0.021 54.199);
  --chart-4: oklch(0.931 0.024 303.259);
  --chart-5: oklch(0.939 0.035 158.62);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.013 159.313);
  --foreground: oklch(0.978 0.003 159.404);
  --muted: oklch(0.174 0.012 302.602);
  --muted-foreground: oklch(0.772 0.002 303.598);
  --popover: oklch(0.122 0.016 159.313);
  --popover-foreground: oklch(0.986 0.002 159.426);
  --card: oklch(0.122 0.016 159.313);
  --card-foreground: oklch(0.986 0.002 159.426);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.938 0.033 158.67);
  --primary-foreground: oklch(0.243 0.042 154.563);
  --secondary: oklch(0.901 0.035 303.073);
  --secondary-foreground: oklch(0.353 0.121 297.466);
  --accent: oklch(0.924 0.021 54.199);
  --accent-foreground: oklch(0.434 0.075 51.484);
  --destructive: oklch(0.605 0.237 30.316);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.938 0.033 158.67);
  --chart-1: oklch(0.938 0.033 158.67);
  --chart-2: oklch(0.901 0.035 303.073);
  --chart-3: oklch(0.924 0.021 54.199);
  --chart-4: oklch(0.931 0.024 303.259);
  --chart-5: oklch(0.939 0.035 158.62);
}