Pita for shadcn/ui

Pita is a shadcn/ui theme built around a muted red primary color (#544548) with muted light red accents (#d9bfc4). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted red primary (#544548) on a red-tinted background (#0b0506).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0506black
Foreground
#160307black
#fdfcfcsnow
Card
#ffffffwhite
#0b0506black
Card foreground
#160307black
#fdfcfcsnow
Popover
#ffffffwhite
#0b0506black
Popover foreground
#160307black
#fdfcfcsnow
Primary
#544548darkslategray
#544548darkslategray
Primary foreground
#e8e3e4gainsboro
#e8e3e4gainsboro
Secondary
#eae1e3gainsboro
#2c2627darkslategray
Secondary foreground
#5a3f45darkslategray
#c6bebfsilver
Muted
#efe6e8linen
#191012black
Muted foreground
#655357dimgray
#ac9a9edarkgray
Accent
#d9bfc4thistle
#49373bdarkslategray
Accent foreground
#40262bdarkslategray
#ded3d6gainsboro
Destructive
#a14112saddlebrown
#cf5417chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#544548darkslategray
#544548darkslategray

Contrast

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

Light mode
Text on background19.99:1AAA
Text on card19.99:1AAA
Primary button7.12:1AAA
Secondary button7.33:1AAA
Muted text5.86:1AA
Accent7.96:1AAA
Destructive6.39:1AA
Dark mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button7.12:1AAA
Secondary button8.15:1AAA
Muted text7.00:1AAA
Accent7.63:1AAA
Destructive4.26:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.038 5.709);
  --muted: oklch(0.933 0.01 2.363);
  --muted-foreground: oklch(0.461 0.025 3.528);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.143 0.038 5.709);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.143 0.038 5.709);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.407 0.022 3.489);
  --primary-foreground: oklch(0.92 0.006 2.238);
  --secondary: oklch(0.917 0.01 2.376);
  --secondary-foreground: oklch(0.399 0.039 4.707);
  --accent: oklch(0.828 0.031 3.08);
  --accent-foreground: oklch(0.303 0.041 5.699);
  --destructive: oklch(0.499 0.138 42.752);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.407 0.022 3.489);
  --chart-1: oklch(0.407 0.022 3.489);
  --chart-2: oklch(0.917 0.01 2.376);
  --chart-3: oklch(0.828 0.031 3.08);
  --chart-4: oklch(0.942 0.007 2.276);
  --chart-5: oklch(0.404 0.028 3.936);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.014 2.173);
  --foreground: oklch(0.992 0.001 2.101);
  --muted: oklch(0.185 0.016 4.306);
  --muted-foreground: oklch(0.704 0.022 2.927);
  --popover: oklch(0.124 0.014 2.173);
  --popover-foreground: oklch(0.992 0.001 2.101);
  --card: oklch(0.124 0.014 2.173);
  --card-foreground: oklch(0.992 0.001 2.101);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.407 0.022 3.489);
  --primary-foreground: oklch(0.92 0.006 2.238);
  --secondary: oklch(0.275 0.009 2.932);
  --secondary-foreground: oklch(0.808 0.01 2.405);
  --accent: oklch(0.357 0.026 4.024);
  --accent-foreground: oklch(0.877 0.012 2.448);
  --destructive: oklch(0.598 0.169 42.366);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.407 0.022 3.489);
  --chart-1: oklch(0.407 0.022 3.489);
  --chart-2: oklch(0.275 0.009 2.932);
  --chart-3: oklch(0.357 0.026 4.024);
  --chart-4: oklch(0.305 0.01 2.969);
  --chart-5: oklch(0.404 0.028 3.936);
}