Automatic Dark Shamrock for shadcn/ui

Automatic Dark Shamrock is a shadcn/ui theme built around a teal primary color (#41d29b) with muted light teal accents (#c6d2cd). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#41d29b) on a neutral background (#030706).

Color palette

TokenLightDark
Background
#fbfefdwhite
#030706black
Foreground
#010403black
#f8fbfamintcream
Card
#fbfefdwhite
#030706black
Card foreground
#010403black
#f8fbfamintcream
Popover
#fbfefdwhite
#030706black
Popover foreground
#010403black
#f8fbfamintcream
Primary
#41d29bmediumaquamarine
#41d29bmediumaquamarine
Primary foreground
#0e3a29darkslategray
#0e3a29darkslategray
Secondary
#dfe1e1gainsboro
#27342fdarkslategray
Secondary foreground
#454a48darkslategray
#bfcfc9silver
Muted
#e8edeblavender
#121715black
Muted foreground
#575c5adimgray
#a3a8a6darkgray
Accent
#c6d2cdlightgrey
#375348darkslategray
Accent foreground
#2d3934darkslategray
#d7e4dfgainsboro
Destructive
#cc1b00firebrick
#ff2f0forangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e6eae9lavender
#202724darkslategray
Input
#e6eae9lavender
#202724darkslategray
Ring
#41d29bmediumaquamarine
#41d29bmediumaquamarine

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card20.26:1AAA
Primary button6.61:1AA
Secondary button6.89:1AA
Muted text5.76:1AA
Accent7.71:1AAA
Destructive5.63:1AA
Dark mode
Text on background19.43:1AAA
Text on card19.43:1AAA
Primary button6.61:1AA
Secondary button7.98:1AAA
Muted text7.51:1AAA
Accent6.46:1AA
Destructive3.70:1AA Large

CSS variables

Paste this into your globals.css to use Automatic Dark Shamrock in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 171.503);
  --foreground: oklch(0.099 0.014 171.889);
  --muted: oklch(0.942 0.006 171.399);
  --muted-foreground: oklch(0.469 0.007 171.125);
  --popover: oklch(0.994 0.003 171.503);
  --popover-foreground: oklch(0.099 0.014 171.889);
  --card: oklch(0.994 0.003 171.503);
  --card-foreground: oklch(0.099 0.014 171.889);
  --border: oklch(0.934 0.005 171.44);
  --input: oklch(0.934 0.005 171.44);
  --primary: oklch(0.775 0.147 163.18);
  --primary-foreground: oklch(0.312 0.057 163.755);
  --secondary: oklch(0.909 0.002 171.522);
  --secondary-foreground: oklch(0.403 0.006 171.14);
  --accent: oklch(0.853 0.014 171.128);
  --accent-foreground: oklch(0.331 0.017 170.043);
  --destructive: oklch(0.539 0.21 31.093);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.775 0.147 163.18);
  --chart-1: oklch(0.775 0.147 163.18);
  --chart-2: oklch(0.909 0.002 171.522);
  --chart-3: oklch(0.853 0.014 171.128);
  --chart-4: oklch(0.932 0.002 171.541);
  --chart-5: oklch(0.783 0.152 162.794);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.012 171.799);
  --foreground: oklch(0.987 0.003 171.49);
  --muted: oklch(0.198 0.009 170.209);
  --muted-foreground: oklch(0.728 0.007 171.323);
  --popover: oklch(0.122 0.012 171.799);
  --popover-foreground: oklch(0.987 0.003 171.49);
  --card: oklch(0.122 0.012 171.799);
  --card-foreground: oklch(0.987 0.003 171.49);
  --border: oklch(0.265 0.01 170.431);
  --input: oklch(0.265 0.01 170.431);
  --primary: oklch(0.775 0.147 163.18);
  --primary-foreground: oklch(0.312 0.057 163.755);
  --secondary: oklch(0.313 0.019 169.669);
  --secondary-foreground: oklch(0.84 0.019 170.928);
  --accent: oklch(0.415 0.038 168.62);
  --accent-foreground: oklch(0.909 0.016 171.085);
  --destructive: oklch(0.644 0.242 31.28);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.775 0.147 163.18);
  --chart-1: oklch(0.775 0.147 163.18);
  --chart-2: oklch(0.313 0.019 169.669);
  --chart-3: oklch(0.415 0.038 168.62);
  --chart-4: oklch(0.345 0.022 169.603);
  --chart-5: oklch(0.783 0.152 162.794);
}