Acceptable for shadcn/ui

Acceptable is a shadcn/ui theme built around a neutral gray primary color (#d9d6db) with muted violet accents (#b6a4c6). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#d9d6db) on a neutral background (#050307).

Color palette

TokenLightDark
Background
#ffffffwhite
#050307black
Foreground
#08040cblack
#fcfbfdsnow
Card
#fcfcfcsnow
#08050ablack
Card foreground
#050208black
#ffffffwhite
Popover
#ffffffwhite
#050307black
Popover foreground
#08040cblack
#fcfbfdsnow
Primary
#d9d6dbgainsboro
#d9d6dbgainsboro
Primary foreground
#403b44darkslategray
#403b44darkslategray
Secondary
#ccc5d3thistle
#292929darkslategray
Secondary foreground
#332c3adarkslategray
#c2c2c2silver
Muted
#e1dce4gainsboro
#231b1bblack
Muted foreground
#574d60dimgray
#b29f9fdarkgray
Accent
#b6a4c6silver
#3c3434darkslategray
Accent foreground
#1c1623black
#d4cecelightgrey
Destructive
#9b310dsaddlebrown
#ed6335tomato
Destructive foreground
#fce6demistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d9d6dbgainsboro
#d9d6dbgainsboro

Contrast

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

Light mode
Text on background20.32:1AAA
Text on card20.17:1AAA
Primary button7.57:1AAA
Secondary button7.99:1AAA
Muted text5.91:1AA
Accent7.66:1AAA
Destructive6.18:1AA
Dark mode
Text on background19.87:1AAA
Text on card20.26:1AAA
Primary button7.57:1AAA
Secondary button8.18:1AAA
Muted text6.74:1AA
Accent7.78:1AAA
Destructive6.46:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.118 0.025 310.467);
  --muted: oklch(0.901 0.012 308.991);
  --muted-foreground: oklch(0.438 0.033 308.33);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.118 0.025 310.467);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.103 0.021 310.694);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.88 0.008 309.032);
  --primary-foreground: oklch(0.361 0.016 308.652);
  --secondary: oklch(0.833 0.021 308.859);
  --secondary-foreground: oklch(0.307 0.027 308.195);
  --accent: oklch(0.745 0.052 308.396);
  --accent-foreground: oklch(0.213 0.027 307.793);
  --destructive: oklch(0.467 0.147 36.841);
  --destructive-foreground: oklch(0.94 0.027 39.355);
  --ring: oklch(0.88 0.008 309.032);
  --chart-1: oklch(0.88 0.008 309.032);
  --chart-2: oklch(0.833 0.021 308.859);
  --chart-3: oklch(0.745 0.052 308.396);
  --chart-4: oklch(0.859 0.018 308.907);
  --chart-5: oklch(0.878 0.011 308.991);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.108 0.013 310.043);
  --foreground: oklch(0.991 0.003 309.096);
  --muted: oklch(0.23 0.013 18.109);
  --muted-foreground: oklch(0.718 0.022 17.686);
  --popover: oklch(0.108 0.013 310.043);
  --popover-foreground: oklch(0.991 0.003 309.096);
  --card: oklch(0.124 0.015 310.043);
  --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.88 0.008 309.032);
  --primary-foreground: oklch(0.361 0.016 308.652);
  --secondary: oklch(0.28 0 180);
  --secondary-foreground: oklch(0.813 0 165.964);
  --accent: oklch(0.334 0.011 17.727);
  --accent-foreground: oklch(0.856 0.007 17.296);
  --destructive: oklch(0.668 0.181 38.242);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.88 0.008 309.032);
  --chart-1: oklch(0.88 0.008 309.032);
  --chart-2: oklch(0.28 0 180);
  --chart-3: oklch(0.334 0.011 17.727);
  --chart-4: oklch(0.311 0 180);
  --chart-5: oklch(0.878 0.011 308.991);
}