Active for shadcn/ui

Active is a shadcn/ui theme built around a neutral gray primary color (#858585) with muted red accents (#cbafaf). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#858585) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#150505black
#faf5f5whitesmoke
Card
#ffffffwhite
#000000black
Card foreground
#150505black
#faf5f5whitesmoke
Popover
#ffffffwhite
#000000black
Popover foreground
#150505black
#faf5f5whitesmoke
Primary
#858585gray
#858585gray
Primary foreground
#000000black
#000000black
Secondary
#d9cecelightgrey
#372f2fdarkslategray
Secondary foreground
#423333darkslategray
#d0c8c8lightgrey
Muted
#ebd6d6gainsboro
#291414black
Muted foreground
#4a4040darkslategray
#bfb5b5silver
Accent
#cbafafsilver
#4b3a3adarkslategray
Accent foreground
#2b1c1cblack
#e0d7d7gainsboro
Destructive
#682103maroon
#f96c2ftomato
Destructive foreground
#fcbca1lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#858585gray
#858585gray

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button5.66:1AA
Secondary button7.80:1AAA
Muted text7.20:1AAA
Accent7.98:1AAA
Destructive7.09:1AAA
Dark mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button5.66:1AA
Secondary button7.91:1AAA
Muted text8.69:1AAA
Accent7.59:1AAA
Destructive7.18:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.032 22.004);
  --muted: oklch(0.893 0.023 17.593);
  --muted-foreground: oklch(0.381 0.013 17.751);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.143 0.032 22.004);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.143 0.032 22.004);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.615 0 180);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.861 0.013 17.4);
  --secondary-foreground: oklch(0.338 0.022 18.302);
  --accent: oklch(0.777 0.032 17.869);
  --accent-foreground: oklch(0.246 0.024 18.912);
  --destructive: oklch(0.355 0.108 39.98);
  --destructive-foreground: oklch(0.848 0.083 44.227);
  --ring: oklch(0.615 0 180);
  --chart-1: oklch(0.615 0 180);
  --chart-2: oklch(0.861 0.013 17.4);
  --chart-3: oklch(0.777 0.032 17.869);
  --chart-4: oklch(0.886 0.01 17.35);
  --chart-5: oklch(0.609 0.009 17.401);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.974 0.005 17.241);
  --muted: oklch(0.222 0.034 20.173);
  --muted-foreground: oklch(0.782 0.011 17.391);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.974 0.005 17.241);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.974 0.005 17.241);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.615 0 180);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.315 0.01 17.715);
  --secondary-foreground: oklch(0.84 0.008 17.315);
  --accent: oklch(0.366 0.024 18.332);
  --accent-foreground: oklch(0.886 0.01 17.35);
  --destructive: oklch(0.695 0.187 41.334);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.615 0 180);
  --chart-1: oklch(0.615 0 180);
  --chart-2: oklch(0.315 0.01 17.715);
  --chart-3: oklch(0.366 0.024 18.332);
  --chart-4: oklch(0.344 0.012 17.732);
  --chart-5: oklch(0.609 0.009 17.401);
}