Utter for shadcn/ui

Utter is a shadcn/ui theme built around an indigo primary color (#6d73b0) with violet accents (#896db0). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#6d73b0) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#02030eblack
#f8f9fbghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#010209black
#fcfcfdwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#010209black
#fcfcfdwhite
Primary
#6d73b0lightslategray
#6d73b0lightslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#6d94b0cadetblue
#6d94b0cadetblue
Secondary foreground
#000000black
#000000black
Muted
#eff3f5whitesmoke
#0a0d10black
Muted foreground
#5b5c5ddimgray
#a2a3a4darkgray
Accent
#896db0lightslategray
#896db0lightslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a93c0asaddlebrown
#d94d0dchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6d73b0lightslategray
#6d73b0lightslategray

Contrast

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

Light mode
Text on background20.54:1AAA
Text on card20.26:1AAA
Primary button4.44:1AA Large
Secondary button6.54:1AA
Muted text5.99:1AA
Accent4.29:1AA Large
Destructive6.30:1AA
Dark mode
Text on background19.93:1AAA
Text on card20.16:1AAA
Primary button4.44:1AA Large
Secondary button6.54:1AA
Muted text7.70:1AAA
Accent4.29:1AA Large
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.032 272.142);
  --muted: oklch(0.961 0.005 238.438);
  --muted-foreground: oklch(0.474 0.002 238.417);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.089 0.027 272.122);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.089 0.027 272.122);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.576 0.095 278.999);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.649 0.06 239.933);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.589 0.105 302.491);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.505 0.153 40.163);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.576 0.095 278.999);
  --chart-1: oklch(0.576 0.095 278.999);
  --chart-2: oklch(0.649 0.06 239.933);
  --chart-3: oklch(0.589 0.105 302.491);
  --chart-4: oklch(0.674 0.056 239.725);
  --chart-5: oklch(0.569 0.104 278.571);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.982 0.004 282.149);
  --muted: oklch(0.158 0.008 239.121);
  --muted-foreground: oklch(0.716 0.002 238.395);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.991 0.002 282.181);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 282.181);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.576 0.095 278.999);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.649 0.06 239.933);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.589 0.105 302.491);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.606 0.186 39.722);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.576 0.095 278.999);
  --chart-1: oklch(0.576 0.095 278.999);
  --chart-2: oklch(0.649 0.06 239.933);
  --chart-3: oklch(0.589 0.105 302.491);
  --chart-4: oklch(0.674 0.056 239.725);
  --chart-5: oklch(0.569 0.104 278.571);
}