Scholarship for shadcn/ui

Scholarship is a shadcn/ui theme built around a vivid light purple primary color (#f89bf5) with muted light purple accents (#dccbdb). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid light purple primary (#f89bf5) on a purple-tinted background (#0e070e).

Color palette

TokenLightDark
Background
#fefbfewhite
#0e070eblack
Foreground
#090109black
#fdfbfdsnow
Card
#fefbfewhite
#0e070eblack
Card foreground
#090109black
#fdfbfdsnow
Popover
#fefbfewhite
#0e070eblack
Popover foreground
#090109black
#fdfbfdsnow
Primary
#f89bf5violet
#f89bf5violet
Primary foreground
#5b0658indigo
#5b0658indigo
Secondary
#dccbdbthistle
#231f23black
Secondary foreground
#463045darkslategray
#beb7bdsilver
Muted
#f1eff1whitesmoke
#100e10black
Muted foreground
#464346darkslategray
#bcb9bbsilver
Accent
#dccbdbthistle
#231f23black
Accent foreground
#463045darkslategray
#beb7bdsilver
Destructive
#8a1f0fdarkred
#e9482ftomato
Destructive foreground
#fad6d1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f89bf5violet
#f89bf5violet

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card20.03:1AAA
Primary button6.81:1AA
Secondary button7.71:1AAA
Muted text8.51:1AAA
Accent7.71:1AAA
Destructive6.80:1AA
Dark mode
Text on background19.36:1AAA
Text on card19.36:1AAA
Primary button6.81:1AA
Secondary button8.25:1AAA
Muted text9.85:1AAA
Accent8.25:1AAA
Destructive3.85:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 326.584);
  --foreground: oklch(0.105 0.036 328.64);
  --muted: oklch(0.953 0.003 326.569);
  --muted-foreground: oklch(0.388 0.006 326.668);
  --popover: oklch(0.991 0.005 326.584);
  --popover-foreground: oklch(0.105 0.036 328.64);
  --card: oklch(0.991 0.005 326.584);
  --card-foreground: oklch(0.105 0.036 328.64);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.813 0.158 328.078);
  --primary-foreground: oklch(0.332 0.144 329.864);
  --secondary: oklch(0.862 0.028 326.82);
  --secondary-foreground: oklch(0.342 0.047 327.667);
  --accent: oklch(0.862 0.028 326.82);
  --accent-foreground: oklch(0.342 0.047 327.667);
  --destructive: oklch(0.418 0.145 31.648);
  --destructive-foreground: oklch(0.906 0.041 28.229);
  --ring: oklch(0.813 0.158 328.078);
  --chart-1: oklch(0.813 0.158 328.078);
  --chart-2: oklch(0.862 0.028 326.82);
  --chart-3: oklch(0.862 0.028 326.82);
  --chart-4: oklch(0.886 0.023 326.763);
  --chart-5: oklch(0.813 0.163 328.124);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.02 327.632);
  --foreground: oklch(0.992 0.003 326.569);
  --muted: oklch(0.169 0.005 326.78);
  --muted-foreground: oklch(0.788 0.005 326.594);
  --popover: oklch(0.141 0.02 327.632);
  --popover-foreground: oklch(0.992 0.003 326.569);
  --card: oklch(0.141 0.02 327.632);
  --card-foreground: oklch(0.992 0.003 326.569);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.813 0.158 328.078);
  --primary-foreground: oklch(0.332 0.144 329.864);
  --secondary: oklch(0.246 0.008 326.809);
  --secondary-foreground: oklch(0.786 0.012 326.673);
  --accent: oklch(0.246 0.008 326.809);
  --accent-foreground: oklch(0.786 0.012 326.673);
  --destructive: oklch(0.629 0.202 31.599);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.813 0.158 328.078);
  --chart-1: oklch(0.813 0.158 328.078);
  --chart-2: oklch(0.246 0.008 326.809);
  --chart-3: oklch(0.246 0.008 326.809);
  --chart-4: oklch(0.278 0.009 326.825);
  --chart-5: oklch(0.813 0.163 328.124);
}