Utter for shadcn/ui

Utter is a shadcn/ui theme built around a near-black primary color (#161315) with near-black accents (#161313). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the near-black primary (#161315) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8fbsnow
#000000black
Foreground
#000000black
#fdfbfdsnow
Card
#faf4f8whitesmoke
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcf8fbsnow
#000000black
Popover foreground
#000000black
#fdfbfdsnow
Primary
#161315black
#161315black
Primary foreground
#b3a8afdarkgray
#b3a8afdarkgray
Secondary
#151316black
#151316black
Secondary foreground
#b1a8b3darkgray
#b1a8b3darkgray
Muted
#ebe3edlavender
#1a121cblack
Muted foreground
#67516cdimgray
#a993aedarkgray
Accent
#161313black
#161313black
Accent foreground
#b3a8aadarkgray
#b3a8aadarkgray
Destructive
#a5330dfirebrick
#f06e42tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#161315black
#161315black

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.42:1AAA
Primary button8.03:1AAA
Secondary button8.02:1AAA
Muted text5.64:1AA
Accent8.00:1AAA
Destructive6.80:1AA
Dark mode
Text on background20.39:1AAA
Text on card20.67:1AAA
Primary button8.03:1AAA
Secondary button8.02:1AAA
Muted text6.50:1AA
Accent8.00:1AAA
Destructive6.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 337.374);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.926 0.015 320.557);
  --muted-foreground: oklch(0.468 0.05 320.683);
  --popover: oklch(0.983 0.005 337.374);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.974 0.008 337.43);
  --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.191 0.006 337.88);
  --primary-foreground: oklch(0.743 0.017 337.717);
  --secondary: oklch(0.191 0.007 320.586);
  --secondary-foreground: oklch(0.742 0.019 320.572);
  --accent: oklch(0.19 0.005 6.089);
  --accent-foreground: oklch(0.741 0.013 5.916);
  --destructive: oklch(0.488 0.156 36.662);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.191 0.006 337.88);
  --chart-1: oklch(0.191 0.006 337.88);
  --chart-2: oklch(0.191 0.007 320.586);
  --chart-3: oklch(0.19 0.005 6.089);
  --chart-4: oklch(0.224 0.009 320.593);
  --chart-5: oklch(0.19 0.008 338.142);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.991 0.003 337.321);
  --muted: oklch(0.198 0.023 320.692);
  --muted-foreground: oklch(0.693 0.045 320.63);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.991 0.003 337.321);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.191 0.006 337.88);
  --primary-foreground: oklch(0.743 0.017 337.717);
  --secondary: oklch(0.191 0.007 320.586);
  --secondary-foreground: oklch(0.742 0.019 320.572);
  --accent: oklch(0.19 0.005 6.089);
  --accent-foreground: oklch(0.741 0.013 5.916);
  --destructive: oklch(0.687 0.171 38.621);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.191 0.006 337.88);
  --chart-1: oklch(0.191 0.006 337.88);
  --chart-2: oklch(0.191 0.007 320.586);
  --chart-3: oklch(0.19 0.005 6.089);
  --chart-4: oklch(0.224 0.009 320.593);
  --chart-5: oklch(0.19 0.008 338.142);
}