Principal for shadcn/ui

Principal is a shadcn/ui theme built around a blue primary color (#89bfe6) with muted light blue accents (#ced8de). The light mode uses a neutral background (#f8fafc). Dark mode keeps the blue primary (#89bfe6) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#000000black
Foreground
#010304black
#f8fafcghostwhite
Card
#f8fafcghostwhite
#000000black
Card foreground
#010304black
#f8fafcghostwhite
Popover
#f8fafcghostwhite
#000000black
Popover foreground
#010304black
#f8fafcghostwhite
Primary
#89bfe6skyblue
#89bfe6skyblue
Primary foreground
#0b2232black
#0b2232black
Secondary
#ced8delightgrey
#191a1ablack
Secondary foreground
#313f49darkslategray
#b2b3b3darkgray
Muted
#ecf0f3whitesmoke
#0c1013black
Muted foreground
#5c5f60dimgray
#9fa1a3darkgray
Accent
#ced8delightgrey
#191a1ablack
Accent foreground
#313f49darkslategray
#b2b3b3darkgray
Destructive
#621809maroon
#eb4928chocolate
Destructive foreground
#f7b4a6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#89bfe6skyblue
#89bfe6skyblue

Contrast

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

Light mode
Text on background19.77:1AAA
Text on card19.77:1AAA
Primary button8.29:1AAA
Secondary button7.46:1AAA
Muted text5.63:1AA
Accent7.46:1AAA
Destructive7.27:1AAA
Dark mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button8.29:1AAA
Secondary button8.32:1AAA
Muted text7.37:1AAA
Accent8.32:1AAA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.004 238.417);
  --foreground: oklch(0.091 0.009 231.773);
  --muted: oklch(0.954 0.006 238.45);
  --muted-foreground: oklch(0.483 0.004 238.473);
  --popover: oklch(0.984 0.004 238.417);
  --popover-foreground: oklch(0.091 0.009 231.773);
  --card: oklch(0.984 0.004 238.417);
  --card-foreground: oklch(0.091 0.009 231.773);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.782 0.079 240.116);
  --primary-foreground: oklch(0.242 0.043 242.544);
  --secondary: oklch(0.876 0.014 238.59);
  --secondary-foreground: oklch(0.36 0.026 239.495);
  --accent: oklch(0.876 0.014 238.59);
  --accent-foreground: oklch(0.36 0.026 239.495);
  --destructive: oklch(0.332 0.109 33.104);
  --destructive-foreground: oklch(0.828 0.081 31.558);
  --ring: oklch(0.782 0.079 240.116);
  --chart-1: oklch(0.782 0.079 240.116);
  --chart-2: oklch(0.876 0.014 238.59);
  --chart-3: oklch(0.876 0.014 238.59);
  --chart-4: oklch(0.899 0.011 238.541);
  --chart-5: oklch(0.783 0.083 240.218);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.003 238.408);
  --muted: oklch(0.169 0.009 239.168);
  --muted-foreground: oklch(0.708 0.003 238.431);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.985 0.003 238.408);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.985 0.003 238.408);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.782 0.079 240.116);
  --primary-foreground: oklch(0.242 0.043 242.544);
  --secondary: oklch(0.216 0.001 238.403);
  --secondary-foreground: oklch(0.765 0.001 238.388);
  --accent: oklch(0.216 0.001 238.403);
  --accent-foreground: oklch(0.765 0.001 238.388);
  --destructive: oklch(0.632 0.204 33.138);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.782 0.079 240.116);
  --chart-1: oklch(0.782 0.079 240.116);
  --chart-2: oklch(0.216 0.001 238.403);
  --chart-3: oklch(0.216 0.001 238.403);
  --chart-4: oklch(0.248 0.001 238.407);
  --chart-5: oklch(0.783 0.083 240.218);
}