Prize for shadcn/ui

Prize is a shadcn/ui theme built around a purple primary color (#d980ea) with green accents (#92ea80). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the purple primary (#d980ea) on a purple-tinted background (#09050a).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#09050ablack
Foreground
#000000black
#f9f5faghostwhite
Card
#fbf8fcghostwhite
#09050ablack
Card foreground
#000000black
#f9f5faghostwhite
Popover
#fbf8fcghostwhite
#09050ablack
Popover foreground
#000000black
#f9f5faghostwhite
Primary
#d980eaviolet
#d980eaviolet
Primary foreground
#2a0830black
#2a0830black
Secondary
#92ea80lightgreen
#92ea80lightgreen
Secondary foreground
#0f3008black
#0f3008black
Muted
#daead7gainsboro
#182815black
Muted foreground
#5b6459dimgray
#9da69bdarkgray
Accent
#92ea80lightgreen
#92ea80lightgreen
Accent foreground
#0f3008black
#0f3008black
Destructive
#c41512firebrick
#e91916red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d980eaviolet
#d980eaviolet

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card19.91:1AAA
Primary button6.97:1AA
Secondary button9.90:1AAA
Muted text4.90:1AA
Accent9.90:1AAA
Destructive6.06:1AA
Dark mode
Text on background18.75:1AAA
Text on card18.75:1AAA
Primary button6.97:1AA
Secondary button9.90:1AAA
Muted text6.17:1AA
Accent9.90:1AAA
Destructive4.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.007 320.542);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.92 0.03 140.481);
  --muted-foreground: oklch(0.492 0.021 140.465);
  --popover: oklch(0.982 0.007 320.542);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.007 320.542);
  --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.732 0.174 320.76);
  --primary-foreground: oklch(0.216 0.082 320.489);
  --secondary: oklch(0.857 0.165 140.344);
  --secondary-foreground: oklch(0.275 0.076 140.555);
  --accent: oklch(0.857 0.165 140.344);
  --accent-foreground: oklch(0.275 0.076 140.555);
  --destructive: oklch(0.522 0.204 28.643);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.732 0.174 320.76);
  --chart-1: oklch(0.732 0.174 320.76);
  --chart-2: oklch(0.857 0.165 140.344);
  --chart-3: oklch(0.857 0.165 140.344);
  --chart-4: oklch(0.87 0.149 140.339);
  --chart-5: oklch(0.732 0.18 320.757);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.017 321.689);
  --foreground: oklch(0.974 0.008 320.543);
  --muted: oklch(0.257 0.041 140.341);
  --muted-foreground: oklch(0.715 0.019 140.49);
  --popover: oklch(0.126 0.017 321.689);
  --popover-foreground: oklch(0.974 0.008 320.543);
  --card: oklch(0.126 0.017 321.689);
  --card-foreground: oklch(0.974 0.008 320.543);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.732 0.174 320.76);
  --primary-foreground: oklch(0.216 0.082 320.489);
  --secondary: oklch(0.857 0.165 140.344);
  --secondary-foreground: oklch(0.275 0.076 140.555);
  --accent: oklch(0.857 0.165 140.344);
  --accent-foreground: oklch(0.275 0.076 140.555);
  --destructive: oklch(0.594 0.234 28.735);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.732 0.174 320.76);
  --chart-1: oklch(0.732 0.174 320.76);
  --chart-2: oklch(0.857 0.165 140.344);
  --chart-3: oklch(0.857 0.165 140.344);
  --chart-4: oklch(0.87 0.149 140.339);
  --chart-5: oklch(0.732 0.18 320.757);
}