Unacceptable for shadcn/ui

Unacceptable is a shadcn/ui theme built around a neutral gray primary color (#9c9c9c) with neutral gray accents (#9c9c9c). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the neutral gray primary (#9c9c9c) on a neutral background (#080303).

Color palette

TokenLightDark
Background
#fcf8f8snow
#080303black
Foreground
#090101black
#f9f5f5whitesmoke
Card
#fcf8f8snow
#080303black
Card foreground
#090101black
#f9f5f5whitesmoke
Popover
#fcf8f8snow
#080303black
Popover foreground
#090101black
#f9f5f5whitesmoke
Primary
#9c9c9cdarkgray
#9c9c9cdarkgray
Primary foreground
#030303black
#030303black
Secondary
#9c9c9cdarkgray
#9c9c9cdarkgray
Secondary foreground
#030303black
#030303black
Muted
#e8d9d9gainsboro
#261717black
Muted foreground
#4c3d3ddarkslategray
#c2b3b3silver
Accent
#9c9c9cdarkgray
#9c9c9cdarkgray
Accent foreground
#030303black
#030303black
Destructive
#722803saddlebrown
#fa7533tomato
Destructive foreground
#fdc6aanavajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9c9c9cdarkgray
#9c9c9cdarkgray

Contrast

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

Light mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button7.47:1AAA
Secondary button7.47:1AAA
Muted text7.51:1AAA
Accent7.47:1AAA
Destructive6.82:1AA
Dark mode
Text on background18.98:1AAA
Text on card18.98:1AAA
Primary button7.47:1AAA
Secondary button7.47:1AAA
Muted text8.52:1AAA
Accent7.47:1AAA
Destructive7.66:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.005 17.237);
  --foreground: oklch(0.1 0.024 22.486);
  --muted: oklch(0.897 0.016 17.459);
  --muted-foreground: oklch(0.377 0.021 18.136);
  --popover: oklch(0.982 0.005 17.237);
  --popover-foreground: oklch(0.1 0.024 22.486);
  --card: oklch(0.982 0.005 17.237);
  --card-foreground: oklch(0.1 0.024 22.486);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.691 0 180);
  --primary-foreground: oklch(0.092 0 180);
  --secondary: oklch(0.691 0 180);
  --secondary-foreground: oklch(0.092 0 180);
  --accent: oklch(0.691 0 180);
  --accent-foreground: oklch(0.092 0 180);
  --destructive: oklch(0.383 0.113 41.779);
  --destructive-foreground: oklch(0.868 0.073 47.859);
  --ring: oklch(0.691 0 180);
  --chart-1: oklch(0.691 0 180);
  --chart-2: oklch(0.691 0 180);
  --chart-3: oklch(0.691 0 180);
  --chart-4: oklch(0.716 0 165.964);
  --chart-5: oklch(0.687 0.007 17.327);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.016 20.039);
  --foreground: oklch(0.974 0.004 17.227);
  --muted: oklch(0.225 0.024 19.108);
  --muted-foreground: oklch(0.778 0.017 17.532);
  --popover: oklch(0.105 0.016 20.039);
  --popover-foreground: oklch(0.974 0.004 17.227);
  --card: oklch(0.105 0.016 20.039);
  --card-foreground: oklch(0.974 0.004 17.227);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.691 0 180);
  --primary-foreground: oklch(0.092 0 180);
  --secondary: oklch(0.691 0 180);
  --secondary-foreground: oklch(0.092 0 180);
  --accent: oklch(0.691 0 180);
  --accent-foreground: oklch(0.092 0 180);
  --destructive: oklch(0.711 0.179 44.186);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.691 0 180);
  --chart-1: oklch(0.691 0 180);
  --chart-2: oklch(0.691 0 180);
  --chart-3: oklch(0.691 0 180);
  --chart-4: oklch(0.716 0 165.964);
  --chart-5: oklch(0.687 0.007 17.327);
}