Soggy for shadcn/ui

Soggy is a shadcn/ui theme built around a green primary color (#b6c365) with green accents (#87c365). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the green primary (#b6c365) on a green-tinted background (#0a0b05).

Color palette

TokenLightDark
Background
#fcfdf7snow
#0a0b05black
Foreground
#030401black
#ffffffwhite
Card
#fcfdf7snow
#0a0b05black
Card foreground
#030401black
#ffffffwhite
Popover
#fcfdf7snow
#0a0b05black
Popover foreground
#030401black
#ffffffwhite
Primary
#b6c365darkkhaki
#b6c365darkkhaki
Primary foreground
#000000black
#000000black
Secondary
#c3a065darkkhaki
#c3a065darkkhaki
Secondary foreground
#000000black
#000000black
Muted
#dfdcd8gainsboro
#272520black
Muted foreground
#60594ddimgray
#b2ab9fdarkgray
Accent
#87c365darkseagreen
#87c365darkseagreen
Accent foreground
#000000black
#000000black
Destructive
#aa1109firebrick
#ed180cred
Destructive foreground
#fee8e7mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b6c365darkkhaki
#b6c365darkkhaki

Contrast

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

Light mode
Text on background20.13:1AAA
Text on card20.13:1AAA
Primary button10.99:1AAA
Secondary button8.56:1AAA
Muted text5.06:1AA
Accent10.03:1AAA
Destructive6.43:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.79:1AAA
Primary button10.99:1AAA
Secondary button8.56:1AAA
Muted text6.74:1AA
Accent10.03:1AAA
Destructive4.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.009 112.711);
  --foreground: oklch(0.102 0.013 113.524);
  --muted: oklch(0.896 0.006 81.512);
  --muted-foreground: oklch(0.468 0.021 81.41);
  --popover: oklch(0.992 0.009 112.711);
  --popover-foreground: oklch(0.102 0.013 113.524);
  --card: oklch(0.992 0.009 112.711);
  --card-foreground: oklch(0.102 0.013 113.524);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.787 0.12 115.48);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.725 0.088 80.353);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.755 0.14 135.109);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.469 0.184 29.429);
  --destructive-foreground: oklch(0.948 0.024 21.221);
  --ring: oklch(0.787 0.12 115.48);
  --chart-1: oklch(0.787 0.12 115.48);
  --chart-2: oklch(0.725 0.088 80.353);
  --chart-3: oklch(0.755 0.14 135.109);
  --chart-4: oklch(0.745 0.082 80.622);
  --chart-5: oklch(0.796 0.127 115.631);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.144 0.015 113.392);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.264 0.008 81.468);
  --muted-foreground: oklch(0.743 0.019 81.484);
  --popover: oklch(0.144 0.015 113.392);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.144 0.015 113.392);
  --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.787 0.12 115.48);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.725 0.088 80.353);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.755 0.14 135.109);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.601 0.238 29.483);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.787 0.12 115.48);
  --chart-1: oklch(0.787 0.12 115.48);
  --chart-2: oklch(0.725 0.088 80.353);
  --chart-3: oklch(0.755 0.14 135.109);
  --chart-4: oklch(0.745 0.082 80.622);
  --chart-5: oklch(0.796 0.127 115.631);
}