Potable for shadcn/ui

Potable is a shadcn/ui theme built around a deep blue primary color (#172631) with deep blue accents (#171931). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the deep blue primary (#172631) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#fbfdfewhite
#030607black
Foreground
#050e15black
#ffffffwhite
Card
#fbfdfewhite
#030607black
Card foreground
#050e15black
#ffffffwhite
Popover
#fbfdfewhite
#030607black
Popover foreground
#050e15black
#ffffffwhite
Primary
#172631darkslategray
#172631darkslategray
Primary foreground
#a5c1d5lightsteelblue
#a5c1d5lightsteelblue
Secondary
#17312edarkslategray
#17312edarkslategray
Secondary foreground
#a5d5d0lightblue
#a5d5d0lightblue
Muted
#d5ebe9gainsboro
#142a27black
Muted foreground
#4a6461dimgray
#9bb5b3darkgray
Accent
#171931black
#171931black
Accent foreground
#a5aad5lightsteelblue
#a5aad5lightsteelblue
Destructive
#6f2602maroon
#fc6e27tomato
Destructive foreground
#fec2a5navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#172631darkslategray
#172631darkslategray

Contrast

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

Light mode
Text on background19.02:1AAA
Text on card19.02:1AAA
Primary button8.22:1AAA
Secondary button8.64:1AAA
Muted text5.15:1AA
Accent7.61:1AAA
Destructive6.92:1AA
Dark mode
Text on background20.36:1AAA
Text on card20.36:1AAA
Primary button8.22:1AAA
Secondary button8.64:1AAA
Muted text6.97:1AA
Accent7.61:1AAA
Destructive7.38:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 236.465);
  --foreground: oklch(0.159 0.021 236.204);
  --muted: oklch(0.924 0.023 189.493);
  --muted-foreground: oklch(0.481 0.031 188.539);
  --popover: oklch(0.992 0.002 236.465);
  --popover-foreground: oklch(0.159 0.021 236.204);
  --card: oklch(0.992 0.002 236.465);
  --card-foreground: oklch(0.159 0.021 236.204);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.261 0.028 238.492);
  --primary-foreground: oklch(0.797 0.041 237.245);
  --secondary: oklch(0.29 0.032 187.231);
  --secondary-foreground: oklch(0.837 0.05 188.664);
  --accent: oklch(0.226 0.045 277.35);
  --accent-foreground: oklch(0.748 0.062 279.822);
  --destructive: oklch(0.373 0.111 41.804);
  --destructive-foreground: oklch(0.861 0.079 47.779);
  --ring: oklch(0.261 0.028 238.492);
  --chart-1: oklch(0.261 0.028 238.492);
  --chart-2: oklch(0.29 0.032 187.231);
  --chart-3: oklch(0.226 0.045 277.35);
  --chart-4: oklch(0.327 0.038 187.104);
  --chart-5: oklch(0.261 0.031 238.718);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.01 230.608);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.264 0.028 187.341);
  --muted-foreground: oklch(0.754 0.029 189.192);
  --popover: oklch(0.115 0.01 230.608);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.115 0.01 230.608);
  --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.261 0.028 238.492);
  --primary-foreground: oklch(0.797 0.041 237.245);
  --secondary: oklch(0.29 0.032 187.231);
  --secondary-foreground: oklch(0.837 0.05 188.664);
  --accent: oklch(0.226 0.045 277.35);
  --accent-foreground: oklch(0.748 0.062 279.822);
  --destructive: oklch(0.703 0.19 43.168);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.261 0.028 238.492);
  --chart-1: oklch(0.261 0.028 238.492);
  --chart-2: oklch(0.29 0.032 187.231);
  --chart-3: oklch(0.226 0.045 277.35);
  --chart-4: oklch(0.327 0.038 187.104);
  --chart-5: oklch(0.261 0.031 238.718);
}