Unripe for shadcn/ui

Unripe is a shadcn/ui theme built around a muted purple primary color (#8a788c) with muted pink accents (#8c7884). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the muted purple primary (#8a788c) on a purple-tinted background (#0e050f).

Color palette

TokenLightDark
Background
#fdfbfdsnow
#0e050fblack
Foreground
#140416black
#ffffffwhite
Card
#fdfbfdsnow
#0e050fblack
Card foreground
#140416black
#ffffffwhite
Popover
#fdfbfdsnow
#0e050fblack
Popover foreground
#140416black
#ffffffwhite
Primary
#8a788cgray
#8a788cgray
Primary foreground
#000000black
#000000black
Secondary
#80788cgray
#80788cgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d9d0e7gainsboro
#21182fblack
Muted foreground
#645d6fdimgray
#9790a2darkgray
Accent
#8c7884gray
#8c7884gray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#79270bsaddlebrown
#ee6f44tomato
Destructive foreground
#f9ccbepeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8a788cgray
#8a788cgray

Contrast

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

Light mode
Text on background19.33:1AAA
Text on card19.33:1AAA
Primary button5.14:1AA
Secondary button4.21:1AA Large
Muted text4.21:1AA Large
Accent4.08:1AA Large
Destructive6.82:1AA
Dark mode
Text on background20.01:1AAA
Text on card20.01:1AAA
Primary button5.14:1AA
Secondary button4.21:1AA Large
Muted text5.51:1AA
Accent4.08:1AA Large
Destructive6.96:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.003 322.64);
  --foreground: oklch(0.148 0.046 323.92);
  --muted: oklch(0.871 0.034 303.792);
  --muted-foreground: oklch(0.491 0.03 303.463);
  --popover: oklch(0.991 0.003 322.64);
  --popover-foreground: oklch(0.148 0.046 323.92);
  --card: oklch(0.991 0.003 322.64);
  --card-foreground: oklch(0.148 0.046 323.92);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.596 0.037 322.868);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.587 0.031 303.577);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.595 0.03 341.345);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.395 0.121 37.246);
  --destructive-foreground: oklch(0.881 0.055 39.259);
  --ring: oklch(0.596 0.037 322.868);
  --chart-1: oklch(0.596 0.037 322.868);
  --chart-2: oklch(0.587 0.031 303.577);
  --chart-3: oklch(0.595 0.03 341.345);
  --chart-4: oklch(0.614 0.029 303.663);
  --chart-5: oklch(0.593 0.05 322.955);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.027 323.615);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.233 0.046 301.367);
  --muted-foreground: oklch(0.665 0.028 303.742);
  --popover: oklch(0.138 0.027 323.615);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.027 323.615);
  --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.596 0.037 322.868);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.587 0.031 303.577);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.595 0.03 341.345);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.686 0.167 38.686);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.596 0.037 322.868);
  --chart-1: oklch(0.596 0.037 322.868);
  --chart-2: oklch(0.587 0.031 303.577);
  --chart-3: oklch(0.595 0.03 341.345);
  --chart-4: oklch(0.614 0.029 303.663);
  --chart-5: oklch(0.593 0.05 322.955);
}