Easy-going for shadcn/ui

Easy-going is a shadcn/ui theme built around a deep indigo primary color (#322470) with deep green accents (#627024). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the deep indigo primary (#322470) on a neutral background (#040307).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#040307black
Foreground
#010105black
#ffffffwhite
Card
#f9f8fcghostwhite
#05040bblack
Card foreground
#000000black
#ffffffwhite
Popover
#f9f8fcghostwhite
#05040bblack
Popover foreground
#000000black
#ffffffwhite
Primary
#322470midnightblue
#322470midnightblue
Primary foreground
#dad5f1gainsboro
#dad5f1gainsboro
Secondary
#627024darkolivegreen
#627024darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0f2e3beige
#191c0dblack
Muted foreground
#6c7057dimgray
#a4a88fdarkgray
Accent
#627024darkolivegreen
#627024darkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#863309saddlebrown
#f06b28chocolate
Destructive foreground
#fbd8c6bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#322470midnightblue
#322470midnightblue

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card19.86:1AAA
Primary button9.09:1AAA
Secondary button5.45:1AA
Muted text4.52:1AA
Accent5.45:1AA
Destructive6.35:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.39:1AAA
Primary button9.09:1AAA
Secondary button5.45:1AA
Muted text7.05:1AAA
Accent5.45:1AA
Destructive6.84:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.002 294.779);
  --foreground: oklch(0.07 0.025 292.618);
  --muted: oklch(0.956 0.021 115.223);
  --muted-foreground: oklch(0.535 0.039 116.18);
  --popover: oklch(0.981 0.005 294.733);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.005 294.733);
  --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.327 0.124 285.674);
  --primary-foreground: oklch(0.885 0.039 293.99);
  --secondary: oklch(0.516 0.101 118.953);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.516 0.101 118.953);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.432 0.124 42.105);
  --destructive-foreground: oklch(0.906 0.046 48.185);
  --ring: oklch(0.327 0.124 285.674);
  --chart-1: oklch(0.327 0.124 285.674);
  --chart-2: oklch(0.516 0.101 118.953);
  --chart-3: oklch(0.516 0.101 118.953);
  --chart-4: oklch(0.554 0.109 119.002);
  --chart-5: oklch(0.324 0.13 284.866);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.017 293.872);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.219 0.028 117.28);
  --muted-foreground: oklch(0.722 0.037 115.762);
  --popover: oklch(0.116 0.02 293.815);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.116 0.02 293.815);
  --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.327 0.124 285.674);
  --primary-foreground: oklch(0.885 0.039 293.99);
  --secondary: oklch(0.516 0.101 118.953);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.516 0.101 118.953);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.681 0.181 43.507);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.327 0.124 285.674);
  --chart-1: oklch(0.327 0.124 285.674);
  --chart-2: oklch(0.516 0.101 118.953);
  --chart-3: oklch(0.516 0.101 118.953);
  --chart-4: oklch(0.554 0.109 119.002);
  --chart-5: oklch(0.324 0.13 284.866);
}