Suet for shadcn/ui

Suet is a shadcn/ui theme built around a muted light green primary color (#d5d6cd) with muted light green accents (#d0d6cd). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light green primary (#d5d6cd) on a green-tinted background (#0a0b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#0a0b04black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#0a0b04black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#0a0b04black
Popover foreground
#000000black
#ffffffwhite
Primary
#d5d6cdlightgrey
#d5d6cdlightgrey
Primary foreground
#3d3e32darkslategray
#3d3e32darkslategray
Secondary
#d6d2cdlightgrey
#d6d2cdlightgrey
Secondary foreground
#3e3932darkslategray
#3e3932darkslategray
Muted
#f2ece3linen
#1c160dblack
Muted foreground
#474138darkslategray
#c7c1b8silver
Accent
#d0d6cdlightgrey
#d0d6cdlightgrey
Accent foreground
#373e32darkslategray
#373e32darkslategray
Destructive
#c32d04firebrick
#fb5e32tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d5d6cdlightgrey
#d5d6cdlightgrey

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.38:1AAA
Secondary button7.59:1AAA
Muted text8.60:1AAA
Accent7.45:1AAA
Destructive5.67:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.76:1AAA
Primary button7.38:1AAA
Secondary button7.59:1AAA
Muted text10.04:1AAA
Accent7.45:1AAA
Destructive6.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.946 0.014 78.26);
  --muted-foreground: oklch(0.38 0.017 78.075);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.872 0.012 111.281);
  --primary-foreground: oklch(0.358 0.019 111.985);
  --secondary: oklch(0.865 0.009 78.28);
  --secondary-foreground: oklch(0.348 0.013 78.136);
  --accent: oklch(0.868 0.014 132.478);
  --accent-foreground: oklch(0.353 0.021 132.822);
  --destructive: oklch(0.535 0.191 33.867);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.872 0.012 111.281);
  --chart-1: oklch(0.872 0.012 111.281);
  --chart-2: oklch(0.865 0.009 78.28);
  --chart-3: oklch(0.868 0.014 132.478);
  --chart-4: oklch(0.888 0.007 78.287);
  --chart-5: oklch(0.875 0.016 111.359);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.016 112.186);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.205 0.02 77.389);
  --muted-foreground: oklch(0.813 0.014 78.247);
  --popover: oklch(0.145 0.016 112.186);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.145 0.016 112.186);
  --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.872 0.012 111.281);
  --primary-foreground: oklch(0.358 0.019 111.985);
  --secondary: oklch(0.865 0.009 78.28);
  --secondary-foreground: oklch(0.348 0.013 78.136);
  --accent: oklch(0.868 0.014 132.478);
  --accent-foreground: oklch(0.353 0.021 132.822);
  --destructive: oklch(0.681 0.2 35.916);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.872 0.012 111.281);
  --chart-1: oklch(0.872 0.012 111.281);
  --chart-2: oklch(0.865 0.009 78.28);
  --chart-3: oklch(0.868 0.014 132.478);
  --chart-4: oklch(0.888 0.007 78.287);
  --chart-5: oklch(0.875 0.016 111.359);
}