Private for shadcn/ui

Private is a shadcn/ui theme built around a neutral gray primary color (#5c5151) with neutral gray accents (#515c5c). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#5c5151) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#140505black
#f9f6f6whitesmoke
Card
#fcfcfcsnow
#030303black
Card foreground
#100404black
#fbf9f9snow
Popover
#ffffffwhite
#000000black
Popover foreground
#140505black
#f9f6f6whitesmoke
Primary
#5c5151dimgray
#5c5151dimgray
Primary foreground
#f1efefwhitesmoke
#f1efefwhitesmoke
Secondary
#515c5cdimgray
#515c5cdimgray
Secondary foreground
#eff1f1whitesmoke
#eff1f1whitesmoke
Muted
#edf7f7whitesmoke
#081212black
Muted foreground
#4c5757darkslategray
#a8b3b3darkgray
Accent
#515c5cdimgray
#515c5cdimgray
Accent foreground
#eff1f1whitesmoke
#eff1f1whitesmoke
Destructive
#a33c0fsaddlebrown
#e55315chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#5c5151dimgray
#5c5151dimgray

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card19.73:1AAA
Primary button6.62:1AA
Secondary button6.10:1AA
Muted text6.86:1AA
Accent6.10:1AA
Destructive6.54:1AA
Dark mode
Text on background19.54:1AAA
Text on card19.71:1AAA
Primary button6.62:1AA
Secondary button6.10:1AA
Muted text8.85:1AAA
Accent6.10:1AA
Destructive3.76:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.144 0.028 21.172);
  --muted: oklch(0.969 0.01 196.987);
  --muted-foreground: oklch(0.448 0.014 196.651);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.144 0.028 21.172);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.132 0.024 20.908);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.447 0.014 17.679);
  --primary-foreground: oklch(0.953 0.002 17.192);
  --secondary: oklch(0.465 0.013 196.714);
  --secondary-foreground: oklch(0.956 0.002 197.125);
  --accent: oklch(0.465 0.013 196.714);
  --accent-foreground: oklch(0.956 0.002 197.125);
  --destructive: oklch(0.495 0.147 39.943);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.447 0.014 17.679);
  --chart-1: oklch(0.447 0.014 17.679);
  --chart-2: oklch(0.465 0.013 196.714);
  --chart-3: oklch(0.465 0.013 196.714);
  --chart-4: oklch(0.494 0.014 196.709);
  --chart-5: oklch(0.443 0.021 17.97);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.003 17.216);
  --muted: oklch(0.171 0.015 195.87);
  --muted-foreground: oklch(0.758 0.013 196.887);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.003 17.216);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.002 17.196);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.447 0.014 17.679);
  --primary-foreground: oklch(0.953 0.002 17.192);
  --secondary: oklch(0.465 0.013 196.714);
  --secondary-foreground: oklch(0.956 0.002 197.125);
  --accent: oklch(0.465 0.013 196.714);
  --accent-foreground: oklch(0.956 0.002 197.125);
  --destructive: oklch(0.632 0.192 39.471);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.447 0.014 17.679);
  --chart-1: oklch(0.447 0.014 17.679);
  --chart-2: oklch(0.465 0.013 196.714);
  --chart-3: oklch(0.465 0.013 196.714);
  --chart-4: oklch(0.494 0.014 196.709);
  --chart-5: oklch(0.443 0.021 17.97);
}