Pleasure for shadcn/ui

Pleasure is a shadcn/ui theme built around a vivid green primary color (#51e63d) with vivid green accents (#3de67e). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid green primary (#51e63d) on a green-tinted background (#040c03).

Color palette

TokenLightDark
Background
#fbfefbwhite
#040c03black
Foreground
#020901black
#ffffffwhite
Card
#f8fdf7mintcream
#061005black
Card foreground
#010401black
#ffffffwhite
Popover
#fbfefbwhite
#040c03black
Popover foreground
#020901black
#ffffffwhite
Primary
#51e63dlimegreen
#51e63dlimegreen
Primary foreground
#124d0adarkgreen
#124d0adarkgreen
Secondary
#a5e63dyellowgreen
#a5e63dyellowgreen
Secondary foreground
#334d0adarkgreen
#334d0adarkgreen
Muted
#e5ebdbgainsboro
#1e2414black
Muted foreground
#5c634fdimgray
#a8b09cdarkgray
Accent
#3de67emediumseagreen
#3de67emediumseagreen
Accent foreground
#0a4d24darkgreen
#0a4d24darkgreen
Destructive
#8e140bdarkred
#ec2213red
Destructive foreground
#fbd3d0pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#51e63dlimegreen
#51e63dlimegreen

Contrast

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

Light mode
Text on background19.82:1AAA
Text on card19.94:1AAA
Primary button6.07:1AA
Secondary button6.32:1AA
Muted text5.15:1AA
Accent6.09:1AA
Destructive6.81:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.39:1AAA
Primary button6.07:1AA
Secondary button6.32:1AA
Muted text7.07:1AAA
Accent6.09:1AA
Destructive4.37:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 142.098);
  --foreground: oklch(0.125 0.029 139.917);
  --muted: oklch(0.932 0.023 124.014);
  --muted-foreground: oklch(0.487 0.032 124.63);
  --popover: oklch(0.994 0.004 142.098);
  --popover-foreground: oklch(0.125 0.029 139.917);
  --card: oklch(0.988 0.009 142.083);
  --card-foreground: oklch(0.099 0.023 139.917);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.814 0.24 141.473);
  --primary-foreground: oklch(0.368 0.113 141.539);
  --secondary: oklch(0.85 0.202 128.678);
  --secondary-foreground: oklch(0.384 0.095 129.154);
  --accent: oklch(0.817 0.198 151.363);
  --accent-foreground: oklch(0.369 0.094 150.674);
  --destructive: oklch(0.415 0.156 29.605);
  --destructive-foreground: oklch(0.9 0.046 22.851);
  --ring: oklch(0.814 0.24 141.473);
  --chart-1: oklch(0.814 0.24 141.473);
  --chart-2: oklch(0.85 0.202 128.678);
  --chart-3: oklch(0.817 0.198 151.363);
  --chart-4: oklch(0.859 0.193 128.133);
  --chart-5: oklch(0.821 0.246 141.497);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.026 140.449);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.25 0.031 125.644);
  --muted-foreground: oklch(0.744 0.029 124.219);
  --popover: oklch(0.141 0.026 140.449);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.158 0.03 140.65);
  --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.814 0.24 141.473);
  --primary-foreground: oklch(0.368 0.113 141.539);
  --secondary: oklch(0.85 0.202 128.678);
  --secondary-foreground: oklch(0.384 0.095 129.154);
  --accent: oklch(0.817 0.198 151.363);
  --accent-foreground: oklch(0.369 0.094 150.674);
  --destructive: oklch(0.602 0.233 29.723);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.814 0.24 141.473);
  --chart-1: oklch(0.814 0.24 141.473);
  --chart-2: oklch(0.85 0.202 128.678);
  --chart-3: oklch(0.817 0.198 151.363);
  --chart-4: oklch(0.859 0.193 128.133);
  --chart-5: oklch(0.821 0.246 141.497);
}