Pardon for shadcn/ui

Pardon is a shadcn/ui theme built around a neutral gray primary color (#999b9f) with muted light blue accents (#c6cbd2). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#999b9f) on a blue-tinted background (#05090f).

Color palette

TokenLightDark
Background
#ffffffwhite
#05090fblack
Foreground
#040b15black
#f5f7fawhitesmoke
Card
#ffffffwhite
#05090fblack
Card foreground
#040b15black
#f5f7fawhitesmoke
Popover
#ffffffwhite
#05090fblack
Popover foreground
#040b15black
#f5f7fawhitesmoke
Primary
#999b9fdarkgray
#999b9fdarkgray
Primary foreground
#020303black
#020303black
Secondary
#c6cbd2lightgrey
#2c2e30darkslategray
Secondary foreground
#2d3239darkslategray
#c5c7c9silver
Muted
#e9ecf2lavender
#0d1116black
Muted foreground
#3d3f42darkslategray
#bdbfc2silver
Accent
#c6cbd2lightgrey
#2c2e30darkslategray
Accent foreground
#2d3239darkslategray
#c5c7c9silver
Destructive
#cc0300red
#eb0400red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#999b9fdarkgray
#999b9fdarkgray

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.73:1AAA
Primary button7.41:1AAA
Secondary button7.92:1AAA
Muted text8.94:1AAA
Accent7.92:1AAA
Destructive5.86:1AA
Dark mode
Text on background18.55:1AAA
Text on card18.55:1AAA
Primary button7.41:1AAA
Secondary button8.07:1AAA
Muted text10.26:1AAA
Accent8.07:1AAA
Destructive4.62:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.149 0.025 253.203);
  --muted: oklch(0.943 0.008 256.686);
  --muted-foreground: oklch(0.368 0.006 256.711);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.149 0.025 253.203);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.149 0.025 253.203);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.689 0.006 256.685);
  --primary-foreground: oklch(0.092 0.001 256.247);
  --secondary: oklch(0.841 0.01 256.699);
  --secondary-foreground: oklch(0.315 0.013 256.776);
  --accent: oklch(0.841 0.01 256.699);
  --accent-foreground: oklch(0.315 0.013 256.776);
  --destructive: oklch(0.532 0.217 29.405);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.689 0.006 256.685);
  --chart-1: oklch(0.689 0.006 256.685);
  --chart-2: oklch(0.841 0.01 256.699);
  --chart-3: oklch(0.841 0.01 256.699);
  --chart-4: oklch(0.865 0.009 256.692);
  --chart-5: oklch(0.686 0.012 256.714);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.015 252.476);
  --foreground: oklch(0.975 0.005 256.672);
  --muted: oklch(0.177 0.012 256.815);
  --muted-foreground: oklch(0.803 0.005 256.676);
  --popover: oklch(0.14 0.015 252.476);
  --popover-foreground: oklch(0.975 0.005 256.672);
  --card: oklch(0.14 0.015 252.476);
  --card-foreground: oklch(0.975 0.005 256.672);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.689 0.006 256.685);
  --primary-foreground: oklch(0.092 0.001 256.247);
  --secondary: oklch(0.299 0.004 256.707);
  --secondary-foreground: oklch(0.827 0.004 256.672);
  --accent: oklch(0.299 0.004 256.707);
  --accent-foreground: oklch(0.827 0.004 256.672);
  --destructive: oklch(0.59 0.241 29.378);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.689 0.006 256.685);
  --chart-1: oklch(0.689 0.006 256.685);
  --chart-2: oklch(0.299 0.004 256.707);
  --chart-3: oklch(0.299 0.004 256.707);
  --chart-4: oklch(0.329 0.005 256.709);
  --chart-5: oklch(0.686 0.012 256.714);
}