Oval for shadcn/ui

Oval is a shadcn/ui theme built around a vivid light indigo primary color (#a28df7) with vivid light green accents (#8df7a2). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the vivid light indigo primary (#a28df7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#000000black
Foreground
#000000black
#fcfcfdwhite
Card
#fcfcfdwhite
#000000black
Card foreground
#000000black
#fcfcfdwhite
Popover
#fcfcfdwhite
#000000black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#a28df7mediumpurple
#a28df7mediumpurple
Primary foreground
#14054cmidnightblue
#14054cmidnightblue
Secondary
#f7a28dlightsalmon
#f7a28dlightsalmon
Secondary foreground
#4c1405maroon
#4c1405maroon
Muted
#e9d7d2gainsboro
#2d1a16black
Muted foreground
#645f5edimgray
#a19c9bdarkgray
Accent
#8df7a2palegreen
#8df7a2palegreen
Accent foreground
#054c14darkgreen
#054c14darkgreen
Destructive
#972702saddlebrown
#fd4c12orangered
Destructive foreground
#fed9cdbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a28df7mediumpurple
#a28df7mediumpurple

Contrast

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

Light mode
Text on background20.43:1AAA
Text on card20.43:1AAA
Primary button6.62:1AA
Secondary button7.44:1AAA
Muted text4.52:1AA
Accent7.78:1AAA
Destructive6.12:1AA
Dark mode
Text on background20.48:1AAA
Text on card20.48:1AAA
Primary button6.62:1AA
Secondary button7.44:1AAA
Muted text6.09:1AA
Accent7.78:1AAA
Destructive3.37: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.991 0.002 295.538);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.893 0.022 34.298);
  --muted-foreground: oklch(0.49 0.006 34.3);
  --popover: oklch(0.991 0.002 295.538);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.002 295.538);
  --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.706 0.153 291.164);
  --primary-foreground: oklch(0.212 0.118 279.123);
  --secondary: oklch(0.791 0.107 34.712);
  --secondary-foreground: oklch(0.283 0.089 35.214);
  --accent: oklch(0.891 0.154 148.971);
  --accent-foreground: oklch(0.364 0.109 145.326);
  --destructive: oklch(0.45 0.154 35.742);
  --destructive-foreground: oklch(0.913 0.045 39.286);
  --ring: oklch(0.706 0.153 291.164);
  --chart-1: oklch(0.706 0.153 291.164);
  --chart-2: oklch(0.791 0.107 34.712);
  --chart-3: oklch(0.891 0.154 148.971);
  --chart-4: oklch(0.816 0.092 34.591);
  --chart-5: oklch(0.703 0.158 290.966);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.001 295.563);
  --muted: oklch(0.242 0.031 34.68);
  --muted-foreground: oklch(0.697 0.006 34.304);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.001 295.563);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.992 0.001 295.563);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.706 0.153 291.164);
  --primary-foreground: oklch(0.212 0.118 279.123);
  --secondary: oklch(0.791 0.107 34.712);
  --secondary-foreground: oklch(0.283 0.089 35.214);
  --accent: oklch(0.891 0.154 148.971);
  --accent-foreground: oklch(0.364 0.109 145.326);
  --destructive: oklch(0.664 0.221 35.97);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.706 0.153 291.164);
  --chart-1: oklch(0.706 0.153 291.164);
  --chart-2: oklch(0.791 0.107 34.712);
  --chart-3: oklch(0.891 0.154 148.971);
  --chart-4: oklch(0.816 0.092 34.591);
  --chart-5: oklch(0.703 0.158 290.966);
}