Worshiper for shadcn/ui

Worshiper is a shadcn/ui theme built around a vivid green primary color (#2be61a) with vivid purple accents (#d41ae6). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid green primary (#2be61a) on a neutral background (#030802).

Color palette

TokenLightDark
Background
#fbfefbwhite
#030802black
Foreground
#020901black
#fcfdfcwhite
Card
#fbfefbwhite
#030802black
Card foreground
#020901black
#fcfdfcwhite
Popover
#fbfefbwhite
#030802black
Popover foreground
#020901black
#fcfdfcwhite
Primary
#2be61alimegreen
#2be61alimegreen
Primary foreground
#092e05black
#092e05black
Secondary
#d41ae6magenta
#d41ae6magenta
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eee7eelavender
#171118black
Muted foreground
#705a72dimgray
#a38da5darkgray
Accent
#d41ae6magenta
#d41ae6magenta
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#740f0bmaroon
#ea342ecrimson
Destructive foreground
#f8bbb9lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2be61alimegreen
#2be61alimegreen

Contrast

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

Light mode
Text on background19.85:1AAA
Text on card19.85:1AAA
Primary button8.81:1AAA
Secondary button4.12:1AA Large
Muted text5.09:1AA
Accent4.12:1AA Large
Destructive7.04:1AAA
Dark mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button8.81:1AAA
Secondary button4.12:1AA Large
Muted text6.11:1AA
Accent4.12:1AA Large
Destructive4.15:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.006 143.107);
  --foreground: oklch(0.125 0.031 140.789);
  --muted: oklch(0.935 0.012 323.194);
  --muted-foreground: oklch(0.498 0.047 323.552);
  --popover: oklch(0.994 0.006 143.107);
  --popover-foreground: oklch(0.125 0.031 140.789);
  --card: oklch(0.994 0.006 143.107);
  --card-foreground: oklch(0.125 0.031 140.789);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.804 0.264 142.064);
  --primary-foreground: oklch(0.265 0.079 141.666);
  --secondary: oklch(0.628 0.285 324.058);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.628 0.285 324.058);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.36 0.135 28.51);
  --destructive-foreground: oklch(0.848 0.07 20.915);
  --ring: oklch(0.804 0.264 142.064);
  --chart-1: oklch(0.804 0.264 142.064);
  --chart-2: oklch(0.628 0.285 324.058);
  --chart-3: oklch(0.628 0.285 324.058);
  --chart-4: oklch(0.638 0.279 324.194);
  --chart-5: oklch(0.813 0.269 142.097);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.023 141.389);
  --foreground: oklch(0.993 0.003 143.121);
  --muted: oklch(0.188 0.018 323.557);
  --muted-foreground: oklch(0.671 0.044 323.428);
  --popover: oklch(0.123 0.023 141.389);
  --popover-foreground: oklch(0.993 0.003 143.121);
  --card: oklch(0.123 0.023 141.389);
  --card-foreground: oklch(0.993 0.003 143.121);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.804 0.264 142.064);
  --primary-foreground: oklch(0.265 0.079 141.666);
  --secondary: oklch(0.628 0.285 324.058);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.628 0.285 324.058);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.613 0.218 27.896);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.804 0.264 142.064);
  --chart-1: oklch(0.804 0.264 142.064);
  --chart-2: oklch(0.628 0.285 324.058);
  --chart-3: oklch(0.628 0.285 324.058);
  --chart-4: oklch(0.638 0.279 324.194);
  --chart-5: oklch(0.813 0.269 142.097);
}