Husky for shadcn/ui

Husky is a shadcn/ui theme built around a muted light blue primary color (#e7ebef) with muted light indigo accents (#e7e7ef). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the muted light blue primary (#e7ebef) on a neutral background (#020508).

Color palette

TokenLightDark
Background
#fbfcfewhite
#020508black
Foreground
#020a12black
#fcfcfdwhite
Card
#fbfcfewhite
#020508black
Card foreground
#020a12black
#fcfcfdwhite
Popover
#fbfcfewhite
#020508black
Popover foreground
#020a12black
#fcfcfdwhite
Primary
#e7ebeflavender
#e7ebeflavender
Primary foreground
#415262darkslategray
#415262darkslategray
Secondary
#e7efeflavender
#e7efeflavender
Secondary foreground
#182525black
#182525black
Muted
#dee8e8gainsboro
#172121black
Muted foreground
#596464dimgray
#9ba6a6darkgray
Accent
#e7e7eflavender
#e7e7eflavender
Accent foreground
#414262darkslategray
#414262darkslategray
Destructive
#801500maroon
#ff2a00orangered
Destructive foreground
#ffbfb3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e7ebeflavender
#e7ebeflavender

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button6.70:1AA
Secondary button13.48:1AAA
Muted text4.90:1AA
Accent7.80:1AAA
Destructive6.61:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button6.70:1AA
Secondary button13.48:1AAA
Muted text6.56:1AA
Accent7.80:1AAA
Destructive3.75:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 245.992);
  --foreground: oklch(0.141 0.024 240.235);
  --muted: oklch(0.924 0.011 195.759);
  --muted-foreground: oklch(0.494 0.014 195.487);
  --popover: oklch(0.992 0.002 245.992);
  --popover-foreground: oklch(0.141 0.024 240.235);
  --card: oklch(0.992 0.002 245.992);
  --card-foreground: oklch(0.141 0.024 240.235);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.937 0.007 246.053);
  --primary-foreground: oklch(0.431 0.034 246.873);
  --secondary: oklch(0.945 0.009 195.813);
  --secondary-foreground: oklch(0.252 0.017 194.836);
  --accent: oklch(0.929 0.011 285.408);
  --accent-foreground: oklch(0.392 0.054 282.863);
  --destructive: oklch(0.387 0.143 32.879);
  --destructive-foreground: oklch(0.86 0.076 31.483);
  --ring: oklch(0.937 0.007 246.053);
  --chart-1: oklch(0.937 0.007 246.053);
  --chart-2: oklch(0.945 0.009 195.813);
  --chart-3: oklch(0.929 0.011 285.408);
  --chart-4: oklch(0.966 0.005 195.876);
  --chart-5: oklch(0.937 0.008 246.066);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.113 0.012 238.565);
  --foreground: oklch(0.992 0.001 245.975);
  --muted: oklch(0.239 0.015 194.908);
  --muted-foreground: oklch(0.717 0.013 195.664);
  --popover: oklch(0.113 0.012 238.565);
  --popover-foreground: oklch(0.992 0.001 245.975);
  --card: oklch(0.113 0.012 238.565);
  --card-foreground: oklch(0.992 0.001 245.975);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.937 0.007 246.053);
  --primary-foreground: oklch(0.431 0.034 246.873);
  --secondary: oklch(0.945 0.009 195.813);
  --secondary-foreground: oklch(0.252 0.017 194.836);
  --accent: oklch(0.929 0.011 285.408);
  --accent-foreground: oklch(0.392 0.054 282.863);
  --destructive: oklch(0.641 0.245 31.636);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.937 0.007 246.053);
  --chart-1: oklch(0.937 0.007 246.053);
  --chart-2: oklch(0.945 0.009 195.813);
  --chart-3: oklch(0.929 0.011 285.408);
  --chart-4: oklch(0.966 0.005 195.876);
  --chart-5: oklch(0.937 0.008 246.066);
}