Shady for shadcn/ui

Shady is a shadcn/ui theme built around a green primary color (#2ea840) with purple accents (#a82e96). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the green primary (#2ea840) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#010402black
Foreground
#000000black
#fcfdfcwhite
Card
#fcfdfcwhite
#010402black
Card foreground
#000000black
#fcfdfcwhite
Popover
#fcfdfcwhite
#010402black
Popover foreground
#000000black
#fcfdfcwhite
Primary
#2ea840seagreen
#2ea840seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a82e96mediumvioletred
#a82e96mediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ecdae9gainsboro
#251323black
Muted foreground
#665263dimgray
#ad99aadarkgray
Accent
#a82e96mediumvioletred
#a82e96mediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#88290csaddlebrown
#ee683ftomato
Destructive foreground
#fbd6cbbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2ea840seagreen
#2ea840seagreen

Contrast

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

Light mode
Text on background20.62:1AAA
Text on card20.62:1AAA
Primary button3.08:1AA Large
Secondary button6.00:1AA
Muted text5.33:1AA
Accent6.00:1AA
Destructive6.58:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button3.08:1AA Large
Secondary button6.00:1AA
Muted text6.62:1AA
Accent6.00:1AA
Destructive6.68:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 150.21);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.907 0.029 330.654);
  --muted-foreground: oklch(0.464 0.037 331.247);
  --popover: oklch(0.993 0.003 150.21);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.993 0.003 150.21);
  --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.644 0.178 145.363);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.525 0.193 334.759);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.525 0.193 334.759);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.424 0.135 36.082);
  --destructive-foreground: oklch(0.905 0.043 37.6);
  --ring: oklch(0.644 0.178 145.363);
  --chart-1: oklch(0.644 0.178 145.363);
  --chart-2: oklch(0.525 0.193 334.759);
  --chart-3: oklch(0.525 0.193 334.759);
  --chart-4: oklch(0.552 0.204 334.786);
  --chart-5: oklch(0.652 0.185 145.168);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.013 149.412);
  --foreground: oklch(0.993 0.003 150.211);
  --muted: oklch(0.219 0.041 332.467);
  --muted-foreground: oklch(0.706 0.034 330.849);
  --popover: oklch(0.096 0.013 149.412);
  --popover-foreground: oklch(0.993 0.003 150.211);
  --card: oklch(0.096 0.013 149.412);
  --card-foreground: oklch(0.993 0.003 150.211);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.644 0.178 145.363);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.525 0.193 334.759);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.525 0.193 334.759);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.676 0.176 37.367);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.644 0.178 145.363);
  --chart-1: oklch(0.644 0.178 145.363);
  --chart-2: oklch(0.525 0.193 334.759);
  --chart-3: oklch(0.525 0.193 334.759);
  --chart-4: oklch(0.552 0.204 334.786);
  --chart-5: oklch(0.652 0.185 145.168);
}