Paltry for shadcn/ui

Paltry is a shadcn/ui theme built around a muted green primary color (#7da664) with muted violet accents (#8c64a6). The light mode uses a neutral background (#fcfefb). Dark mode keeps the muted green primary (#7da664) on a green-tinted background (#070b04).

Color palette

TokenLightDark
Background
#fcfefbwhite
#070b04black
Foreground
#0b1405black
#fafbf8snow
Card
#f9fdf7mintcream
#090f06black
Card foreground
#091004black
#fcfdfcwhite
Popover
#fcfefbwhite
#070b04black
Popover foreground
#0b1405black
#fafbf8snow
Primary
#7da664gray
#7da664gray
Primary foreground
#000000black
#000000black
Secondary
#8c64a6lightslategray
#8c64a6lightslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e3d7eagainsboro
#211528black
Muted foreground
#675671dimgray
#9f8ea9darkgray
Accent
#8c64a6lightslategray
#8c64a6lightslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b11610firebrick
#ec3832crimson
Destructive foreground
#fef6f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7da664gray
#7da664gray

Contrast

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

Light mode
Text on background18.56:1AAA
Text on card18.80:1AAA
Primary button7.48:1AAA
Secondary button4.69:1AA
Muted text4.82:1AA
Accent4.69:1AA
Destructive6.57:1AA
Dark mode
Text on background19.08:1AAA
Text on card19.03:1AAA
Primary button7.48:1AAA
Secondary button4.69:1AA
Muted text5.74:1AA
Accent4.69:1AA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.005 133.019);
  --foreground: oklch(0.178 0.034 133.59);
  --muted: oklch(0.894 0.028 312.776);
  --muted-foreground: oklch(0.479 0.049 312.295);
  --popover: oklch(0.995 0.005 133.019);
  --popover-foreground: oklch(0.178 0.034 133.59);
  --card: oklch(0.99 0.01 133.053);
  --card-foreground: oklch(0.162 0.029 132.53);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.678 0.103 134.218);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.57 0.108 311.629);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.57 0.108 311.629);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.487 0.188 28.892);
  --destructive-foreground: oklch(0.979 0.009 19.732);
  --ring: oklch(0.678 0.103 134.218);
  --chart-1: oklch(0.678 0.103 134.218);
  --chart-2: oklch(0.57 0.108 311.629);
  --chart-3: oklch(0.57 0.108 311.629);
  --chart-4: oklch(0.597 0.101 311.798);
  --chart-5: oklch(0.685 0.113 134.365);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.019 131.815);
  --foreground: oklch(0.987 0.005 133.018);
  --muted: oklch(0.221 0.038 311.765);
  --muted-foreground: oklch(0.67 0.045 312.532);
  --popover: oklch(0.142 0.019 131.815);
  --popover-foreground: oklch(0.987 0.005 133.018);
  --card: oklch(0.158 0.022 132.651);
  --card-foreground: oklch(0.994 0.002 133.001);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.678 0.103 134.218);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.57 0.108 311.629);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.57 0.108 311.629);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.619 0.217 27.709);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.678 0.103 134.218);
  --chart-1: oklch(0.678 0.103 134.218);
  --chart-2: oklch(0.57 0.108 311.629);
  --chart-3: oklch(0.57 0.108 311.629);
  --chart-4: oklch(0.597 0.101 311.798);
  --chart-5: oklch(0.685 0.113 134.365);
}