Alligator for shadcn/ui

Alligator is a shadcn/ui theme built around a vivid red primary color (#db2c00) with neutral gray accents (#dddada). The light mode uses a neutral background (#fdfcfc). Dark mode keeps the vivid red primary (#db2c00) on a neutral background (#040201).

Color palette

TokenLightDark
Background
#fdfcfcsnow
#040201black
Foreground
#0e0402black
#fafaf9snow
Card
#fcf9f8snow
#080302black
Card foreground
#090301black
#fdfcfcsnow
Popover
#fcf9f8snow
#080302black
Popover foreground
#090301black
#fdfcfcsnow
Primary
#db2c00orangered
#db2c00orangered
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dddadagainsboro
#362d2bdarkslategray
Secondary foreground
#46403fdarkslategray
#cfc6c4silver
Muted
#e7e0dfgainsboro
#201a18black
Muted foreground
#5d5756dimgray
#a9a4a2darkgray
Accent
#dddadagainsboro
#362d2bdarkslategray
Accent foreground
#46403fdarkslategray
#cfc6c4silver
Destructive
#5d1209maroon
#ed5645tomato
Destructive foreground
#f6aba2lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#db2c00orangered
#db2c00orangered

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.52:1AAA
Primary button4.79:1AA
Secondary button7.32:1AAA
Muted text5.45:1AA
Accent7.32:1AAA
Destructive7.26:1AAA
Dark mode
Text on background19.85:1AAA
Text on card19.99:1AAA
Primary button4.79:1AA
Secondary button7.97:1AAA
Muted text6.98:1AA
Accent7.97:1AAA
Destructive6.00:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 34.315);
  --foreground: oklch(0.124 0.024 44.787);
  --muted: oklch(0.913 0.008 34.304);
  --muted-foreground: oklch(0.462 0.008 34.298);
  --popover: oklch(0.984 0.003 34.312);
  --popover-foreground: oklch(0.108 0.02 45.424);
  --card: oklch(0.984 0.003 34.312);
  --card-foreground: oklch(0.108 0.02 45.424);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.578 0.214 32.838);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.891 0.003 34.311);
  --secondary-foreground: oklch(0.378 0.008 34.297);
  --accent: oklch(0.891 0.003 34.311);
  --accent-foreground: oklch(0.378 0.008 34.297);
  --destructive: oklch(0.315 0.109 30.364);
  --destructive-foreground: oklch(0.81 0.09 26.278);
  --ring: oklch(0.578 0.214 32.838);
  --chart-1: oklch(0.578 0.214 32.838);
  --chart-2: oklch(0.891 0.003 34.311);
  --chart-3: oklch(0.891 0.003 34.311);
  --chart-4: oklch(0.915 0.003 34.312);
  --chart-5: oklch(0.582 0.218 32.68);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.087 0.012 41.531);
  --foreground: oklch(0.984 0.001 34.316);
  --muted: oklch(0.223 0.011 34.335);
  --muted-foreground: oklch(0.722 0.007 34.303);
  --popover: oklch(0.11 0.015 41.531);
  --popover-foreground: oklch(0.992 0.001 34.317);
  --card: oklch(0.11 0.015 41.531);
  --card-foreground: oklch(0.992 0.001 34.317);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.578 0.214 32.838);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.307 0.013 34.319);
  --secondary-foreground: oklch(0.833 0.011 34.299);
  --accent: oklch(0.307 0.013 34.319);
  --accent-foreground: oklch(0.833 0.011 34.299);
  --destructive: oklch(0.652 0.189 29.446);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.578 0.214 32.838);
  --chart-1: oklch(0.578 0.214 32.838);
  --chart-2: oklch(0.307 0.013 34.319);
  --chart-3: oklch(0.307 0.013 34.319);
  --chart-4: oklch(0.336 0.015 34.321);
  --chart-5: oklch(0.582 0.218 32.68);
}