Fan for shadcn/ui

Fan is a shadcn/ui theme built around a muted blue primary color (#96a0b0) with muted orange accents (#b0a796). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the muted blue primary (#96a0b0) on a neutral background (#020204).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#020204black
Foreground
#050b15black
#ffffffwhite
Card
#f8f9fcghostwhite
#020204black
Card foreground
#050b15black
#ffffffwhite
Popover
#f8f9fcghostwhite
#020204black
Popover foreground
#050b15black
#ffffffwhite
Primary
#96a0b0darkgray
#96a0b0darkgray
Primary foreground
#090a0cblack
#090a0cblack
Secondary
#b0a796darkgray
#b0a796darkgray
Secondary foreground
#0c0b09black
#0c0b09black
Muted
#e8e6e3gainsboro
#1c1a17black
Muted foreground
#66625cdimgray
#a39f99darkgray
Accent
#b0a796darkgray
#b0a796darkgray
Accent foreground
#0c0b09black
#0c0b09black
Destructive
#6b2a05saddlebrown
#e0590bchocolate
Destructive foreground
#fbc6a7navajowhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#96a0b0darkgray
#96a0b0darkgray

Contrast

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

Light mode
Text on background18.78:1AAA
Text on card18.78:1AAA
Primary button7.49:1AAA
Secondary button8.23:1AAA
Muted text4.86:1AA
Accent8.23:1AAA
Destructive6.98:1AA
Dark mode
Text on background20.72:1AAA
Text on card20.72:1AAA
Primary button7.49:1AAA
Secondary button8.23:1AAA
Muted text6.59:1AA
Accent8.23:1AAA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.003 261.513);
  --foreground: oklch(0.147 0.024 257.633);
  --muted: oklch(0.926 0.004 81.513);
  --muted-foreground: oklch(0.498 0.011 81.494);
  --popover: oklch(0.983 0.003 261.513);
  --popover-foreground: oklch(0.147 0.024 257.633);
  --card: oklch(0.983 0.003 261.513);
  --card-foreground: oklch(0.147 0.024 257.633);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.703 0.026 261.461);
  --primary-foreground: oklch(0.143 0.004 260.514);
  --secondary: oklch(0.731 0.025 81.455);
  --secondary-foreground: oklch(0.148 0.004 82.031);
  --accent: oklch(0.731 0.025 81.455);
  --accent-foreground: oklch(0.148 0.004 82.031);
  --destructive: oklch(0.374 0.103 44.888);
  --destructive-foreground: oklch(0.866 0.073 51.5);
  --ring: oklch(0.703 0.026 261.461);
  --chart-1: oklch(0.703 0.026 261.461);
  --chart-2: oklch(0.731 0.025 81.455);
  --chart-3: oklch(0.731 0.025 81.455);
  --chart-4: oklch(0.754 0.023 81.469);
  --chart-5: oklch(0.7 0.032 261.438);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.088 0.007 256.111);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.219 0.006 81.477);
  --muted-foreground: oklch(0.705 0.01 81.506);
  --popover: oklch(0.088 0.007 256.111);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.088 0.007 256.111);
  --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.703 0.026 261.461);
  --primary-foreground: oklch(0.143 0.004 260.514);
  --secondary: oklch(0.731 0.025 81.455);
  --secondary-foreground: oklch(0.148 0.004 82.031);
  --accent: oklch(0.731 0.025 81.455);
  --accent-foreground: oklch(0.148 0.004 82.031);
  --destructive: oklch(0.631 0.184 42.824);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.703 0.026 261.461);
  --chart-1: oklch(0.703 0.026 261.461);
  --chart-2: oklch(0.731 0.025 81.455);
  --chart-3: oklch(0.731 0.025 81.455);
  --chart-4: oklch(0.754 0.023 81.469);
  --chart-5: oklch(0.7 0.032 261.438);
}