Champion for shadcn/ui

Champion is a shadcn/ui theme built around a near-white primary color (#faf5ff) with near-white accents (#fff5fe). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the near-white primary (#faf5ff) on a violet-tinted background (#08050b).

Color palette

TokenLightDark
Background
#fdfbfewhite
#08050bblack
Foreground
#030104black
#fdfcfdwhite
Card
#fdfbfewhite
#08050bblack
Card foreground
#030104black
#fdfcfdwhite
Popover
#fdfbfewhite
#08050bblack
Popover foreground
#030104black
#fdfcfdwhite
Primary
#faf5ffghostwhite
#faf5ffghostwhite
Primary foreground
#6707bbdarkviolet
#6707bbdarkviolet
Secondary
#f5f5ffghostwhite
#f5f5ffghostwhite
Secondary foreground
#3730f8royalblue
#3730f8royalblue
Muted
#efeff6whitesmoke
#090910black
Muted foreground
#626165dimgray
#9a9a9edarkgray
Accent
#fff5fesnow
#fff5fesnow
Accent foreground
#590356indigo
#590356indigo
Destructive
#813508saddlebrown
#e15c0echocolate
Destructive foreground
#fbd6c1peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#faf5ffghostwhite
#faf5ffghostwhite

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card20.18:1AAA
Primary button8.42:1AAA
Secondary button6.60:1AA
Muted text5.35:1AA
Accent12.56:1AAA
Destructive6.32:1AA
Dark mode
Text on background19.83:1AAA
Text on card19.83:1AAA
Primary button8.42:1AAA
Secondary button6.60:1AA
Muted text7.06:1AAA
Accent12.56:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.004 309.743);
  --foreground: oklch(0.08 0.02 311.743);
  --muted: oklch(0.953 0.01 287.754);
  --muted-foreground: oklch(0.496 0.006 287.705);
  --popover: oklch(0.99 0.004 309.743);
  --popover-foreground: oklch(0.08 0.02 311.743);
  --card: oklch(0.99 0.004 309.743);
  --card-foreground: oklch(0.08 0.02 311.743);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.977 0.014 309.647);
  --primary-foreground: oklch(0.436 0.231 298.378);
  --secondary: oklch(0.974 0.013 287.699);
  --secondary-foreground: oklch(0.488 0.276 271.117);
  --accent: oklch(0.981 0.016 326.679);
  --accent-foreground: oklch(0.325 0.144 329.944);
  --destructive: oklch(0.428 0.118 44.608);
  --destructive-foreground: oklch(0.902 0.05 51.866);
  --ring: oklch(0.977 0.014 309.647);
  --chart-1: oklch(0.977 0.014 309.647);
  --chart-2: oklch(0.974 0.013 287.699);
  --chart-3: oklch(0.981 0.016 326.679);
  --chart-4: oklch(1.013 0.006 108.052);
  --chart-5: oklch(0.977 0.014 309.642);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.018 310.909);
  --foreground: oklch(0.991 0.003 309.759);
  --muted: oklch(0.145 0.015 285.89);
  --muted-foreground: oklch(0.686 0.006 287.784);
  --popover: oklch(0.122 0.018 310.909);
  --popover-foreground: oklch(0.991 0.003 309.759);
  --card: oklch(0.122 0.018 310.909);
  --card-foreground: oklch(0.991 0.003 309.759);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.977 0.014 309.647);
  --primary-foreground: oklch(0.436 0.231 298.378);
  --secondary: oklch(0.974 0.013 287.699);
  --secondary-foreground: oklch(0.488 0.276 271.117);
  --accent: oklch(0.981 0.016 326.679);
  --accent-foreground: oklch(0.325 0.144 329.944);
  --destructive: oklch(0.637 0.183 43.374);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.977 0.014 309.647);
  --chart-1: oklch(0.977 0.014 309.647);
  --chart-2: oklch(0.974 0.013 287.699);
  --chart-3: oklch(0.981 0.016 326.679);
  --chart-4: oklch(1.013 0.006 108.052);
  --chart-5: oklch(0.977 0.014 309.642);
}