Panel for shadcn/ui

Panel is a shadcn/ui theme built around a green primary color (#3fa268) with pink accents (#a23f78). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#3fa268) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020d07black
#fcfdfcwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#010904black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#010904black
#ffffffwhite
Primary
#3fa268mediumseagreen
#3fa268mediumseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#a23f78mediumvioletred
#a23f78mediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f1e5eclinen
#1a0e15black
Muted foreground
#6d5563dimgray
#aa92a0darkgray
Accent
#a23f78mediumvioletred
#a23f78mediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#9b3a0dsaddlebrown
#eb5f1echocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3fa268mediumseagreen
#3fa268mediumseagreen

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.71:1AAA
Primary button3.20:1AA Large
Secondary button5.98:1AA
Muted text5.46:1AA
Accent5.98:1AA
Destructive6.98:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.67:1AAA
Primary button3.20:1AA Large
Secondary button5.98:1AA
Muted text6.53:1AA
Accent5.98:1AA
Destructive6.19:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.145 0.026 160.346);
  --muted: oklch(0.932 0.016 341.402);
  --muted-foreground: oklch(0.479 0.037 342.718);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.126 0.022 160.926);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.126 0.022 160.926);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.638 0.127 154.649);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.52 0.146 347.294);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.52 0.146 347.294);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.479 0.139 41.037);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.638 0.127 154.649);
  --chart-1: oklch(0.638 0.127 154.649);
  --chart-2: oklch(0.52 0.146 347.294);
  --chart-3: oklch(0.52 0.146 347.294);
  --chart-4: oklch(0.545 0.154 347.339);
  --chart-5: oklch(0.645 0.134 154.239);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 160.964);
  --muted: oklch(0.185 0.024 343.794);
  --muted-foreground: oklch(0.686 0.034 342.115);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.638 0.127 154.649);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.52 0.146 347.294);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.52 0.146 347.294);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.658 0.188 41.356);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.638 0.127 154.649);
  --chart-1: oklch(0.638 0.127 154.649);
  --chart-2: oklch(0.52 0.146 347.294);
  --chart-3: oklch(0.52 0.146 347.294);
  --chart-4: oklch(0.545 0.154 347.339);
  --chart-5: oklch(0.645 0.134 154.239);
}