Laparoscope for shadcn/ui

Laparoscope is a shadcn/ui theme built around a deep green primary color (#13150a) with deep green accents (#0e150a). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the deep green primary (#13150a) on a green-tinted background (#0d0e06).

Color palette

TokenLightDark
Background
#fdfdfbsnow
#0d0e06black
Foreground
#040401black
#ffffffwhite
Card
#fbfcf8snow
#111208black
Card foreground
#000000black
#ffffffwhite
Popover
#fdfdfbsnow
#0d0e06black
Popover foreground
#040401black
#ffffffwhite
Primary
#13150ablack
#13150ablack
Primary foreground
#959e4cyellowgreen
#959e4cyellowgreen
Secondary
#15110ablack
#15110ablack
Secondary foreground
#c7af8atan
#c7af8atan
Muted
#e4e1ddgainsboro
#221f1bblack
Muted foreground
#625f5bdimgray
#a4a29ddarkgray
Accent
#0e150ablack
#0e150ablack
Accent foreground
#a1c78adarkseagreen
#a1c78adarkseagreen
Destructive
#983206saddlebrown
#f6692ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#13150ablack
#13150ablack

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.38:1AAA
Primary button6.39:1AA
Secondary button8.92:1AAA
Muted text4.88:1AA
Accent9.79:1AAA
Destructive7.52:1AAA
Dark mode
Text on background19.37:1AAA
Text on card18.89:1AAA
Primary button6.39:1AA
Secondary button8.92:1AAA
Muted text6.40:1AA
Accent9.79:1AAA
Destructive6.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.003 111.829);
  --foreground: oklch(0.104 0.016 113.089);
  --muted: oklch(0.911 0.007 79.92);
  --muted-foreground: oklch(0.487 0.008 79.897);
  --popover: oklch(0.995 0.003 111.829);
  --popover-foreground: oklch(0.104 0.016 113.089);
  --card: oklch(0.989 0.005 111.879);
  --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.189 0.02 113.785);
  --primary-foreground: oklch(0.675 0.107 114.827);
  --secondary: oklch(0.178 0.015 79.393);
  --secondary-foreground: oklch(0.766 0.057 79.487);
  --accent: oklch(0.184 0.023 133.978);
  --accent-foreground: oklch(0.786 0.092 133.883);
  --destructive: oklch(0.463 0.144 38.94);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.189 0.02 113.785);
  --chart-1: oklch(0.189 0.02 113.785);
  --chart-2: oklch(0.178 0.015 79.393);
  --chart-3: oklch(0.184 0.023 133.978);
  --chart-4: oklch(0.217 0.021 79.191);
  --chart-5: oklch(0.191 0.022 113.921);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.16 0.017 113.391);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.243 0.009 79.802);
  --muted-foreground: oklch(0.712 0.007 79.914);
  --popover: oklch(0.16 0.017 113.391);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.176 0.02 113.755);
  --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.189 0.02 113.785);
  --primary-foreground: oklch(0.675 0.107 114.827);
  --secondary: oklch(0.178 0.015 79.393);
  --secondary-foreground: oklch(0.766 0.057 79.487);
  --accent: oklch(0.184 0.023 133.978);
  --accent-foreground: oklch(0.786 0.092 133.883);
  --destructive: oklch(0.688 0.187 41.185);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.189 0.02 113.785);
  --chart-1: oklch(0.189 0.02 113.785);
  --chart-2: oklch(0.178 0.015 79.393);
  --chart-3: oklch(0.184 0.023 133.978);
  --chart-4: oklch(0.217 0.021 79.191);
  --chart-5: oklch(0.191 0.022 113.921);
}