Prize for shadcn/ui

Prize is a shadcn/ui theme built around a yellow primary color (#906b23) with violet accents (#6b2390). The light mode uses a neutral background (#fbfaf8). Dark mode keeps the yellow primary (#906b23) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfaf8snow
#000000black
Foreground
#0e0a02black
#f9f8f6whitesmoke
Card
#fbfaf8snow
#000000black
Card foreground
#0e0a02black
#f9f8f6whitesmoke
Popover
#fbfaf8snow
#000000black
Popover foreground
#0e0a02black
#f9f8f6whitesmoke
Primary
#906b23sienna
#906b23sienna
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#23906bseagreen
#23906bseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d2e0dbgainsboro
#1f2d29darkslategray
Muted foreground
#58746bdimgray
#8ba79edarkseagreen
Accent
#6b2390rebeccapurple
#6b2390rebeccapurple
Accent foreground
#f5eafawhitesmoke
#f5eafawhitesmoke
Destructive
#af2708firebrick
#e0320borangered
Destructive foreground
#feefecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#906b23sienna
#906b23sienna

Contrast

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

Light mode
Text on background19.00:1AAA
Text on card19.00:1AAA
Primary button4.85:1AA
Secondary button3.99:1AA Large
Muted text3.72:1AA Large
Accent7.94:1AAA
Destructive6.01:1AA
Dark mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button4.85:1AA
Secondary button3.99:1AA Large
Muted text5.52:1AA
Accent7.94: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.987 0.003 84.559);
  --foreground: oklch(0.145 0.023 91.249);
  --muted: oklch(0.894 0.016 174.057);
  --muted-foreground: oklch(0.535 0.036 172.419);
  --popover: oklch(0.987 0.003 84.559);
  --popover-foreground: oklch(0.145 0.023 91.249);
  --card: oklch(0.987 0.003 84.559);
  --card-foreground: oklch(0.145 0.023 91.249);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.552 0.099 80.953);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.583 0.111 165.583);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.421 0.173 311.577);
  --accent-foreground: oklch(0.951 0.023 314.707);
  --destructive: oklch(0.494 0.176 33.022);
  --destructive-foreground: oklch(0.963 0.017 32.67);
  --ring: oklch(0.552 0.099 80.953);
  --chart-1: oklch(0.552 0.099 80.953);
  --chart-2: oklch(0.583 0.111 165.583);
  --chart-3: oklch(0.421 0.173 311.577);
  --chart-4: oklch(0.619 0.118 165.491);
  --chart-5: oklch(0.557 0.102 80.528);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.979 0.003 84.559);
  --muted: oklch(0.283 0.02 172.269);
  --muted-foreground: oklch(0.705 0.035 173.076);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.979 0.003 84.559);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.979 0.003 84.559);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.552 0.099 80.953);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.583 0.111 165.583);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.421 0.173 311.577);
  --accent-foreground: oklch(0.951 0.023 314.707);
  --destructive: oklch(0.591 0.214 32.805);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.552 0.099 80.953);
  --chart-1: oklch(0.552 0.099 80.953);
  --chart-2: oklch(0.583 0.111 165.583);
  --chart-3: oklch(0.421 0.173 311.577);
  --chart-4: oklch(0.619 0.118 165.491);
  --chart-5: oklch(0.557 0.102 80.528);
}