Acceptance for shadcn/ui

Acceptance is a shadcn/ui theme built around a deep violet primary color (#220830) with muted light violet accents (#ebe9ec). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep violet primary (#220830) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#030104black
#fdfcfdwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#220830black
#220830black
Primary foreground
#c581eaorchid
#c581eaorchid
Secondary
#ebe9eclavender
#2c2a2cdarkslategray
Secondary foreground
#544a59darkslategray
#c5c3c6silver
Muted
#eeebefwhitesmoke
#131014black
Muted foreground
#676468dimgray
#9a979bdarkgray
Accent
#ebe9eclavender
#2c2a2cdarkslategray
Accent foreground
#544a59darkslategray
#c5c3c6silver
Destructive
#611305maroon
#f55538tomato
Destructive foreground
#faac9elightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#220830black
#220830black

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.54:1AAA
Primary button6.72:1AA
Secondary button6.95:1AA
Muted text4.93:1AA
Accent6.95:1AA
Destructive7.15:1AAA
Dark mode
Text on background20.51:1AAA
Text on card20.67:1AAA
Primary button6.72:1AA
Secondary button8.10:1AAA
Muted text6.56:1AA
Accent8.10:1AAA
Destructive6.21:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.082 0.019 316.207);
  --muted: oklch(0.943 0.007 314.179);
  --muted-foreground: oklch(0.507 0.007 314.142);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.204 0.078 311.231);
  --primary-foreground: oklch(0.712 0.163 312.836);
  --secondary: oklch(0.936 0.006 314.187);
  --secondary-foreground: oklch(0.425 0.027 313.873);
  --accent: oklch(0.936 0.006 314.187);
  --accent-foreground: oklch(0.425 0.027 313.873);
  --destructive: oklch(0.324 0.113 32.54);
  --destructive-foreground: oklch(0.816 0.095 30.32);
  --ring: oklch(0.204 0.078 311.231);
  --chart-1: oklch(0.204 0.078 311.231);
  --chart-2: oklch(0.936 0.006 314.187);
  --chart-3: oklch(0.936 0.006 314.187);
  --chart-4: oklch(0.96 0.003 314.2);
  --chart-5: oklch(0.204 0.08 311.068);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.002 314.207);
  --muted: oklch(0.177 0.011 313.892);
  --muted-foreground: oklch(0.68 0.007 314.166);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.204 0.078 311.231);
  --primary-foreground: oklch(0.712 0.163 312.836);
  --secondary: oklch(0.289 0.003 314.153);
  --secondary-foreground: oklch(0.82 0.004 314.195);
  --accent: oklch(0.289 0.003 314.153);
  --accent-foreground: oklch(0.82 0.004 314.195);
  --destructive: oklch(0.662 0.201 32.34);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.204 0.078 311.231);
  --chart-1: oklch(0.204 0.078 311.231);
  --chart-2: oklch(0.289 0.003 314.153);
  --chart-3: oklch(0.289 0.003 314.153);
  --chart-4: oklch(0.319 0.004 314.15);
  --chart-5: oklch(0.204 0.08 311.068);
}