Sandwich for shadcn/ui

Sandwich is a shadcn/ui theme built around a vivid deep cyan primary color (#047d90) with vivid deep red accents (#901604). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep cyan primary (#047d90) on a cyan-tinted background (#050a0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#050a0ablack
Foreground
#020c0eblack
#ffffffwhite
Card
#ffffffwhite
#050a0ablack
Card foreground
#020c0eblack
#ffffffwhite
Popover
#ffffffwhite
#050a0ablack
Popover foreground
#020c0eblack
#ffffffwhite
Primary
#047d90darkcyan
#047d90darkcyan
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#901604darkred
#901604darkred
Secondary foreground
#fecfc8pink
#fecfc8pink
Muted
#e8dfdegainsboro
#211817black
Muted foreground
#715e5bdimgray
#a4918erosybrown
Accent
#901604darkred
#901604darkred
Accent foreground
#fecfc8pink
#fecfc8pink
Destructive
#792b01saddlebrown
#fd6e21tomato
Destructive foreground
#fecaaepeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#047d90darkcyan
#047d90darkcyan

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button4.80:1AA
Secondary button6.48:1AA
Muted text4.64:1AA
Accent6.48:1AA
Destructive6.59:1AA
Dark mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button4.80:1AA
Secondary button6.48:1AA
Muted text5.80:1AA
Accent6.48:1AA
Destructive7.41:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.02 205.204);
  --muted: oklch(0.911 0.01 27.992);
  --muted-foreground: oklch(0.499 0.026 28.286);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.143 0.02 205.204);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.143 0.02 205.204);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.543 0.094 212.924);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.422 0.158 31.52);
  --secondary-foreground: oklch(0.894 0.053 28.356);
  --accent: oklch(0.422 0.158 31.52);
  --accent-foreground: oklch(0.894 0.053 28.356);
  --destructive: oklch(0.4 0.118 42.503);
  --destructive-foreground: oklch(0.878 0.07 49.72);
  --ring: oklch(0.543 0.094 212.924);
  --chart-1: oklch(0.543 0.094 212.924);
  --chart-2: oklch(0.422 0.158 31.52);
  --chart-3: oklch(0.422 0.158 31.52);
  --chart-4: oklch(0.452 0.171 31.398);
  --chart-5: oklch(0.548 0.096 213.176);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.01 205.768);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.221 0.015 28.444);
  --muted-foreground: oklch(0.672 0.024 28.152);
  --popover: oklch(0.137 0.01 205.768);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.137 0.01 205.768);
  --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.543 0.094 212.924);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.422 0.158 31.52);
  --secondary-foreground: oklch(0.894 0.053 28.356);
  --accent: oklch(0.422 0.158 31.52);
  --accent-foreground: oklch(0.894 0.053 28.356);
  --destructive: oklch(0.704 0.192 43.86);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.543 0.094 212.924);
  --chart-1: oklch(0.543 0.094 212.924);
  --chart-2: oklch(0.422 0.158 31.52);
  --chart-3: oklch(0.422 0.158 31.52);
  --chart-4: oklch(0.452 0.171 31.398);
  --chart-5: oklch(0.548 0.096 213.176);
}