Gutter for shadcn/ui

Gutter is a shadcn/ui theme built around a muted green primary color (#7a9981) with muted purple accents (#997a93). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#7a9981) on a green-tinted background (#070e08).

Color palette

TokenLightDark
Background
#ffffffwhite
#070e08black
Foreground
#031106black
#f6f9f6whitesmoke
Card
#fcfcfcsnow
#09110ablack
Card foreground
#020d04black
#f9fbf9mintcream
Popover
#fcfcfcsnow
#09110ablack
Popover foreground
#020d04black
#f9fbf9mintcream
Primary
#7a9981gray
#7a9981gray
Primary foreground
#000000black
#000000black
Secondary
#997a93gray
#997a93gray
Secondary foreground
#000000black
#000000black
Muted
#eddeealavender
#21121eblack
Muted foreground
#5f595ddimgray
#a6a0a5darkgray
Accent
#997a93gray
#997a93gray
Accent foreground
#000000black
#000000black
Destructive
#d6290afirebrick
#f55032tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7a9981gray
#7a9981gray

Contrast

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

Light mode
Text on background19.32:1AAA
Text on card19.35:1AAA
Primary button6.70:1AA
Secondary button5.57:1AA
Muted text5.27:1AA
Accent5.57:1AA
Destructive5.01:1AA
Dark mode
Text on background18.45:1AAA
Text on card18.43:1AAA
Primary button6.70:1AA
Secondary button5.57:1AA
Muted text7.00:1AAA
Accent5.57:1AA
Destructive3.45:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.161 0.034 150.038);
  --muted: oklch(0.916 0.024 332.39);
  --muted-foreground: oklch(0.471 0.01 332.314);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.143 0.029 150.707);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.143 0.029 150.707);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.652 0.05 150.801);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.618 0.051 333.182);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.618 0.051 333.182);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.567 0.211 31.735);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.652 0.05 150.801);
  --chart-1: oklch(0.652 0.05 150.801);
  --chart-2: oklch(0.618 0.051 333.182);
  --chart-3: oklch(0.618 0.051 333.182);
  --chart-4: oklch(0.644 0.047 333.055);
  --chart-5: oklch(0.658 0.061 150.523);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.016 151.075);
  --foreground: oklch(0.979 0.005 151.936);
  --muted: oklch(0.208 0.034 334.288);
  --muted-foreground: oklch(0.713 0.009 332.19);
  --popover: oklch(0.166 0.019 150.316);
  --popover-foreground: oklch(0.986 0.003 151.96);
  --card: oklch(0.166 0.019 150.316);
  --card-foreground: oklch(0.986 0.003 151.96);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.652 0.05 150.801);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.618 0.051 333.182);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.618 0.051 333.182);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.657 0.207 32.377);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.652 0.05 150.801);
  --chart-1: oklch(0.652 0.05 150.801);
  --chart-2: oklch(0.618 0.051 333.182);
  --chart-3: oklch(0.618 0.051 333.182);
  --chart-4: oklch(0.644 0.047 333.055);
  --chart-5: oklch(0.658 0.061 150.523);
}