Mouse for shadcn/ui

Mouse is a shadcn/ui theme built around a vivid blue primary color (#0664a7) with muted light blue accents (#ced7de). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#0664a7) on a neutral background (#040507).

Color palette

TokenLightDark
Background
#ffffffwhite
#040507black
Foreground
#000000black
#f5f8f9whitesmoke
Card
#fcfcfcsnow
#05080ablack
Card foreground
#000000black
#f9fafbghostwhite
Popover
#ffffffwhite
#040507black
Popover foreground
#000000black
#f5f8f9whitesmoke
Primary
#0664a7darkcyan
#0664a7darkcyan
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ced7delightgrey
#131516black
Secondary foreground
#323f49darkslategray
#a7aeb4darkgray
Muted
#d1dde6gainsboro
#19252edarkslategray
Muted foreground
#505e68dimgray
#97a5afdarkgray
Accent
#ced7delightgrey
#131516black
Accent foreground
#323f49darkslategray
#a7aeb4darkgray
Destructive
#8b210edarkred
#eb4e33tomato
Destructive foreground
#fad7d1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0664a7darkcyan
#0664a7darkcyan

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.18:1AA
Secondary button7.44:1AAA
Muted text4.83:1AA
Accent7.44:1AAA
Destructive6.76:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.20:1AAA
Primary button6.18:1AA
Secondary button8.18:1AAA
Muted text6.15:1AA
Accent8.18:1AAA
Destructive3.70:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.891 0.018 238.646);
  --muted-foreground: oklch(0.473 0.024 239.116);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.492 0.131 248.455);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.876 0.013 238.579);
  --secondary-foreground: oklch(0.36 0.024 239.431);
  --accent: oklch(0.876 0.013 238.579);
  --accent-foreground: oklch(0.36 0.024 239.431);
  --destructive: oklch(0.421 0.145 32.28);
  --destructive-foreground: oklch(0.907 0.041 29.692);
  --ring: oklch(0.492 0.131 248.455);
  --chart-1: oklch(0.492 0.131 248.455);
  --chart-2: oklch(0.876 0.013 238.579);
  --chart-3: oklch(0.876 0.013 238.579);
  --chart-4: oklch(0.899 0.011 238.532);
  --chart-5: oklch(0.495 0.135 248.876);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.007 234.263);
  --foreground: oklch(0.977 0.003 238.411);
  --muted: oklch(0.259 0.023 239.876);
  --muted-foreground: oklch(0.715 0.021 238.799);
  --popover: oklch(0.115 0.007 234.263);
  --popover-foreground: oklch(0.977 0.003 238.411);
  --card: oklch(0.132 0.008 234.263);
  --card-foreground: oklch(0.985 0.002 238.394);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.492 0.131 248.455);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.193 0.004 238.666);
  --secondary-foreground: oklch(0.748 0.012 238.584);
  --accent: oklch(0.193 0.004 238.666);
  --accent-foreground: oklch(0.748 0.012 238.584);
  --destructive: oklch(0.638 0.197 32.362);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.492 0.131 248.455);
  --chart-1: oklch(0.492 0.131 248.455);
  --chart-2: oklch(0.193 0.004 238.666);
  --chart-3: oklch(0.193 0.004 238.666);
  --chart-4: oklch(0.226 0.005 238.705);
  --chart-5: oklch(0.495 0.135 248.876);
}