Acceptable for shadcn/ui

Acceptable is a shadcn/ui theme built around a deep purple primary color (#4f0d42) with neutral gray accents (#e0dcdf). The light mode uses a neutral background (#fefbfd). Dark mode keeps the deep purple primary (#4f0d42) on a neutral background (#080207).

Color palette

TokenLightDark
Background
#fefbfdsnow
#080207black
Foreground
#000000black
#ffffffwhite
Card
#fdf7fcsnow
#0c040ablack
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfdsnow
#080207black
Popover foreground
#000000black
#ffffffwhite
Primary
#4f0d42indigo
#4f0d42indigo
Primary foreground
#ef9fdfplum
#ef9fdfplum
Secondary
#e0dcdfgainsboro
#2a282adarkslategray
Secondary foreground
#484147darkslategray
#c4c0c3silver
Muted
#eae6e9lavender
#191518black
Muted foreground
#494648darkslategray
#b9b6b8silver
Accent
#e0dcdfgainsboro
#2a282adarkslategray
Accent foreground
#484147darkslategray
#c4c0c3silver
Destructive
#9c2007firebrick
#f43a15orangered
Destructive foreground
#fdded8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4f0d42indigo
#4f0d42indigo

Contrast

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

Light mode
Text on background20.42:1AAA
Text on card19.85:1AAA
Primary button7.29:1AAA
Secondary button7.29:1AAA
Muted text7.54:1AAA
Accent7.29:1AAA
Destructive6.33:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.28:1AAA
Primary button7.29:1AAA
Secondary button8.16:1AAA
Muted text8.99:1AAA
Accent8.16:1AAA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 332.075);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.929 0.006 332.105);
  --muted-foreground: oklch(0.398 0.005 332.204);
  --popover: oklch(0.991 0.005 332.075);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.009 332.146);
  --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.301 0.114 337.625);
  --primary-foreground: oklch(0.801 0.126 334.177);
  --secondary: oklch(0.898 0.005 332.089);
  --secondary-foreground: oklch(0.386 0.013 332.497);
  --accent: oklch(0.898 0.005 332.089);
  --accent-foreground: oklch(0.386 0.013 332.497);
  --destructive: oklch(0.452 0.163 32.532);
  --destructive-foreground: oklch(0.925 0.035 31.163);
  --ring: oklch(0.301 0.114 337.625);
  --chart-1: oklch(0.301 0.114 337.625);
  --chart-2: oklch(0.898 0.005 332.089);
  --chart-3: oklch(0.898 0.005 332.089);
  --chart-4: oklch(0.922 0.004 332.068);
  --chart-5: oklch(0.303 0.117 337.818);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.022 332.867);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.202 0.009 332.665);
  --muted-foreground: oklch(0.78 0.005 332.092);
  --popover: oklch(0.108 0.022 332.867);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.025 333.131);
  --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.301 0.114 337.625);
  --primary-foreground: oklch(0.801 0.126 334.177);
  --secondary: oklch(0.278 0.005 332.271);
  --secondary-foreground: oklch(0.812 0.006 332.111);
  --accent: oklch(0.278 0.005 332.271);
  --accent-foreground: oklch(0.812 0.006 332.111);
  --destructive: oklch(0.633 0.225 32.611);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.301 0.114 337.625);
  --chart-1: oklch(0.301 0.114 337.625);
  --chart-2: oklch(0.278 0.005 332.271);
  --chart-3: oklch(0.278 0.005 332.271);
  --chart-4: oklch(0.309 0.006 332.282);
  --chart-5: oklch(0.303 0.117 337.818);
}