Easy-going for shadcn/ui

Easy-going is a shadcn/ui theme built around a violet primary color (#895ccc) with green accents (#5ccc89). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#895ccc) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#f7f5fawhitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#f7f5fawhitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#f7f5fawhitesmoke
Primary
#895cccmediumpurple
#895cccmediumpurple
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cc895cperu
#cc895cperu
Secondary foreground
#000000black
#000000black
Muted
#f3f2f1whitesmoke
#0e0d0cblack
Muted foreground
#484747darkslategray
#b8b7b7silver
Accent
#5ccc89mediumaquamarine
#5ccc89mediumaquamarine
Accent foreground
#000000black
#000000black
Destructive
#a40a04darkred
#f91810red
Destructive foreground
#fedddcmistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#895cccmediumpurple
#895cccmediumpurple

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.70:1AA
Secondary button7.27:1AAA
Muted text8.28:1AAA
Accent10.41:1AAA
Destructive6.32:1AA
Dark mode
Text on background19.39:1AAA
Text on card19.39:1AAA
Primary button4.70:1AA
Secondary button7.27:1AAA
Muted text9.72:1AAA
Accent10.41:1AAA
Destructive4.06:1AA Large

CSS variables

Paste this into your globals.css to use Easy-going in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.962 0.002 56.407);
  --muted-foreground: oklch(0.4 0.001 56.383);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.575 0.167 299.585);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.687 0.102 53.919);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.762 0.141 154.702);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.455 0.182 29.396);
  --destructive-foreground: oklch(0.925 0.036 20.187);
  --ring: oklch(0.575 0.167 299.585);
  --chart-1: oklch(0.575 0.167 299.585);
  --chart-2: oklch(0.687 0.102 53.919);
  --chart-3: oklch(0.762 0.141 154.702);
  --chart-4: oklch(0.709 0.094 54.302);
  --chart-5: oklch(0.571 0.176 299.216);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.972 0.007 304.235);
  --muted: oklch(0.158 0.003 56.169);
  --muted-foreground: oklch(0.781 0.001 56.413);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.972 0.007 304.235);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.972 0.007 304.235);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.575 0.167 299.585);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.687 0.102 53.919);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.762 0.141 154.702);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.622 0.247 29.2);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.575 0.167 299.585);
  --chart-1: oklch(0.575 0.167 299.585);
  --chart-2: oklch(0.687 0.102 53.919);
  --chart-3: oklch(0.762 0.141 154.702);
  --chart-4: oklch(0.709 0.094 54.302);
  --chart-5: oklch(0.571 0.176 299.216);
}