Pretzel for shadcn/ui

Pretzel is a shadcn/ui theme built around a light blue primary color (#c5d9ec) with light indigo accents (#c5c6ec). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#c5d9ec) on a blue-tinted background (#04080b).

Color palette

TokenLightDark
Background
#ffffffwhite
#04080bblack
Foreground
#03080cblack
#f7f7f8whitesmoke
Card
#ffffffwhite
#04080bblack
Card foreground
#03080cblack
#f7f7f8whitesmoke
Popover
#ffffffwhite
#04080bblack
Popover foreground
#03080cblack
#f7f7f8whitesmoke
Primary
#c5d9ecpowderblue
#c5d9ecpowderblue
Primary foreground
#1f4160darkslategray
#1f4160darkslategray
Secondary
#c5ececpaleturquoise
#c5ececpaleturquoise
Secondary foreground
#061313black
#061313black
Muted
#d9e3e3gainsboro
#1c2626black
Muted foreground
#515252darkslategray
#adaeaedarkgray
Accent
#c5c6eclightsteelblue
#c5c6eclightsteelblue
Accent foreground
#1f2060midnightblue
#1f2060midnightblue
Destructive
#a13502saddlebrown
#fc6a27tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c5d9ecpowderblue
#c5d9ecpowderblue

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card20.11:1AAA
Primary button7.34:1AAA
Secondary button14.96:1AAA
Muted text5.98:1AA
Accent8.83:1AAA
Destructive6.97:1AA
Dark mode
Text on background18.79:1AAA
Text on card18.79:1AAA
Primary button7.34:1AAA
Secondary button14.96:1AAA
Muted text6.96:1AA
Accent8.83:1AAA
Destructive7.23:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.128 0.016 238.062);
  --muted: oklch(0.908 0.011 195.769);
  --muted-foreground: oklch(0.439 0.002 195.89);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.128 0.016 238.062);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.128 0.016 238.062);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.877 0.034 246.406);
  --primary-foreground: oklch(0.365 0.067 248.726);
  --secondary: oklch(0.916 0.04 195.221);
  --secondary-foreground: oklch(0.176 0.019 194.214);
  --accent: oklch(0.838 0.053 284.42);
  --accent-foreground: oklch(0.289 0.111 276.213);
  --destructive: oklch(0.481 0.152 39.305);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.877 0.034 246.406);
  --chart-1: oklch(0.877 0.034 246.406);
  --chart-2: oklch(0.916 0.04 195.221);
  --chart-3: oklch(0.838 0.053 284.42);
  --chart-4: oklch(0.933 0.033 195.375);
  --chart-5: oklch(0.877 0.036 246.432);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.012 239.589);
  --foreground: oklch(0.977 0.001 245.983);
  --muted: oklch(0.26 0.014 195.061);
  --muted-foreground: oklch(0.75 0.002 195.931);
  --popover: oklch(0.129 0.012 239.589);
  --popover-foreground: oklch(0.977 0.001 245.983);
  --card: oklch(0.129 0.012 239.589);
  --card-foreground: oklch(0.977 0.001 245.983);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.877 0.034 246.406);
  --primary-foreground: oklch(0.365 0.067 248.726);
  --secondary: oklch(0.916 0.04 195.221);
  --secondary-foreground: oklch(0.176 0.019 194.214);
  --accent: oklch(0.838 0.053 284.42);
  --accent-foreground: oklch(0.289 0.111 276.213);
  --destructive: oklch(0.698 0.193 41.907);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.877 0.034 246.406);
  --chart-1: oklch(0.877 0.034 246.406);
  --chart-2: oklch(0.916 0.04 195.221);
  --chart-3: oklch(0.838 0.053 284.42);
  --chart-4: oklch(0.933 0.033 195.375);
  --chart-5: oklch(0.877 0.036 246.432);
}