Acceptable for shadcn/ui

Acceptable is a shadcn/ui theme built around a vivid purple primary color (#cd3eea) with muted light purple accents (#eae5eb). The light mode uses a neutral background (#fbf8fc). Dark mode keeps the vivid purple primary (#cd3eea) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbf8fcghostwhite
#000000black
Foreground
#0b030dblack
#faf9fbghostwhite
Card
#f9f5faghostwhite
#030303black
Card foreground
#070208black
#fdfcfdwhite
Popover
#fbf8fcghostwhite
#000000black
Popover foreground
#0b030dblack
#faf9fbghostwhite
Primary
#cd3eeamediumorchid
#cd3eeamediumorchid
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#eae5eblavender
#262027darkslategray
Secondary foreground
#554659darkslategray
#c1b6c3silver
Muted
#f1e7f3lavender
#160c18black
Muted foreground
#443a45darkslategray
#c3bac5silver
Accent
#eae5eblavender
#262027darkslategray
Accent foreground
#554659darkslategray
#c1b6c3silver
Destructive
#bd2d14firebrick
#d93417firebrick
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cd3eeamediumorchid
#cd3eeamediumorchid

Contrast

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

Light mode
Text on background19.30:1AAA
Text on card19.02:1AAA
Primary button3.83:1AA Large
Secondary button7.03:1AAA
Muted text9.03:1AAA
Accent7.03:1AAA
Destructive5.90:1AA
Dark mode
Text on background20.00:1AAA
Text on card20.20:1AAA
Primary button3.83:1AA Large
Secondary button8.13:1AAA
Muted text10.14:1AAA
Accent8.13:1AAA
Destructive4.71:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.006 320.541);
  --foreground: oklch(0.12 0.033 322.306);
  --muted: oklch(0.94 0.019 320.562);
  --muted-foreground: oklch(0.363 0.023 320.627);
  --popover: oklch(0.983 0.006 320.541);
  --popover-foreground: oklch(0.12 0.033 322.306);
  --card: oklch(0.974 0.009 320.545);
  --card-foreground: oklch(0.105 0.029 322.731);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.641 0.258 320.319);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.928 0.009 320.546);
  --secondary-foreground: oklch(0.416 0.037 320.661);
  --accent: oklch(0.928 0.009 320.546);
  --accent-foreground: oklch(0.416 0.037 320.661);
  --destructive: oklch(0.525 0.184 32.213);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.641 0.258 320.319);
  --chart-1: oklch(0.641 0.258 320.319);
  --chart-2: oklch(0.928 0.009 320.546);
  --chart-3: oklch(0.928 0.009 320.546);
  --chart-4: oklch(0.952 0.006 320.541);
  --chart-5: oklch(0.643 0.265 320.252);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.984 0.002 320.535);
  --muted: oklch(0.174 0.028 320.738);
  --muted-foreground: oklch(0.799 0.019 320.568);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.984 0.002 320.535);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.992 0.001 320.533);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.641 0.258 320.319);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.254 0.016 320.625);
  --secondary-foreground: oklch(0.79 0.022 320.575);
  --accent: oklch(0.254 0.016 320.625);
  --accent-foreground: oklch(0.79 0.022 320.575);
  --destructive: oklch(0.58 0.205 32.172);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.641 0.258 320.319);
  --chart-1: oklch(0.641 0.258 320.319);
  --chart-2: oklch(0.254 0.016 320.625);
  --chart-3: oklch(0.254 0.016 320.625);
  --chart-4: oklch(0.284 0.019 320.63);
  --chart-5: oklch(0.643 0.265 320.252);
}