Monotheism for shadcn/ui

Monotheism is a shadcn/ui theme built around a vivid green primary color (#05c23e) with muted green accents (#a7c3af). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#05c23e) on a neutral background (#040704).

Color palette

TokenLightDark
Background
#ffffffwhite
#040704black
Foreground
#000000black
#fbfdfcwhite
Card
#fcfcfcsnow
#050a07black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#050a07black
Popover foreground
#000000black
#ffffffwhite
Primary
#05c23elimegreen
#05c23elimegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c5d3c9lightgrey
#181b19black
Secondary foreground
#2c3a30darkslategray
#afb6b1darkgray
Muted
#d1e0d6gainsboro
#1f2e23darkslategray
Muted foreground
#56615adimgray
#9ea9a1darkgray
Accent
#a7c3afdarkgray
#252d27darkslategray
Accent foreground
#17211ablack
#bcc8bfsilver
Destructive
#7d2f03saddlebrown
#eb5905orangered
Destructive foreground
#fdcfb4peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#05c23elimegreen
#05c23elimegreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button2.39:1Fail
Secondary button7.69:1AAA
Muted text4.72:1AA
Accent8.73:1AAA
Destructive6.45:1AA
Dark mode
Text on background19.85:1AAA
Text on card19.93:1AAA
Primary button2.39:1Fail
Secondary button8.41:1AAA
Muted text5.87:1AA
Accent8.20:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.893 0.022 155.396);
  --muted-foreground: oklch(0.482 0.018 155.126);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.708 0.217 145.76);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.853 0.019 155.435);
  --secondary-foreground: oklch(0.332 0.024 154.411);
  --accent: oklch(0.791 0.041 154.84);
  --accent-foreground: oklch(0.236 0.021 154.056);
  --destructive: oklch(0.413 0.119 43.782);
  --destructive-foreground: oklch(0.888 0.064 51.664);
  --ring: oklch(0.708 0.217 145.76);
  --chart-1: oklch(0.708 0.217 145.76);
  --chart-2: oklch(0.853 0.019 155.435);
  --chart-3: oklch(0.791 0.041 154.84);
  --chart-4: oklch(0.875 0.016 155.513);
  --chart-5: oklch(0.716 0.221 145.57);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.011 155.602);
  --foreground: oklch(0.993 0.003 155.815);
  --muted: oklch(0.283 0.028 153.775);
  --muted-foreground: oklch(0.723 0.017 155.426);
  --popover: oklch(0.137 0.012 155.602);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.137 0.012 155.602);
  --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.708 0.217 145.76);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.217 0.004 155.501);
  --secondary-foreground: oklch(0.769 0.009 155.642);
  --accent: oklch(0.287 0.015 154.806);
  --accent-foreground: oklch(0.821 0.018 155.449);
  --destructive: oklch(0.649 0.195 41.833);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.708 0.217 145.76);
  --chart-1: oklch(0.708 0.217 145.76);
  --chart-2: oklch(0.217 0.004 155.501);
  --chart-3: oklch(0.287 0.015 154.806);
  --chart-4: oklch(0.25 0.005 155.468);
  --chart-5: oklch(0.716 0.221 145.57);
}