Panel for shadcn/ui

Panel is a shadcn/ui theme built around a blue primary color (#919cee) with muted light blue accents (#e4e5ec). The light mode uses a neutral background (#f6f7fd). Dark mode keeps the blue primary (#919cee) on a neutral background (#010204).

Color palette

TokenLightDark
Background
#f6f7fdghostwhite
#010204black
Foreground
#000000black
#fcfcfdwhite
Card
#f2f3fdaliceblue
#030307black
Card foreground
#000000black
#ffffffwhite
Popover
#f2f3fdaliceblue
#030307black
Popover foreground
#000000black
#ffffffwhite
Primary
#919ceecornflowerblue
#919ceecornflowerblue
Primary foreground
#0a1142midnightblue
#0a1142midnightblue
Secondary
#e4e5eclavender
#1d1e2bblack
Secondary foreground
#41445ddarkslategray
#afb3casilver
Muted
#ececeewhitesmoke
#111113black
Muted foreground
#3c3e48darkslategray
#b7b8c3silver
Accent
#e4e5eclavender
#1d1e2bblack
Accent foreground
#41445ddarkslategray
#afb3casilver
Destructive
#670909maroon
#ed3535crimson
Destructive foreground
#f8abablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#919ceecornflowerblue
#919ceecornflowerblue

Contrast

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

Light mode
Text on background19.67:1AAA
Text on card19.03:1AAA
Primary button6.96:1AA
Secondary button7.55:1AAA
Muted text9.04:1AAA
Accent7.55:1AAA
Destructive7.02:1AAA
Dark mode
Text on background20.26:1AAA
Text on card20.56:1AAA
Primary button6.96:1AA
Secondary button7.94:1AAA
Muted text9.56:1AAA
Accent7.94:1AAA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.008 280.195);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.945 0.002 280.295);
  --muted-foreground: oklch(0.366 0.018 279.507);
  --popover: oklch(0.967 0.013 280.123);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.967 0.013 280.123);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.716 0.12 277.169);
  --primary-foreground: oklch(0.212 0.092 270.24);
  --secondary: oklch(0.923 0.01 280.162);
  --secondary-foreground: oklch(0.395 0.043 278.412);
  --accent: oklch(0.923 0.01 280.162);
  --accent-foreground: oklch(0.395 0.043 278.412);
  --destructive: oklch(0.33 0.126 27.769);
  --destructive-foreground: oklch(0.814 0.091 19.228);
  --ring: oklch(0.716 0.12 277.169);
  --chart-1: oklch(0.716 0.12 277.169);
  --chart-2: oklch(0.923 0.01 280.162);
  --chart-3: oklch(0.923 0.01 280.162);
  --chart-4: oklch(0.949 0.007 280.222);
  --chart-5: oklch(0.713 0.125 276.997);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.081 0.012 275.535);
  --foreground: oklch(0.992 0.001 280.316);
  --muted: oklch(0.179 0.003 280.043);
  --muted-foreground: oklch(0.785 0.015 280.028);
  --popover: oklch(0.102 0.015 275.535);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.102 0.015 275.535);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.716 0.12 277.169);
  --primary-foreground: oklch(0.212 0.092 270.24);
  --secondary: oklch(0.24 0.024 278.554);
  --secondary-foreground: oklch(0.77 0.033 279.616);
  --accent: oklch(0.24 0.024 278.554);
  --accent-foreground: oklch(0.77 0.033 279.616);
  --destructive: oklch(0.62 0.22 26.479);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.716 0.12 277.169);
  --chart-1: oklch(0.716 0.12 277.169);
  --chart-2: oklch(0.24 0.024 278.554);
  --chart-3: oklch(0.24 0.024 278.554);
  --chart-4: oklch(0.268 0.029 278.439);
  --chart-5: oklch(0.713 0.125 276.997);
}