Garage for shadcn/ui

Garage is a shadcn/ui theme built around a green primary color (#b3d793) with violet accents (#b793d7). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#b3d793) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0a1103black
#fcfdfcwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#070d02black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#070d02black
#ffffffwhite
Primary
#b3d793lightgreen
#b3d793lightgreen
Primary foreground
#1b290fblack
#1b290fblack
Secondary
#b793d7plum
#b793d7plum
Secondary foreground
#1d0f29black
#1d0f29black
Muted
#e3e2e4gainsboro
#1c1b1dblack
Muted foreground
#5f506ddimgray
#a292afdarkgray
Accent
#b793d7plum
#b793d7plum
Accent foreground
#1d0f29black
#1d0f29black
Destructive
#87380dsaddlebrown
#e96a25chocolate
Destructive foreground
#fadcccbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b3d793lightgreen
#b3d793lightgreen

Contrast

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

Light mode
Text on background19.18:1AAA
Text on card19.24:1AAA
Primary button9.52:1AAA
Secondary button7.09:1AAA
Muted text5.68:1AA
Accent7.09:1AAA
Destructive6.24:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.67:1AAA
Primary button9.52:1AAA
Secondary button7.09:1AAA
Muted text5.94:1AA
Accent7.09:1AAA
Destructive6.55:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.166 0.032 129.877);
  --muted: oklch(0.913 0.004 309.74);
  --muted-foreground: oklch(0.458 0.049 308.726);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.148 0.028 128.653);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.148 0.028 128.653);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.836 0.099 131.078);
  --primary-foreground: oklch(0.261 0.048 132.071);
  --secondary: oklch(0.721 0.104 308.333);
  --secondary-foreground: oklch(0.203 0.052 306.962);
  --accent: oklch(0.721 0.104 308.333);
  --accent-foreground: oklch(0.203 0.052 306.962);
  --destructive: oklch(0.442 0.12 44.084);
  --destructive-foreground: oklch(0.915 0.04 50.134);
  --ring: oklch(0.836 0.099 131.078);
  --chart-1: oklch(0.836 0.099 131.078);
  --chart-2: oklch(0.721 0.104 308.333);
  --chart-3: oklch(0.721 0.104 308.333);
  --chart-4: oklch(0.75 0.093 308.551);
  --chart-5: oklch(0.841 0.105 131.162);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 129.794);
  --muted: oklch(0.223 0.006 309.527);
  --muted-foreground: oklch(0.684 0.044 309.145);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.836 0.099 131.078);
  --primary-foreground: oklch(0.261 0.048 132.071);
  --secondary: oklch(0.721 0.104 308.333);
  --secondary-foreground: oklch(0.203 0.052 306.962);
  --accent: oklch(0.721 0.104 308.333);
  --accent-foreground: oklch(0.203 0.052 306.962);
  --destructive: oklch(0.67 0.176 44.643);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.836 0.099 131.078);
  --chart-1: oklch(0.836 0.099 131.078);
  --chart-2: oklch(0.721 0.104 308.333);
  --chart-3: oklch(0.721 0.104 308.333);
  --chart-4: oklch(0.75 0.093 308.551);
  --chart-5: oklch(0.841 0.105 131.162);
}