Simplicity for shadcn/ui

Simplicity is a shadcn/ui theme built around a pink primary color (#bf2b5a) with muted light pink accents (#e1dbdd). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#bf2b5a) on a pink-tinted background (#0c0306).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0c0306black
Foreground
#040102black
#ffffffwhite
Card
#fcf7f9snow
#100408black
Card foreground
#000000black
#ffffffwhite
Popover
#fefbfcsnow
#0c0306black
Popover foreground
#040102black
#ffffffwhite
Primary
#bf2b5acrimson
#bf2b5acrimson
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ebeaealinen
#312126darkslategray
Secondary foreground
#544f51darkslategray
#cdb6besilver
Muted
#e7d0d7gainsboro
#2f181fblack
Muted foreground
#645459dimgray
#ab9ba0darkgray
Accent
#e1dbddgainsboro
#54313cdarkslategray
Accent foreground
#4c3e42darkslategray
#e5d2d8gainsboro
Destructive
#832b0bsaddlebrown
#eb551echocolate
Destructive foreground
#fad4c7peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bf2b5acrimson
#bf2b5acrimson

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card19.87:1AAA
Primary button5.64:1AA
Secondary button6.69:1AA
Muted text4.85:1AA
Accent7.38:1AAA
Destructive6.57:1AA
Dark mode
Text on background20.33:1AAA
Text on card20.10:1AAA
Primary button5.64:1AA
Secondary button8.02:1AAA
Muted text6.22:1AA
Accent7.74:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 355.7);
  --foreground: oklch(0.083 0.016 355.276);
  --muted: oklch(0.878 0.028 356.519);
  --muted-foreground: oklch(0.462 0.023 357.02);
  --popover: oklch(0.991 0.003 355.7);
  --popover-foreground: oklch(0.083 0.016 355.276);
  --card: oklch(0.982 0.006 355.787);
  --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.538 0.185 7.628);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.938 0.001 355.659);
  --secondary-foreground: oklch(0.433 0.007 356.071);
  --accent: oklch(0.896 0.008 355.865);
  --accent-foreground: oklch(0.38 0.02 357.111);
  --destructive: oklch(0.419 0.128 38.039);
  --destructive-foreground: oklch(0.899 0.046 41);
  --ring: oklch(0.538 0.185 7.628);
  --chart-1: oklch(0.538 0.185 7.628);
  --chart-2: oklch(0.938 0.001 355.659);
  --chart-3: oklch(0.896 0.008 355.865);
  --chart-4: oklch(0.961 0.001 355.642);
  --chart-5: oklch(0.541 0.191 8.332);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.022 355.545);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.244 0.039 0.063);
  --muted-foreground: oklch(0.705 0.021 356.449);
  --popover: oklch(0.121 0.022 355.545);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.134 0.026 357.031);
  --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.538 0.185 7.628);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.269 0.025 358.196);
  --secondary-foreground: oklch(0.799 0.028 356.617);
  --accent: oklch(0.36 0.052 359.616);
  --accent-foreground: oklch(0.881 0.022 356.326);
  --destructive: oklch(0.645 0.196 38.05);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.538 0.185 7.628);
  --chart-1: oklch(0.538 0.185 7.628);
  --chart-2: oklch(0.269 0.025 358.196);
  --chart-3: oklch(0.36 0.052 359.616);
  --chart-4: oklch(0.298 0.029 358.309);
  --chart-5: oklch(0.541 0.191 8.332);
}