Pleasant for shadcn/ui

Pleasant is a shadcn/ui theme built around a muted green primary color (#78917c) with neutral gray accents (#d6d6d6). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the muted green primary (#78917c) on a green-tinted background (#070e08).

Color palette

TokenLightDark
Background
#f8fcf8mintcream
#070e08black
Foreground
#061308black
#f7f8f7whitesmoke
Card
#f8fcf8mintcream
#070e08black
Card foreground
#061308black
#f7f8f7whitesmoke
Popover
#f8fcf8mintcream
#070e08black
Popover foreground
#061308black
#f7f8f7whitesmoke
Primary
#78917cgray
#78917cgray
Primary foreground
#000000black
#000000black
Secondary
#d6d6d6lightgrey
#1c211dblack
Secondary foreground
#3d3d3ddarkslategray
#b1beb3silver
Muted
#ddd9d9gainsboro
#222622black
Muted foreground
#5d5656dimgray
#a2a9a3darkgray
Accent
#d6d6d6lightgrey
#1c211dblack
Accent foreground
#3d3d3ddarkslategray
#b1beb3silver
Destructive
#973511saddlebrown
#dc4d18chocolate
Destructive foreground
#fbe6dfmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#78917cgray
#78917cgray

Contrast

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

Light mode
Text on background18.35:1AAA
Text on card18.35:1AAA
Primary button6.13:1AA
Secondary button7.48:1AAA
Muted text5.12:1AA
Accent7.48:1AAA
Destructive6.16:1AA
Dark mode
Text on background18.38:1AAA
Text on card18.38:1AAA
Primary button6.13:1AA
Secondary button8.45:1AAA
Muted text6.40:1AA
Accent8.45:1AAA
Destructive4.10:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.006 149.603);
  --foreground: oklch(0.171 0.03 147.746);
  --muted: oklch(0.889 0.005 17.245);
  --muted-foreground: oklch(0.459 0.009 17.498);
  --popover: oklch(0.987 0.006 149.603);
  --popover-foreground: oklch(0.171 0.03 147.746);
  --card: oklch(0.987 0.006 149.603);
  --card-foreground: oklch(0.171 0.03 147.746);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.631 0.042 148.823);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.877 0 180);
  --secondary-foreground: oklch(0.361 0 180);
  --accent: oklch(0.877 0 180);
  --accent-foreground: oklch(0.361 0 180);
  --destructive: oklch(0.466 0.14 38.247);
  --destructive-foreground: oklch(0.941 0.025 41.12);
  --ring: oklch(0.631 0.042 148.823);
  --chart-1: oklch(0.631 0.042 148.823);
  --chart-2: oklch(0.877 0 180);
  --chart-3: oklch(0.877 0 180);
  --chart-4: oklch(0.9 0 188.746);
  --chart-5: oklch(0.636 0.054 148.565);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.017 148.747);
  --foreground: oklch(0.978 0.002 149.654);
  --muted: oklch(0.262 0.009 149.24);
  --muted-foreground: oklch(0.728 0.012 149.48);
  --popover: oklch(0.152 0.017 148.747);
  --popover-foreground: oklch(0.978 0.002 149.654);
  --card: oklch(0.152 0.017 148.747);
  --card-foreground: oklch(0.978 0.002 149.654);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.631 0.042 148.823);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.242 0.012 149.048);
  --secondary-foreground: oklch(0.788 0.021 149.349);
  --accent: oklch(0.242 0.012 149.048);
  --accent-foreground: oklch(0.788 0.021 149.349);
  --destructive: oklch(0.611 0.189 37.833);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.631 0.042 148.823);
  --chart-1: oklch(0.631 0.042 148.823);
  --chart-2: oklch(0.242 0.012 149.048);
  --chart-3: oklch(0.242 0.012 149.048);
  --chart-4: oklch(0.275 0.015 149.005);
  --chart-5: oklch(0.636 0.054 148.565);
}