Camp for shadcn/ui

Camp is a shadcn/ui theme built around a light green primary color (#bae3c8) with muted light green accents (#c7d6cc). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#bae3c8) on a green-tinted background (#030c06).

Color palette

TokenLightDark
Background
#ffffffwhite
#030c06black
Foreground
#040c06black
#ffffffwhite
Card
#fcfcfcsnow
#041008black
Card foreground
#020804black
#ffffffwhite
Popover
#fcfcfcsnow
#041008black
Popover foreground
#020804black
#ffffffwhite
Primary
#bae3c8lightgrey
#bae3c8lightgrey
Primary foreground
#1f4c2fdarkslategray
#1f4c2fdarkslategray
Secondary
#e1e5e2gainsboro
#2e2e2edarkslategray
Secondary foreground
#454f48darkslategray
#c7c7c7silver
Muted
#d8dedagainsboro
#272121black
Muted foreground
#5e6862dimgray
#a19797darkgray
Accent
#c7d6cclightgrey
#4f4040darkslategray
Accent foreground
#2d3e33darkslategray
#e3ddddgainsboro
Destructive
#9d240cfirebrick
#ef4e2etomato
Destructive foreground
#fde3demistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bae3c8lightgrey
#bae3c8lightgrey

Contrast

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

Light mode
Text on background19.80:1AAA
Text on card19.77:1AAA
Primary button6.98:1AA
Secondary button6.69:1AA
Muted text4.24:1AA Large
Accent7.54:1AAA
Destructive6.42:1AA
Dark mode
Text on background19.80:1AAA
Text on card19.36:1AAA
Primary button6.98:1AA
Secondary button8.04:1AAA
Muted text5.58:1AA
Accent7.30:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.141 0.02 157.55);
  --muted: oklch(0.896 0.008 157.798);
  --muted-foreground: oklch(0.508 0.016 157.316);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.123 0.017 157.713);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.123 0.017 157.713);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.879 0.056 156.573);
  --primary-foreground: oklch(0.376 0.071 152.937);
  --secondary: oklch(0.918 0.005 157.861);
  --secondary-foreground: oklch(0.417 0.017 157.086);
  --accent: oklch(0.862 0.022 157.449);
  --accent-foreground: oklch(0.346 0.029 156.042);
  --destructive: oklch(0.456 0.16 32.748);
  --destructive-foreground: oklch(0.935 0.029 31.131);
  --ring: oklch(0.879 0.056 156.573);
  --chart-1: oklch(0.879 0.056 156.573);
  --chart-2: oklch(0.918 0.005 157.861);
  --chart-3: oklch(0.862 0.022 157.449);
  --chart-4: oklch(0.94 0.004 157.897);
  --chart-5: oklch(0.881 0.06 156.471);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.022 157.443);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.254 0.009 17.743);
  --muted-foreground: oklch(0.684 0.012 17.444);
  --popover: oklch(0.159 0.026 156.244);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.159 0.026 156.244);
  --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.879 0.056 156.573);
  --primary-foreground: oklch(0.376 0.071 152.937);
  --secondary: oklch(0.301 0 189.462);
  --secondary-foreground: oklch(0.829 0 180);
  --accent: oklch(0.387 0.02 18.042);
  --accent-foreground: oklch(0.903 0.007 17.28);
  --destructive: oklch(0.645 0.203 33.187);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.879 0.056 156.573);
  --chart-1: oklch(0.879 0.056 156.573);
  --chart-2: oklch(0.301 0 189.462);
  --chart-3: oklch(0.387 0.02 18.042);
  --chart-4: oklch(0.331 0 180);
  --chart-5: oklch(0.881 0.06 156.471);
}