Maggot for shadcn/ui

Maggot is a shadcn/ui theme built around a vivid teal primary color (#109458) with vivid pink accents (#94104b). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid teal primary (#109458) on a teal-tinted background (#04100b).

Color palette

TokenLightDark
Background
#fbfefdwhite
#04100bblack
Foreground
#000000black
#f9fbfamintcream
Card
#fbfefdwhite
#04100bblack
Card foreground
#000000black
#f9fbfamintcream
Popover
#fbfefdwhite
#04100bblack
Popover foreground
#000000black
#f9fbfamintcream
Primary
#109458seagreen
#109458seagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#94104bbrown
#94104bbrown
Secondary foreground
#fbdae9mistyrose
#fbdae9mistyrose
Muted
#f4ecefwhitesmoke
#130b0fblack
Muted foreground
#4a3a42darkslategray
#c5b5bcsilver
Accent
#94104bbrown
#94104bbrown
Accent foreground
#fbdae9mistyrose
#fbdae9mistyrose
Destructive
#7c2204maroon
#f74408orangered
Destructive foreground
#fdc7b5peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#109458seagreen
#109458seagreen

Contrast

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

Light mode
Text on background20.68:1AAA
Text on card20.68:1AAA
Primary button3.90:1AA Large
Secondary button6.72:1AA
Muted text9.13:1AAA
Accent6.72:1AA
Destructive6.73:1AA
Dark mode
Text on background18.62:1AAA
Text on card18.62:1AAA
Primary button3.90:1AA Large
Secondary button6.72:1AA
Muted text9.87:1AAA
Accent6.72:1AA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.004 167.711);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.949 0.01 348.103);
  --muted-foreground: oklch(0.37 0.025 349.587);
  --popover: oklch(0.994 0.004 167.711);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.004 167.711);
  --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.587 0.138 156.102);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.437 0.167 1.643);
  --secondary-foreground: oklch(0.92 0.041 349.002);
  --accent: oklch(0.437 0.167 1.643);
  --accent-foreground: oklch(0.92 0.041 349.002);
  --destructive: oklch(0.392 0.129 36.482);
  --destructive-foreground: oklch(0.872 0.067 39.237);
  --ring: oklch(0.587 0.138 156.102);
  --chart-1: oklch(0.587 0.138 156.102);
  --chart-2: oklch(0.437 0.167 1.643);
  --chart-3: oklch(0.437 0.167 1.643);
  --chart-4: oklch(0.466 0.179 1.851);
  --chart-5: oklch(0.593 0.142 155.733);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.022 165.505);
  --foreground: oklch(0.986 0.003 167.74);
  --muted: oklch(0.163 0.016 350.342);
  --muted-foreground: oklch(0.788 0.021 348.514);
  --popover: oklch(0.159 0.022 165.505);
  --popover-foreground: oklch(0.986 0.003 167.74);
  --card: oklch(0.159 0.022 165.505);
  --card-foreground: oklch(0.986 0.003 167.74);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.587 0.138 156.102);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.437 0.167 1.643);
  --secondary-foreground: oklch(0.92 0.041 349.002);
  --accent: oklch(0.437 0.167 1.643);
  --accent-foreground: oklch(0.92 0.041 349.002);
  --destructive: oklch(0.646 0.223 35.137);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.587 0.138 156.102);
  --chart-1: oklch(0.587 0.138 156.102);
  --chart-2: oklch(0.437 0.167 1.643);
  --chart-3: oklch(0.437 0.167 1.643);
  --chart-4: oklch(0.466 0.179 1.851);
  --chart-5: oklch(0.593 0.142 155.733);
}