Level Pergola Panorama for shadcn/ui

Level Pergola Panorama is a shadcn/ui theme built around a muted light green primary color (#dfe7d9) with muted light green accents (#cbd3c5). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the muted light green primary (#dfe7d9) on a green-tinted background (#070a05).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#070a05black
Foreground
#020401black
#fcfdfcwhite
Card
#fafcf8snow
#0a0e06black
Card foreground
#000000black
#ffffffwhite
Popover
#fafcf8snow
#0a0e06black
Popover foreground
#000000black
#ffffffwhite
Primary
#dfe7d9gainsboro
#dfe7d9gainsboro
Primary foreground
#455837darkolivegreen
#455837darkolivegreen
Secondary
#cbd3c5lightgrey
#141613black
Secondary foreground
#323a2cdarkslategray
#acb5a6darkgray
Muted
#eaf1e4beige
#141b0eblack
Muted foreground
#5b6454dimgray
#a2ab9bdarkgray
Accent
#cbd3c5lightgrey
#141613black
Accent foreground
#323a2cdarkslategray
#acb5a6darkgray
Destructive
#d9130dred
#f2241ccrimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#eff2eewhitesmoke
#262b22darkslategray
Input
#eff2eewhitesmoke
#262b22darkslategray
Ring
#dfe7d9gainsboro
#dfe7d9gainsboro

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.29:1AAA
Primary button6.15:1AA
Secondary button7.69:1AAA
Muted text5.34:1AA
Accent7.69:1AAA
Destructive5.18:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button6.15:1AA
Secondary button8.57:1AAA
Muted text7.43:1AAA
Accent8.57:1AAA
Destructive4.17:1AA Large

CSS variables

Paste this into your globals.css to use Level Pergola Panorama in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 131.108);
  --foreground: oklch(0.103 0.021 129.326);
  --muted: oklch(0.949 0.018 131.25);
  --muted-foreground: oklch(0.49 0.028 131.605);
  --popover: oklch(0.988 0.005 131.131);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.988 0.005 131.131);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.957 0.005 131.133);
  --input: oklch(0.957 0.005 131.133);
  --primary: oklch(0.919 0.021 131.283);
  --primary-foreground: oklch(0.435 0.057 132.364);
  --secondary: oklch(0.857 0.021 131.304);
  --secondary-foreground: oklch(0.337 0.027 131.815);
  --accent: oklch(0.857 0.021 131.304);
  --accent-foreground: oklch(0.337 0.027 131.815);
  --destructive: oklch(0.561 0.223 29.2);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.919 0.021 131.283);
  --chart-1: oklch(0.919 0.021 131.283);
  --chart-2: oklch(0.857 0.021 131.304);
  --chart-3: oklch(0.857 0.021 131.304);
  --chart-4: oklch(0.879 0.018 131.265);
  --chart-5: oklch(0.921 0.023 131.309);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.015 130.169);
  --foreground: oklch(0.993 0.001 131.092);
  --muted: oklch(0.209 0.025 132.267);
  --muted-foreground: oklch(0.73 0.026 131.397);
  --popover: oklch(0.156 0.018 131.038);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.156 0.018 131.038);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.28 0.018 131.669);
  --input: oklch(0.28 0.018 131.669);
  --primary: oklch(0.919 0.021 131.283);
  --primary-foreground: oklch(0.435 0.057 132.364);
  --secondary: oklch(0.197 0.008 131.441);
  --secondary-foreground: oklch(0.761 0.023 131.347);
  --accent: oklch(0.197 0.008 131.441);
  --accent-foreground: oklch(0.761 0.023 131.347);
  --destructive: oklch(0.615 0.236 28.83);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.919 0.021 131.283);
  --chart-1: oklch(0.919 0.021 131.283);
  --chart-2: oklch(0.197 0.008 131.441);
  --chart-3: oklch(0.197 0.008 131.441);
  --chart-4: oklch(0.233 0.01 131.485);
  --chart-5: oklch(0.921 0.023 131.309);
}