Pleasant for shadcn/ui

Pleasant is a shadcn/ui theme built around a near-black primary color (#000000) with near-white accents (#e9e7e7). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#000000) on a neutral background (#080303).

Color palette

TokenLightDark
Background
#ffffffwhite
#080303black
Foreground
#080202black
#fdfcfcsnow
Card
#fcfcfcsnow
#0b0404black
Card foreground
#040101black
#ffffffwhite
Popover
#ffffffwhite
#080303black
Popover foreground
#080202black
#fdfcfcsnow
Primary
#000000black
#000000black
Primary foreground
#999999darkgray
#999999darkgray
Secondary
#e9e7e7linen
#352c2cdarkslategray
Secondary foreground
#544a4adarkslategray
#cfc4c4silver
Muted
#f2e8e8linen
#170d0dblack
Muted foreground
#484747darkslategray
#b8b7b7silver
Accent
#e9e7e7linen
#352c2cdarkslategray
Accent foreground
#544a4adarkslategray
#cfc4c4silver
Destructive
#8d2007darkred
#f2370dorangered
Destructive foreground
#fcd3cabisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#000000black
#000000black

Contrast

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

Light mode
Text on background20.59:1AAA
Text on card20.34:1AAA
Primary button7.37:1AAA
Secondary button6.93:1AA
Muted text7.72:1AAA
Accent6.93:1AA
Destructive6.56:1AA
Dark mode
Text on background20.05:1AAA
Text on card20.31:1AAA
Primary button7.37:1AAA
Secondary button8.00:1AAA
Muted text9.54:1AAA
Accent8.00:1AAA
Destructive3.93:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.105 0.016 20.215);
  --muted: oklch(0.94 0.01 17.343);
  --muted-foreground: oklch(0.398 0.002 17.237);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.105 0.016 20.215);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.083 0.013 20.215);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.929 0.003 17.211);
  --secondary-foreground: oklch(0.42 0.013 17.672);
  --accent: oklch(0.929 0.003 17.211);
  --accent-foreground: oklch(0.42 0.013 17.672);
  --destructive: oklch(0.422 0.148 33.317);
  --destructive-foreground: oklch(0.899 0.048 32.774);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.929 0.003 17.211);
  --chart-3: oklch(0.929 0.003 17.211);
  --chart-4: oklch(0.953 0.002 17.192);
  --chart-5: oklch(0 0 0);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.015 19.87);
  --foreground: oklch(0.991 0.002 17.192);
  --muted: oklch(0.173 0.017 18.918);
  --muted-foreground: oklch(0.78 0.002 17.192);
  --popover: oklch(0.106 0.015 19.87);
  --popover-foreground: oklch(0.991 0.002 17.192);
  --card: oklch(0.121 0.017 19.883);
  --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 0 0);
  --primary-foreground: oklch(0.683 0 180);
  --secondary: oklch(0.302 0.014 17.971);
  --secondary-foreground: oklch(0.829 0.012 17.399);
  --accent: oklch(0.302 0.014 17.971);
  --accent-foreground: oklch(0.829 0.012 17.399);
  --destructive: oklch(0.627 0.227 32.824);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0 0 0);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.302 0.014 17.971);
  --chart-3: oklch(0.302 0.014 17.971);
  --chart-4: oklch(0.331 0.016 18);
  --chart-5: oklch(0 0 0);
}