Soupy for shadcn/ui

Soupy is a shadcn/ui theme built around a deep green primary color (#243e1e) with deep purple accents (#381e3e). The light mode uses a neutral background (#f8fdf6). Dark mode keeps the deep green primary (#243e1e) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fdf6mintcream
#000000black
Foreground
#061103black
#f9fbf9mintcream
Card
#f8fdf6mintcream
#000000black
Card foreground
#061103black
#f9fbf9mintcream
Popover
#f8fdf6mintcream
#000000black
Popover foreground
#061103black
#f9fbf9mintcream
Primary
#243e1edarkslategray
#243e1edarkslategray
Primary foreground
#bbdbb3silver
#bbdbb3silver
Secondary
#381e3edarkslategray
#381e3edarkslategray
Secondary foreground
#d3b3dbthistle
#d3b3dbthistle
Muted
#e2d7e4gainsboro
#251b28black
Muted foreground
#585558dimgray
#a9a7aadarkgray
Accent
#381e3edarkslategray
#381e3edarkslategray
Accent foreground
#d3b3dbthistle
#d3b3dbthistle
Destructive
#861e0edarkred
#ea4c34tomato
Destructive foreground
#fad2ccpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#243e1edarkslategray
#243e1edarkslategray

Contrast

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

Light mode
Text on background18.74:1AAA
Text on card18.74:1AAA
Primary button7.79:1AAA
Secondary button7.92:1AAA
Muted text5.28:1AA
Accent7.92:1AAA
Destructive6.87:1AA
Dark mode
Text on background20.19:1AAA
Text on card20.19:1AAA
Primary button7.79:1AAA
Secondary button7.92:1AAA
Muted text6.96:1AA
Accent7.92:1AAA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.011 139.441);
  --foreground: oklch(0.162 0.036 137.932);
  --muted: oklch(0.892 0.021 319.451);
  --muted-foreground: oklch(0.453 0.007 319.448);
  --popover: oklch(0.989 0.011 139.441);
  --popover-foreground: oklch(0.162 0.036 137.932);
  --card: oklch(0.989 0.011 139.441);
  --card-foreground: oklch(0.162 0.036 137.932);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.334 0.063 139.539);
  --primary-foreground: oklch(0.857 0.063 139.432);
  --secondary: oklch(0.283 0.066 319.385);
  --secondary-foreground: oklch(0.807 0.064 319.463);
  --accent: oklch(0.283 0.066 319.385);
  --accent-foreground: oklch(0.807 0.064 319.463);
  --destructive: oklch(0.408 0.142 31.651);
  --destructive-foreground: oklch(0.896 0.045 28.274);
  --ring: oklch(0.334 0.063 139.539);
  --chart-1: oklch(0.334 0.063 139.539);
  --chart-2: oklch(0.283 0.066 319.385);
  --chart-3: oklch(0.283 0.066 319.385);
  --chart-4: oklch(0.312 0.075 319.374);
  --chart-5: oklch(0.337 0.067 139.571);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.003 139.443);
  --muted: oklch(0.239 0.029 319.463);
  --muted-foreground: oklch(0.73 0.006 319.446);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.003 139.443);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.003 139.443);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.334 0.063 139.539);
  --primary-foreground: oklch(0.857 0.063 139.432);
  --secondary: oklch(0.283 0.066 319.385);
  --secondary-foreground: oklch(0.807 0.064 319.463);
  --accent: oklch(0.283 0.066 319.385);
  --accent-foreground: oklch(0.807 0.064 319.463);
  --destructive: oklch(0.634 0.198 31.539);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.334 0.063 139.539);
  --chart-1: oklch(0.334 0.063 139.539);
  --chart-2: oklch(0.283 0.066 319.385);
  --chart-3: oklch(0.283 0.066 319.385);
  --chart-4: oklch(0.312 0.075 319.374);
  --chart-5: oklch(0.337 0.067 139.571);
}