Weasel for shadcn/ui

Weasel is a shadcn/ui theme built around an indigo primary color (#2a209d) with violet accents (#69209d). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#2a209d) on a neutral background (#030307).

Color palette

TokenLightDark
Background
#ffffffwhite
#030307black
Foreground
#060415black
#fcfbfdsnow
Card
#ffffffwhite
#030307black
Card foreground
#060415black
#fcfbfdsnow
Popover
#ffffffwhite
#030307black
Popover foreground
#060415black
#fcfbfdsnow
Primary
#2a209ddarkslateblue
#2a209ddarkslateblue
Primary foreground
#f3f2fcaliceblue
#f3f2fcaliceblue
Secondary
#20549ddarkslateblue
#20549ddarkslateblue
Secondary foreground
#f2f7fcaliceblue
#f2f7fcaliceblue
Muted
#dce0e5gainsboro
#1a1e23black
Muted foreground
#545b63dimgray
#9ca2abdarkgray
Accent
#69209drebeccapurple
#69209drebeccapurple
Accent foreground
#f8f2fcghostwhite
#f8f2fcghostwhite
Destructive
#9e1c05darkred
#f95639tomato
Destructive foreground
#feddd7mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#2a209ddarkslateblue
#2a209ddarkslateblue

Contrast

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

Light mode
Text on background20.27:1AAA
Text on card20.27:1AAA
Primary button10.55:1AAA
Secondary button6.92:1AA
Muted text5.17:1AA
Accent8.34:1AAA
Destructive6.29:1AA
Dark mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button10.55:1AAA
Secondary button6.92:1AA
Muted text6.51:1AA
Accent8.34:1AAA
Destructive6.41:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.039 284.517);
  --muted: oklch(0.904 0.008 256.686);
  --muted-foreground: oklch(0.467 0.016 256.759);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.126 0.039 284.517);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.126 0.039 284.517);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.36 0.188 275.029);
  --primary-foreground: oklch(0.966 0.013 289.984);
  --secondary: oklch(0.452 0.131 257.678);
  --secondary-foreground: oklch(0.973 0.009 256.688);
  --accent: oklch(0.425 0.188 306.14);
  --accent-foreground: oklch(0.969 0.015 311.602);
  --destructive: oklch(0.453 0.168 31.894);
  --destructive-foreground: oklch(0.924 0.037 29.661);
  --ring: oklch(0.36 0.188 275.029);
  --chart-1: oklch(0.36 0.188 275.029);
  --chart-2: oklch(0.452 0.131 257.678);
  --chart-3: oklch(0.425 0.188 306.14);
  --chart-4: oklch(0.478 0.139 257.709);
  --chart-5: oklch(0.359 0.195 274.052);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.102 0.015 288.395);
  --foreground: oklch(0.99 0.003 290.197);
  --muted: oklch(0.233 0.011 256.785);
  --muted-foreground: oklch(0.71 0.014 256.724);
  --popover: oklch(0.102 0.015 288.395);
  --popover-foreground: oklch(0.99 0.003 290.197);
  --card: oklch(0.102 0.015 288.395);
  --card-foreground: oklch(0.99 0.003 290.197);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.36 0.188 275.029);
  --primary-foreground: oklch(0.966 0.013 289.984);
  --secondary: oklch(0.452 0.131 257.678);
  --secondary-foreground: oklch(0.973 0.009 256.688);
  --accent: oklch(0.425 0.188 306.14);
  --accent-foreground: oklch(0.969 0.015 311.602);
  --destructive: oklch(0.67 0.204 32.344);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.36 0.188 275.029);
  --chart-1: oklch(0.36 0.188 275.029);
  --chart-2: oklch(0.452 0.131 257.678);
  --chart-3: oklch(0.425 0.188 306.14);
  --chart-4: oklch(0.478 0.139 257.709);
  --chart-5: oklch(0.359 0.195 274.052);
}