Potable for shadcn/ui

Potable is a shadcn/ui theme built around a near-black primary color (#0d0f00) with near-black accents (#060f00). The light mode uses a neutral background (#fdfefb). Dark mode keeps the near-black primary (#0d0f00) on a neutral background (#070802).

Color palette

TokenLightDark
Background
#fdfefbwhite
#070802black
Foreground
#080901black
#fdfdfcwhite
Card
#fdfefbwhite
#070802black
Card foreground
#080901black
#fdfdfcwhite
Popover
#fdfefbwhite
#070802black
Popover foreground
#080901black
#fdfdfcwhite
Primary
#0d0f00black
#0d0f00black
Primary foreground
#bedb00greenyellow
#bedb00greenyellow
Secondary
#0f0a00black
#0f0a00black
Secondary foreground
#db8b00darkorange
#db8b00darkorange
Muted
#ede9e3linen
#1c1812black
Muted foreground
#4f483bdarkolivegreen
#c4bdb0silver
Accent
#060f00black
#060f00black
Accent foreground
#50db00lawngreen
#50db00lawngreen
Destructive
#8a210fsaddlebrown
#ec5f46tomato
Destructive foreground
#fad7d1bisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d0f00black
#0d0f00black

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button12.24:1AAA
Secondary button7.24:1AAA
Muted text7.49:1AAA
Accent10.65:1AAA
Destructive6.78:1AA
Dark mode
Text on background19.73:1AAA
Text on card19.73:1AAA
Primary button12.24:1AAA
Secondary button7.24:1AAA
Muted text9.45:1AAA
Accent10.65:1AAA
Destructive6.28:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 112.612);
  --foreground: oklch(0.135 0.025 113.926);
  --muted: oklch(0.936 0.009 81.51);
  --muted-foreground: oklch(0.404 0.023 81.328);
  --popover: oklch(0.995 0.004 112.612);
  --popover-foreground: oklch(0.135 0.025 113.926);
  --card: oklch(0.995 0.004 112.612);
  --card-foreground: oklch(0.135 0.025 113.926);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.162 0.037 115.056);
  --primary-foreground: oklch(0.841 0.198 118.975);
  --secondary: oklch(0.147 0.03 90.16);
  --secondary-foreground: oklch(0.703 0.153 69.269);
  --accent: oklch(0.154 0.042 131.644);
  --accent-foreground: oklch(0.785 0.248 139.065);
  --destructive: oklch(0.42 0.144 32.302);
  --destructive-foreground: oklch(0.907 0.04 29.688);
  --ring: oklch(0.162 0.037 115.056);
  --chart-1: oklch(0.162 0.037 115.056);
  --chart-2: oklch(0.147 0.03 90.16);
  --chart-3: oklch(0.154 0.042 131.644);
  --chart-4: oklch(0.198 0.041 82.24);
  --chart-5: oklch(0.163 0.038 115.119);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.019 113.661);
  --foreground: oklch(0.993 0.001 112.563);
  --muted: oklch(0.212 0.013 81.31);
  --muted-foreground: oklch(0.801 0.02 81.485);
  --popover: oklch(0.131 0.019 113.661);
  --popover-foreground: oklch(0.993 0.001 112.563);
  --card: oklch(0.131 0.019 113.661);
  --card-foreground: oklch(0.993 0.001 112.563);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.162 0.037 115.056);
  --primary-foreground: oklch(0.841 0.198 118.975);
  --secondary: oklch(0.147 0.03 90.16);
  --secondary-foreground: oklch(0.703 0.153 69.269);
  --accent: oklch(0.154 0.042 131.644);
  --accent-foreground: oklch(0.785 0.248 139.065);
  --destructive: oklch(0.662 0.179 32.101);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.162 0.037 115.056);
  --chart-1: oklch(0.162 0.037 115.056);
  --chart-2: oklch(0.147 0.03 90.16);
  --chart-3: oklch(0.154 0.042 131.644);
  --chart-4: oklch(0.198 0.041 82.24);
  --chart-5: oklch(0.163 0.038 115.119);
}