Potable for shadcn/ui

Potable is a shadcn/ui theme built around a deep blue primary color (#27334f) with deep green accents (#334f27). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#27334f) on a blue-tinted background (#06090e).

Color palette

TokenLightDark
Background
#ffffffwhite
#06090eblack
Foreground
#02050eblack
#f5f7f9whitesmoke
Card
#fcfcfcsnow
#080b12black
Card foreground
#010409black
#f9f9fbghostwhite
Popover
#fcfcfcsnow
#080b12black
Popover foreground
#010409black
#f9f9fbghostwhite
Primary
#27334fdarkslategray
#27334fdarkslategray
Primary foreground
#c5cee2lightgrey
#c5cee2lightgrey
Secondary
#4f2733darkslategray
#4f2733darkslategray
Secondary foreground
#e2c5cethistle
#e2c5cethistle
Muted
#e3d3d8gainsboro
#2c1c21black
Muted foreground
#514347darkslategray
#bcaeb2darkgray
Accent
#334f27darkslategray
#334f27darkslategray
Accent foreground
#cee2c5lightgrey
#cee2c5lightgrey
Destructive
#883606saddlebrown
#e55b0bchocolate
Destructive foreground
#fcd9c5bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#27334fdarkslategray
#27334fdarkslategray

Contrast

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

Light mode
Text on background20.37:1AAA
Text on card20.09:1AAA
Primary button7.93:1AAA
Secondary button7.88:1AAA
Muted text6.52:1AA
Accent6.72:1AA
Destructive6.13:1AA
Dark mode
Text on background18.57:1AAA
Text on card18.72:1AAA
Primary button7.93:1AAA
Secondary button7.88:1AAA
Muted text7.61:1AAA
Accent6.72:1AA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.117 0.023 254.926);
  --muted: oklch(0.882 0.019 356.216);
  --muted-foreground: oklch(0.398 0.022 357.129);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.102 0.02 254.202);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.102 0.02 254.202);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.324 0.052 264.692);
  --primary-foreground: oklch(0.851 0.03 265.813);
  --secondary: oklch(0.329 0.062 0.833);
  --secondary-foreground: oklch(0.851 0.035 356.787);
  --accent: oklch(0.393 0.072 136.473);
  --accent-foreground: oklch(0.891 0.045 135.653);
  --destructive: oklch(0.442 0.124 44.038);
  --destructive-foreground: oklch(0.909 0.048 51.905);
  --ring: oklch(0.324 0.052 264.692);
  --chart-1: oklch(0.324 0.052 264.692);
  --chart-2: oklch(0.329 0.062 0.833);
  --chart-3: oklch(0.393 0.072 136.473);
  --chart-4: oklch(0.357 0.068 0.964);
  --chart-5: oklch(0.323 0.056 264.535);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.013 262.457);
  --foreground: oklch(0.975 0.004 265.989);
  --muted: oklch(0.248 0.026 358.511);
  --muted-foreground: oklch(0.764 0.018 356.292);
  --popover: oklch(0.149 0.015 264.469);
  --popover-foreground: oklch(0.983 0.003 265.995);
  --card: oklch(0.149 0.015 264.469);
  --card-foreground: oklch(0.983 0.003 265.995);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.324 0.052 264.692);
  --primary-foreground: oklch(0.851 0.03 265.813);
  --secondary: oklch(0.329 0.062 0.833);
  --secondary-foreground: oklch(0.851 0.035 356.787);
  --accent: oklch(0.393 0.072 136.473);
  --accent-foreground: oklch(0.891 0.045 135.653);
  --destructive: oklch(0.642 0.187 42.783);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.324 0.052 264.692);
  --chart-1: oklch(0.324 0.052 264.692);
  --chart-2: oklch(0.329 0.062 0.833);
  --chart-3: oklch(0.393 0.072 136.473);
  --chart-4: oklch(0.357 0.068 0.964);
  --chart-5: oklch(0.323 0.056 264.535);
}