Feline for shadcn/ui

Feline is a shadcn/ui theme built around a muted deep green primary color (#2a3730) with muted deep pink accents (#372a31). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#2a3730) on a green-tinted background (#050f0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#050f0ablack
Foreground
#020e07black
#ffffffwhite
Card
#ffffffwhite
#050f0ablack
Card foreground
#020e07black
#ffffffwhite
Popover
#ffffffwhite
#050f0ablack
Popover foreground
#020e07black
#ffffffwhite
Primary
#2a3730darkslategray
#2a3730darkslategray
Primary foreground
#c2d1c9silver
#c2d1c9silver
Secondary
#372a31darkslategray
#372a31darkslategray
Secondary foreground
#d1c2cathistle
#d1c2cathistle
Muted
#eedde6mistyrose
#22111ablack
Muted foreground
#423d40darkslategray
#c2bdbfsilver
Accent
#372a31darkslategray
#372a31darkslategray
Accent foreground
#d1c2cathistle
#d1c2cathistle
Destructive
#651a01maroon
#fe531borangered
Destructive foreground
#feb39alightsalmon
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2a3730darkslategray
#2a3730darkslategray

Contrast

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

Light mode
Text on background19.65:1AAA
Text on card19.65:1AAA
Primary button7.84:1AAA
Secondary button8.00:1AAA
Muted text8.18:1AAA
Accent8.00:1AAA
Destructive7.11:1AAA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button7.84:1AAA
Secondary button8.00:1AAA
Muted text9.72:1AAA
Accent8.00:1AAA
Destructive6.47:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.146 0.026 162.794);
  --muted: oklch(0.914 0.021 344.017);
  --muted-foreground: oklch(0.367 0.008 344.004);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.146 0.026 162.794);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.146 0.026 162.794);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.323 0.022 161.581);
  --primary-foreground: oklch(0.847 0.02 162.849);
  --secondary: oklch(0.302 0.023 345.293);
  --secondary-foreground: oklch(0.829 0.02 344.039);
  --accent: oklch(0.302 0.023 345.293);
  --accent-foreground: oklch(0.829 0.02 344.039);
  --destructive: oklch(0.34 0.113 37.126);
  --destructive-foreground: oklch(0.832 0.096 39.207);
  --ring: oklch(0.323 0.022 161.581);
  --chart-1: oklch(0.323 0.022 161.581);
  --chart-2: oklch(0.302 0.023 345.293);
  --chart-3: oklch(0.302 0.023 345.293);
  --chart-4: oklch(0.331 0.027 345.351);
  --chart-5: oklch(0.326 0.027 161.18);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.019 161.794);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.206 0.031 346.952);
  --muted-foreground: oklch(0.802 0.007 343.657);
  --popover: oklch(0.156 0.019 161.794);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.019 161.794);
  --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.323 0.022 161.581);
  --primary-foreground: oklch(0.847 0.02 162.849);
  --secondary: oklch(0.302 0.023 345.293);
  --secondary-foreground: oklch(0.829 0.02 344.039);
  --accent: oklch(0.302 0.023 345.293);
  --accent-foreground: oklch(0.829 0.02 344.039);
  --destructive: oklch(0.673 0.215 36.64);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.323 0.022 161.581);
  --chart-1: oklch(0.323 0.022 161.581);
  --chart-2: oklch(0.302 0.023 345.293);
  --chart-3: oklch(0.302 0.023 345.293);
  --chart-4: oklch(0.331 0.027 345.351);
  --chart-5: oklch(0.326 0.027 161.18);
}