Acceptable for shadcn/ui

Acceptable is a shadcn/ui theme built around a pink primary color (#d7a3b4) with teal accents (#a3d7c5). The light mode uses a neutral background (#fcf8f9). Dark mode keeps the pink primary (#d7a3b4) on a neutral background (#080204).

Color palette

TokenLightDark
Background
#fcf8f9snow
#080204black
Foreground
#090104black
#faf4f6whitesmoke
Card
#fbf4f6lavenderblush
#0c0406black
Card foreground
#040102black
#fcf8f9snow
Popover
#fbf4f6lavenderblush
#0c0406black
Popover foreground
#040102black
#fcf8f9snow
Primary
#d7a3b4silver
#d7a3b4silver
Primary foreground
#32161fblack
#32161fblack
Secondary
#a3d7c5lightsteelblue
#a3d7c5lightsteelblue
Secondary foreground
#163228darkslategray
#163228darkslategray
Muted
#e4f1edlavender
#0e1b17black
Muted foreground
#41534ddarkslategray
#acbeb8silver
Accent
#a3d7c5lightsteelblue
#a3d7c5lightsteelblue
Accent foreground
#163228darkslategray
#163228darkslategray
Destructive
#af460dsaddlebrown
#e45b11chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d7a3b4silver
#d7a3b4silver

Contrast

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

Light mode
Text on background19.53:1AAA
Text on card19.14:1AAA
Primary button7.68:1AAA
Secondary button8.57:1AAA
Muted text7.04:1AAA
Accent8.57:1AAA
Destructive5.65:1AA
Dark mode
Text on background18.91:1AAA
Text on card19.29:1AAA
Primary button7.68:1AAA
Secondary button8.57:1AAA
Muted text9.12:1AAA
Accent8.57:1AAA
Destructive3.62: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.982 0.006 354.75);
  --foreground: oklch(0.102 0.026 354.095);
  --muted: oklch(0.947 0.015 174.135);
  --muted-foreground: oklch(0.425 0.024 172.807);
  --popover: oklch(0.973 0.008 354.833);
  --popover-foreground: oklch(0.081 0.02 354.095);
  --card: oklch(0.973 0.008 354.833);
  --card-foreground: oklch(0.081 0.02 354.095);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.768 0.065 356.916);
  --primary-foreground: oklch(0.243 0.047 359.917);
  --secondary: oklch(0.837 0.059 172.341);
  --secondary-foreground: oklch(0.29 0.038 169.709);
  --accent: oklch(0.837 0.059 172.341);
  --accent-foreground: oklch(0.29 0.038 169.709);
  --destructive: oklch(0.529 0.151 42.925);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.768 0.065 356.916);
  --chart-1: oklch(0.768 0.065 356.916);
  --chart-2: oklch(0.837 0.059 172.341);
  --chart-3: oklch(0.837 0.059 172.341);
  --chart-4: oklch(0.855 0.052 172.67);
  --chart-5: oklch(0.766 0.07 357.1);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.018 354.249);
  --foreground: oklch(0.973 0.007 354.797);
  --muted: oklch(0.207 0.02 171.366);
  --muted-foreground: oklch(0.786 0.021 173.78);
  --popover: oklch(0.121 0.021 354.469);
  --popover-foreground: oklch(0.982 0.005 354.726);
  --card: oklch(0.121 0.021 354.469);
  --card-foreground: oklch(0.982 0.005 354.726);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.768 0.065 356.916);
  --primary-foreground: oklch(0.243 0.047 359.917);
  --secondary: oklch(0.837 0.059 172.341);
  --secondary-foreground: oklch(0.29 0.038 169.709);
  --accent: oklch(0.837 0.059 172.341);
  --accent-foreground: oklch(0.29 0.038 169.709);
  --destructive: oklch(0.64 0.185 42.459);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.768 0.065 356.916);
  --chart-1: oklch(0.768 0.065 356.916);
  --chart-2: oklch(0.837 0.059 172.341);
  --chart-3: oklch(0.837 0.059 172.341);
  --chart-4: oklch(0.855 0.052 172.67);
  --chart-5: oklch(0.766 0.07 357.1);
}