Favorable for shadcn/ui

Favorable is a shadcn/ui theme built around a deep green primary color (#10381f) with deep pink accents (#381028). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#10381f) on a green-tinted background (#040c07).

Color palette

TokenLightDark
Background
#ffffffwhite
#040c07black
Foreground
#06130bblack
#f5faf7whitesmoke
Card
#fcfcfcsnow
#051009black
Card foreground
#050f09black
#f8fbfamintcream
Popover
#ffffffwhite
#040c07black
Popover foreground
#06130bblack
#f5faf7whitesmoke
Primary
#10381fdarkgreen
#10381fdarkgreen
Primary foreground
#48cb7amediumseagreen
#48cb7amediumseagreen
Secondary
#381028black
#381028black
Secondary foreground
#e298c5plum
#e298c5plum
Muted
#e8cedegainsboro
#311727black
Muted foreground
#654e5cdimgray
#b19aa8darkgray
Accent
#381028black
#381028black
Accent foreground
#e298c5plum
#e298c5plum
Destructive
#71200amaroon
#e64114orangered
Destructive foreground
#f8c3b4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#10381fdarkgreen
#10381fdarkgreen

Contrast

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

Light mode
Text on background18.99:1AAA
Text on card19.04:1AAA
Primary button6.30:1AA
Secondary button7.50:1AAA
Muted text5.13:1AA
Accent7.50:1AAA
Destructive7.05:1AAA
Dark mode
Text on background18.79:1AAA
Text on card18.64:1AAA
Primary button6.30:1AA
Secondary button7.50:1AAA
Muted text6.30:1AA
Accent7.50:1AAA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.172 0.026 156.404);
  --muted: oklch(0.879 0.035 340.337);
  --muted-foreground: oklch(0.452 0.038 341.229);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.172 0.026 156.404);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.157 0.022 157.898);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.304 0.063 153.17);
  --primary-foreground: oklch(0.752 0.163 152.719);
  --secondary: oklch(0.248 0.072 345.623);
  --secondary-foreground: oklch(0.765 0.106 342.318);
  --accent: oklch(0.248 0.072 345.623);
  --accent-foreground: oklch(0.765 0.106 342.318);
  --destructive: oklch(0.37 0.118 35.406);
  --destructive-foreground: oklch(0.86 0.065 35.987);
  --ring: oklch(0.304 0.063 153.17);
  --chart-1: oklch(0.304 0.063 153.17);
  --chart-2: oklch(0.248 0.072 345.623);
  --chart-3: oklch(0.248 0.072 345.623);
  --chart-4: oklch(0.278 0.084 345.941);
  --chart-5: oklch(0.307 0.066 152.854);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.019 159.121);
  --foreground: oklch(0.98 0.006 159.334);
  --muted: oklch(0.247 0.048 343.461);
  --muted-foreground: oklch(0.712 0.034 340.485);
  --popover: oklch(0.141 0.019 159.121);
  --popover-foreground: oklch(0.98 0.006 159.334);
  --card: oklch(0.157 0.023 157.84);
  --card-foreground: oklch(0.986 0.004 159.38);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.304 0.063 153.17);
  --primary-foreground: oklch(0.752 0.163 152.719);
  --secondary: oklch(0.248 0.072 345.623);
  --secondary-foreground: oklch(0.765 0.106 342.318);
  --accent: oklch(0.248 0.072 345.623);
  --accent-foreground: oklch(0.765 0.106 342.318);
  --destructive: oklch(0.615 0.208 34.737);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.304 0.063 153.17);
  --chart-1: oklch(0.304 0.063 153.17);
  --chart-2: oklch(0.248 0.072 345.623);
  --chart-3: oklch(0.248 0.072 345.623);
  --chart-4: oklch(0.278 0.084 345.941);
  --chart-5: oklch(0.307 0.066 152.854);
}