Prize for shadcn/ui

Prize is a shadcn/ui theme built around a muted deep violet primary color (#332a41) with muted deep green accents (#38412a). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted deep violet primary (#332a41) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfbfewhite
#000000black
Foreground
#0b0613black
#ffffffwhite
Card
#fcfbfewhite
#000000black
Card foreground
#0b0613black
#ffffffwhite
Popover
#fcfbfewhite
#000000black
Popover foreground
#0b0613black
#ffffffwhite
Primary
#332a41darkslategray
#332a41darkslategray
Primary foreground
#cdc4d9thistle
#cdc4d9thistle
Secondary
#38412adarkslategray
#38412adarkslategray
Secondary foreground
#d1d9c4lightgrey
#d1d9c4lightgrey
Muted
#eef4e7linen
#13180bblack
Muted foreground
#424937darkslategray
#c1c8b6silver
Accent
#38412adarkslategray
#38412adarkslategray
Accent foreground
#d1d9c4lightgrey
#d1d9c4lightgrey
Destructive
#941305darkred
#f82912orangered
Destructive foreground
#fdd2cepink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#332a41darkslategray
#332a41darkslategray

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.42:1AAA
Primary button8.04:1AAA
Secondary button7.39:1AAA
Muted text8.34:1AAA
Accent7.39:1AAA
Destructive6.47:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.04:1AAA
Secondary button7.39:1AAA
Muted text10.46:1AAA
Accent7.39:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 304.294);
  --foreground: oklch(0.14 0.03 302.2);
  --muted: oklch(0.958 0.018 124.613);
  --muted-foreground: oklch(0.392 0.031 125.501);
  --popover: oklch(0.99 0.004 304.294);
  --popover-foreground: oklch(0.14 0.03 302.2);
  --card: oklch(0.99 0.004 304.294);
  --card-foreground: oklch(0.14 0.03 302.2);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.306 0.041 302.37);
  --primary-foreground: oklch(0.834 0.029 303.842);
  --secondary: oklch(0.359 0.039 125.992);
  --secondary-foreground: oklch(0.873 0.029 124.823);
  --accent: oklch(0.359 0.039 125.992);
  --accent-foreground: oklch(0.873 0.029 124.823);
  --destructive: oklch(0.428 0.164 30.606);
  --destructive-foreground: oklch(0.9 0.049 25.529);
  --ring: oklch(0.306 0.041 302.37);
  --chart-1: oklch(0.306 0.041 302.37);
  --chart-2: oklch(0.359 0.039 125.992);
  --chart-3: oklch(0.359 0.039 125.992);
  --chart-4: oklch(0.393 0.043 126.034);
  --chart-5: oklch(0.303 0.047 302.045);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.2 0.025 126.32);
  --muted-foreground: oklch(0.823 0.026 124.797);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.306 0.041 302.37);
  --primary-foreground: oklch(0.834 0.029 303.842);
  --secondary: oklch(0.359 0.039 125.992);
  --secondary-foreground: oklch(0.873 0.029 124.823);
  --accent: oklch(0.359 0.039 125.992);
  --accent-foreground: oklch(0.873 0.029 124.823);
  --destructive: oklch(0.627 0.239 30.474);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.306 0.041 302.37);
  --chart-1: oklch(0.306 0.041 302.37);
  --chart-2: oklch(0.359 0.039 125.992);
  --chart-3: oklch(0.359 0.039 125.992);
  --chart-4: oklch(0.393 0.043 126.034);
  --chart-5: oklch(0.303 0.047 302.045);
}