Soggy for shadcn/ui

Soggy is a shadcn/ui theme built around a near-black primary color (#0a0a0a) with near-black accents (#0a0a0a). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the near-black primary (#0a0a0a) on a neutral background (#080202).

Color palette

TokenLightDark
Background
#fdf7f7snow
#080202black
Foreground
#100404black
#f9f6f6whitesmoke
Card
#fdf7f7snow
#080202black
Card foreground
#100404black
#f9f6f6whitesmoke
Popover
#fdf7f7snow
#080202black
Popover foreground
#100404black
#f9f6f6whitesmoke
Primary
#0a0a0ablack
#0a0a0ablack
Primary foreground
#a3a3a3darkgray
#a3a3a3darkgray
Secondary
#0a0a0ablack
#0a0a0ablack
Secondary foreground
#a3a3a3darkgray
#a3a3a3darkgray
Muted
#ead6d6gainsboro
#291515black
Muted foreground
#645454dimgray
#ab9b9bdarkgray
Accent
#0a0a0ablack
#0a0a0ablack
Accent foreground
#a3a3a3darkgray
#a3a3a3darkgray
Destructive
#b7410bfirebrick
#f37135tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0a0a0ablack
#0a0a0ablack

Contrast

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

Light mode
Text on background19.03:1AAA
Text on card19.03:1AAA
Primary button7.83:1AAA
Secondary button7.83:1AAA
Muted text5.15:1AA
Accent7.83:1AAA
Destructive5.54:1AA
Dark mode
Text on background19.12:1AAA
Text on card19.12:1AAA
Primary button7.83:1AAA
Secondary button7.83:1AAA
Muted text6.53:1AA
Accent7.83:1AAA
Destructive7.22:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.006 17.261);
  --foreground: oklch(0.131 0.027 21.355);
  --muted: oklch(0.893 0.022 17.58);
  --muted-foreground: oklch(0.461 0.022 17.977);
  --popover: oklch(0.981 0.006 17.261);
  --popover-foreground: oklch(0.131 0.027 21.355);
  --card: oklch(0.981 0.006 17.261);
  --card-foreground: oklch(0.131 0.027 21.355);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.146 0 180);
  --primary-foreground: oklch(0.716 0 165.964);
  --secondary: oklch(0.146 0 180);
  --secondary-foreground: oklch(0.716 0 165.964);
  --accent: oklch(0.146 0 180);
  --accent-foreground: oklch(0.716 0 165.964);
  --destructive: oklch(0.536 0.163 40.011);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.146 0 180);
  --chart-1: oklch(0.146 0 180);
  --chart-2: oklch(0.146 0 180);
  --chart-3: oklch(0.146 0 180);
  --chart-4: oklch(0.182 0 164.055);
  --chart-5: oklch(0.145 0.001 17.278);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.105 0.016 20.215);
  --foreground: oklch(0.975 0.004 17.219);
  --muted: oklch(0.222 0.033 20.061);
  --muted-foreground: oklch(0.704 0.02 17.625);
  --popover: oklch(0.105 0.016 20.215);
  --popover-foreground: oklch(0.975 0.004 17.219);
  --card: oklch(0.105 0.016 20.215);
  --card-foreground: oklch(0.975 0.004 17.219);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.146 0 180);
  --primary-foreground: oklch(0.716 0 165.964);
  --secondary: oklch(0.146 0 180);
  --secondary-foreground: oklch(0.716 0 165.964);
  --accent: oklch(0.146 0 180);
  --accent-foreground: oklch(0.716 0 165.964);
  --destructive: oklch(0.695 0.176 43.053);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.146 0 180);
  --chart-1: oklch(0.146 0 180);
  --chart-2: oklch(0.146 0 180);
  --chart-3: oklch(0.146 0 180);
  --chart-4: oklch(0.182 0 164.055);
  --chart-5: oklch(0.145 0.001 17.278);
}