Animal for shadcn/ui

Animal is a shadcn/ui theme built around a neutral gray primary color (#373833) with neutral gray accents (#343833). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#373833) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#0d1103black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#0d1103black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#0d1103black
#ffffffwhite
Primary
#373833darkslategray
#373833darkslategray
Primary foreground
#cfd1cclightgrey
#cfd1cclightgrey
Secondary
#383733darkslategray
#383733darkslategray
Secondary foreground
#d1d0cclightgrey
#d1d0cclightgrey
Muted
#ede9d9antiquewhite
#262212black
Muted foreground
#696863dimgray
#9c9b96darkgray
Accent
#343833darkslategray
#343833darkslategray
Accent foreground
#cdd1cclightgrey
#cdd1cclightgrey
Destructive
#660000maroon
#ff0505red
Destructive foreground
#ff9999lightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#373833darkslategray
#373833darkslategray

Contrast

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

Light mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button7.67:1AAA
Secondary button7.69:1AAA
Muted text4.59:1AA
Accent7.70:1AAA
Destructive6.56:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.67:1AAA
Secondary button7.69:1AAA
Muted text5.68:1AA
Accent7.70:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.168 0.03 122.413);
  --muted: oklch(0.933 0.022 96.452);
  --muted-foreground: oklch(0.517 0.008 96.352);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.168 0.03 122.413);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.168 0.03 122.413);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.338 0.009 121.23);
  --primary-foreground: oklch(0.858 0.007 120.898);
  --secondary: oklch(0.337 0.008 96.438);
  --secondary-foreground: oklch(0.857 0.005 96.246);
  --accent: oklch(0.335 0.011 139.962);
  --accent-foreground: oklch(0.856 0.008 139.983);
  --destructive: oklch(0.32 0.131 29.234);
  --destructive-foreground: oklch(0.788 0.123 20.186);
  --ring: oklch(0.338 0.009 121.23);
  --chart-1: oklch(0.338 0.009 121.23);
  --chart-2: oklch(0.337 0.008 96.438);
  --chart-3: oklch(0.335 0.011 139.962);
  --chart-4: oklch(0.368 0.009 96.445);
  --chart-5: oklch(0.342 0.015 121.497);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.253 0.029 97.056);
  --muted-foreground: oklch(0.689 0.007 96.298);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.338 0.009 121.23);
  --primary-foreground: oklch(0.858 0.007 120.898);
  --secondary: oklch(0.337 0.008 96.438);
  --secondary-foreground: oklch(0.857 0.005 96.246);
  --accent: oklch(0.335 0.011 139.962);
  --accent-foreground: oklch(0.856 0.008 139.983);
  --destructive: oklch(0.629 0.257 29.107);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.338 0.009 121.23);
  --chart-1: oklch(0.338 0.009 121.23);
  --chart-2: oklch(0.337 0.008 96.438);
  --chart-3: oklch(0.335 0.011 139.962);
  --chart-4: oklch(0.368 0.009 96.445);
  --chart-5: oklch(0.342 0.015 121.497);
}