Picnic for shadcn/ui

Picnic is a shadcn/ui theme built around a vivid orange primary color (#cd8c13) with vivid blue accents (#1354cd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid orange primary (#cd8c13) on a neutral background (#080603).

Color palette

TokenLightDark
Background
#ffffffwhite
#080603black
Foreground
#080602black
#fdfdfcwhite
Card
#fcfcfcsnow
#0b0904black
Card foreground
#040301black
#ffffffwhite
Popover
#fcfcfcsnow
#0b0904black
Popover foreground
#040301black
#ffffffwhite
Primary
#cd8c13darkgoldenrod
#cd8c13darkgoldenrod
Primary foreground
#130d02black
#130d02black
Secondary
#1354cdroyalblue
#1354cdroyalblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ecedefwhitesmoke
#101113black
Muted foreground
#595959dimgray
#a6a6a6darkgray
Accent
#1354cdroyalblue
#1354cdroyalblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#85100amaroon
#da1b10firebrick
Destructive foreground
#fbc9c6pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#cd8c13darkgoldenrod
#cd8c13darkgoldenrod

Contrast

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

Light mode
Text on background20.24:1AAA
Text on card20.17:1AAA
Primary button6.78:1AA
Secondary button6.58:1AA
Muted text5.96:1AA
Accent6.58:1AA
Destructive6.88:1AA
Dark mode
Text on background19.90:1AAA
Text on card19.90:1AAA
Primary button6.78:1AA
Secondary button6.58:1AA
Muted text7.73:1AAA
Accent6.58:1AA
Destructive5.06:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.017 90.268);
  --muted: oklch(0.945 0.003 263.048);
  --muted-foreground: oklch(0.465 0 180);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.099 0.013 90.268);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.099 0.013 90.268);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.689 0.141 74.887);
  --primary-foreground: oklch(0.162 0.028 87.203);
  --secondary: oklch(0.488 0.198 261.611);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.488 0.198 261.611);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.395 0.151 29.211);
  --destructive-foreground: oklch(0.878 0.057 21.812);
  --ring: oklch(0.689 0.141 74.887);
  --chart-1: oklch(0.689 0.141 74.887);
  --chart-2: oklch(0.488 0.198 261.611);
  --chart-3: oklch(0.488 0.198 261.611);
  --chart-4: oklch(0.512 0.209 261.628);
  --chart-5: oklch(0.695 0.144 74.273);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.012 88.664);
  --foreground: oklch(0.993 0.001 83.055);
  --muted: oklch(0.179 0.005 262.989);
  --muted-foreground: oklch(0.724 0 180);
  --popover: oklch(0.14 0.014 88.284);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.014 88.284);
  --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.689 0.141 74.887);
  --primary-foreground: oklch(0.162 0.028 87.203);
  --secondary: oklch(0.488 0.198 261.611);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.488 0.198 261.611);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.566 0.221 29.4);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.689 0.141 74.887);
  --chart-1: oklch(0.689 0.141 74.887);
  --chart-2: oklch(0.488 0.198 261.611);
  --chart-3: oklch(0.488 0.198 261.611);
  --chart-4: oklch(0.512 0.209 261.628);
  --chart-5: oklch(0.695 0.144 74.273);
}