Cameo for shadcn/ui

Cameo is a shadcn/ui theme built around a vivid purple primary color (#e000a8) with vivid green accents (#00e038). The light mode uses a neutral background (#fbf8fb). Dark mode keeps the vivid purple primary (#e000a8) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf8fbsnow
#000000black
Foreground
#080207black
#fdfcfdwhite
Card
#faf5f8whitesmoke
#030303black
Card foreground
#040103black
#ffffffwhite
Popover
#fbf8fbsnow
#000000black
Popover foreground
#080207black
#fdfcfdwhite
Primary
#e000a8deeppink
#e000a8deeppink
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#00e038limegreen
#00e038limegreen
Secondary foreground
#001405black
#001405black
Muted
#e0ebe3gainsboro
#141f17black
Muted foreground
#3e4c41darkslategray
#b3c1b7silver
Accent
#00e038limegreen
#00e038limegreen
Accent foreground
#001405black
#001405black
Destructive
#bb4c0cchocolate
#f27b36coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e000a8deeppink
#e000a8deeppink

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.27:1AAA
Primary button4.42:1AA Large
Secondary button10.67:1AAA
Muted text7.40:1AAA
Accent10.67:1AAA
Destructive5.05:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.67:1AAA
Primary button4.42:1AA Large
Secondary button10.67:1AAA
Muted text9.07:1AAA
Accent10.67:1AAA
Destructive7.65:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 333.953);
  --foreground: oklch(0.107 0.025 334.67);
  --muted: oklch(0.929 0.016 153.589);
  --muted-foreground: oklch(0.4 0.025 152.783);
  --popover: oklch(0.983 0.004 333.953);
  --popover-foreground: oklch(0.107 0.025 334.67);
  --card: oklch(0.975 0.007 333.992);
  --card-foreground: oklch(0.085 0.02 334.67);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.607 0.26 343.62);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.789 0.252 144.472);
  --secondary-foreground: oklch(0.169 0.045 151.154);
  --accent: oklch(0.789 0.252 144.472);
  --accent-foreground: oklch(0.169 0.045 151.154);
  --destructive: oklch(0.556 0.158 43.734);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.607 0.26 343.62);
  --chart-1: oklch(0.607 0.26 343.62);
  --chart-2: oklch(0.789 0.252 144.472);
  --chart-3: oklch(0.789 0.252 144.472);
  --chart-4: oklch(0.829 0.265 144.429);
  --chart-5: oklch(0.613 0.263 343.859);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.002 333.917);
  --muted: oklch(0.225 0.022 152.091);
  --muted-foreground: oklch(0.797 0.021 153.426);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.992 0.002 333.917);
  --card: oklch(0.092 0 180);
  --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.607 0.26 343.62);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.789 0.252 144.472);
  --secondary-foreground: oklch(0.169 0.045 151.154);
  --accent: oklch(0.789 0.252 144.472);
  --accent-foreground: oklch(0.169 0.045 151.154);
  --destructive: oklch(0.708 0.167 47.4);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.607 0.26 343.62);
  --chart-1: oklch(0.607 0.26 343.62);
  --chart-2: oklch(0.789 0.252 144.472);
  --chart-3: oklch(0.789 0.252 144.472);
  --chart-4: oklch(0.829 0.265 144.429);
  --chart-5: oklch(0.613 0.263 343.859);
}