Winner for shadcn/ui

Winner is a shadcn/ui theme built around a muted teal primary color (#59786c) with muted pink accents (#785965). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#59786c) on a neutral background (#040705).

Color palette

TokenLightDark
Background
#ffffffwhite
#040705black
Foreground
#020806black
#ffffffwhite
Card
#ffffffwhite
#040705black
Card foreground
#020806black
#ffffffwhite
Popover
#ffffffwhite
#040705black
Popover foreground
#020806black
#ffffffwhite
Primary
#59786cdimgray
#59786cdimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#785965dimgray
#785965dimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4d3dagainsboro
#2c1b22black
Muted foreground
#5f4f55dimgray
#b0a0a7darkgray
Accent
#785965dimgray
#785965dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d04e16chocolate
#e75618chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#59786cdimgray
#59786cdimgray

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button4.84:1AA
Secondary button6.14:1AA
Muted text5.34:1AA
Accent6.14:1AA
Destructive4.40:1AA Large
Dark mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button4.84:1AA
Secondary button6.14:1AA
Muted text6.53:1AA
Accent6.14:1AA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.125 0.017 170.923);
  --muted: oklch(0.882 0.02 351.259);
  --muted-foreground: oklch(0.445 0.023 352.028);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.125 0.017 170.923);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.125 0.017 170.923);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.545 0.041 168.25);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.5 0.045 353.036);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.5 0.045 353.036);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.592 0.176 39.871);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.545 0.041 168.25);
  --chart-1: oklch(0.545 0.041 168.25);
  --chart-2: oklch(0.5 0.045 353.036);
  --chart-3: oklch(0.5 0.045 353.036);
  --chart-4: oklch(0.526 0.048 353.056);
  --chart-5: oklch(0.551 0.049 167.778);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.009 170.78);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.248 0.028 353.649);
  --muted-foreground: oklch(0.723 0.02 351.397);
  --popover: oklch(0.12 0.009 170.78);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.12 0.009 170.78);
  --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.545 0.041 168.25);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.5 0.045 353.036);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.5 0.045 353.036);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.639 0.191 39.742);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.545 0.041 168.25);
  --chart-1: oklch(0.545 0.041 168.25);
  --chart-2: oklch(0.5 0.045 353.036);
  --chart-3: oklch(0.5 0.045 353.036);
  --chart-4: oklch(0.526 0.048 353.056);
  --chart-5: oklch(0.551 0.049 167.778);
}