Shabby for shadcn/ui

Shabby is a shadcn/ui theme built around a green primary color (#27c421) with red accents (#c42127). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the green primary (#27c421) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#030703black
Foreground
#041604black
#f6f9f5whitesmoke
Card
#f7fdf7mintcream
#030703black
Card foreground
#041604black
#f6f9f5whitesmoke
Popover
#f7fdf7mintcream
#030703black
Popover foreground
#041604black
#f6f9f5whitesmoke
Primary
#27c421limegreen
#27c421limegreen
Primary foreground
#041604black
#041604black
Secondary
#2127c4mediumblue
#2127c4mediumblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dfdfe7gainsboro
#181820black
Muted foreground
#4f5063dimgray
#9c9db0darkgray
Accent
#c42127firebrick
#c42127firebrick
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#672109maroon
#d84413chocolate
Destructive foreground
#f8beablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#27c421limegreen
#27c421limegreen

Contrast

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

Light mode
Text on background18.11:1AAA
Text on card18.11:1AAA
Primary button8.04:1AAA
Secondary button9.76:1AAA
Muted text5.96:1AA
Accent5.82:1AA
Destructive7.20:1AAA
Dark mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button8.04:1AAA
Secondary button9.76:1AAA
Muted text6.58:1AA
Accent5.82:1AA
Destructive4.41:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 144.558);
  --foreground: oklch(0.178 0.046 142.495);
  --muted: oklch(0.907 0.01 284.607);
  --muted-foreground: oklch(0.438 0.031 283.481);
  --popover: oklch(0.988 0.009 144.558);
  --popover-foreground: oklch(0.178 0.046 142.495);
  --card: oklch(0.988 0.009 144.558);
  --card-foreground: oklch(0.178 0.046 142.495);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.716 0.23 142.43);
  --primary-foreground: oklch(0.177 0.045 142.524);
  --secondary: oklch(0.409 0.232 268.896);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.531 0.197 25.942);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.353 0.107 37.399);
  --destructive-foreground: oklch(0.848 0.072 39.227);
  --ring: oklch(0.716 0.23 142.43);
  --chart-1: oklch(0.716 0.23 142.43);
  --chart-2: oklch(0.409 0.232 268.896);
  --chart-3: oklch(0.531 0.197 25.942);
  --chart-4: oklch(0.428 0.244 268.771);
  --chart-5: oklch(0.724 0.235 142.418);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.019 143.309);
  --foreground: oklch(0.979 0.006 144.577);
  --muted: oklch(0.214 0.015 283.509);
  --muted-foreground: oklch(0.7 0.028 284.092);
  --popover: oklch(0.121 0.019 143.309);
  --popover-foreground: oklch(0.979 0.006 144.577);
  --card: oklch(0.121 0.019 143.309);
  --card-foreground: oklch(0.979 0.006 144.577);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.716 0.23 142.43);
  --primary-foreground: oklch(0.177 0.045 142.524);
  --secondary: oklch(0.409 0.232 268.896);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.531 0.197 25.942);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.594 0.192 36.463);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.716 0.23 142.43);
  --chart-1: oklch(0.716 0.23 142.43);
  --chart-2: oklch(0.409 0.232 268.896);
  --chart-3: oklch(0.531 0.197 25.942);
  --chart-4: oklch(0.428 0.244 268.771);
  --chart-5: oklch(0.724 0.235 142.418);
}