Shaw for shadcn/ui

Shaw is a shadcn/ui theme built around a muted indigo primary color (#a3a0b6) with muted green accents (#a0b6a3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted indigo primary (#a3a0b6) on a neutral background (#020204).

Color palette

TokenLightDark
Background
#ffffffwhite
#020204black
Foreground
#040212black
#f6f6f9whitesmoke
Card
#fcfcfcsnow
#040307black
Card foreground
#03020eblack
#f9f9fbghostwhite
Popover
#ffffffwhite
#020204black
Popover foreground
#040212black
#f6f6f9whitesmoke
Primary
#a3a0b6darkgray
#a3a0b6darkgray
Primary foreground
#101014black
#101014black
Secondary
#b6a3a0darkgray
#b6a3a0darkgray
Secondary foreground
#141010black
#141010black
Muted
#e8dbd8gainsboro
#271917black
Muted foreground
#6c5956dimgray
#a99693rosybrown
Accent
#a0b6a3darkgray
#a0b6a3darkgray
Accent foreground
#101410black
#101410black
Destructive
#a32d05firebrick
#ed4107orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a3a0b6darkgray
#a3a0b6darkgray

Contrast

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

Light mode
Text on background20.53:1AAA
Text on card20.16:1AAA
Primary button7.45:1AAA
Secondary button7.84:1AAA
Muted text4.85:1AA
Accent8.58:1AAA
Destructive7.15:1AAA
Dark mode
Text on background19.26:1AAA
Text on card19.56:1AAA
Primary button7.45:1AAA
Secondary button7.84:1AAA
Muted text6.05:1AA
Accent8.58:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.111 0.041 287.496);
  --muted: oklch(0.901 0.016 28.027);
  --muted-foreground: oklch(0.482 0.025 28.283);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.111 0.041 287.496);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.1 0.036 288.531);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.715 0.032 291.699);
  --primary-foreground: oklch(0.174 0.01 291.488);
  --secondary: oklch(0.73 0.023 28.12);
  --secondary-foreground: oklch(0.178 0.007 28.176);
  --accent: oklch(0.753 0.036 149.074);
  --accent-foreground: oklch(0.185 0.011 148.933);
  --destructive: oklch(0.477 0.161 35.817);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.715 0.032 291.699);
  --chart-1: oklch(0.715 0.032 291.699);
  --chart-2: oklch(0.73 0.023 28.12);
  --chart-3: oklch(0.753 0.036 149.074);
  --chart-4: oklch(0.756 0.02 28.091);
  --chart-5: oklch(0.709 0.039 291.488);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.012 291.21);
  --foreground: oklch(0.973 0.004 292.457);
  --muted: oklch(0.229 0.023 28.763);
  --muted-foreground: oklch(0.689 0.022 28.131);
  --popover: oklch(0.081 0.012 291.21);
  --popover-foreground: oklch(0.973 0.004 292.457);
  --card: oklch(0.102 0.015 291.21);
  --card-foreground: oklch(0.982 0.003 292.487);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.715 0.032 291.699);
  --primary-foreground: oklch(0.174 0.01 291.488);
  --secondary: oklch(0.73 0.023 28.12);
  --secondary-foreground: oklch(0.178 0.007 28.176);
  --accent: oklch(0.753 0.036 149.074);
  --accent-foreground: oklch(0.185 0.011 148.933);
  --destructive: oklch(0.627 0.216 35.192);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.715 0.032 291.699);
  --chart-1: oklch(0.715 0.032 291.699);
  --chart-2: oklch(0.73 0.023 28.12);
  --chart-3: oklch(0.753 0.036 149.074);
  --chart-4: oklch(0.756 0.02 28.091);
  --chart-5: oklch(0.709 0.039 291.488);
}