Pilaf for shadcn/ui

Pilaf is a shadcn/ui theme built around a cyan primary color (#296f7f) with green accents (#6f7f29). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#296f7f) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#020f12black
#f9fafbghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#020b0eblack
#fcfdfdwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#020b0eblack
#fcfdfdwhite
Primary
#296f7fteal
#296f7fteal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7f296fpurple
#7f296fpurple
Secondary foreground
#f6e4f3lavenderblush
#f6e4f3lavenderblush
Muted
#e3cedfgainsboro
#311c2ddarkslategray
Muted foreground
#4a3f48darkslategray
#c0b5besilver
Accent
#6f7f29olivedrab
#6f7f29olivedrab
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#853405saddlebrown
#f8803acoral
Destructive foreground
#fdd6bfpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#296f7fteal
#296f7fteal

Contrast

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

Light mode
Text on background19.45:1AAA
Text on card19.44:1AAA
Primary button5.69:1AA
Secondary button7.05:1AAA
Muted text6.77:1AA
Accent4.41:1AA Large
Destructive6.25:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.29:1AAA
Primary button5.69:1AA
Secondary button7.05:1AAA
Muted text7.95:1AAA
Accent4.41:1AA Large
Destructive8.11:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.157 0.022 211.386);
  --muted: oklch(0.875 0.032 331.918);
  --muted-foreground: oklch(0.384 0.021 332.163);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.141 0.019 209.392);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.141 0.019 209.392);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.506 0.073 215.29);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.436 0.145 335.833);
  --secondary-foreground: oklch(0.938 0.028 331.822);
  --accent: oklch(0.566 0.112 119.017);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.433 0.123 43.87);
  --destructive-foreground: oklch(0.902 0.053 51.826);
  --ring: oklch(0.506 0.073 215.29);
  --chart-1: oklch(0.506 0.073 215.29);
  --chart-2: oklch(0.436 0.145 335.833);
  --chart-3: oklch(0.566 0.112 119.017);
  --chart-4: oklch(0.464 0.155 335.877);
  --chart-5: oklch(0.51 0.076 215.585);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.002 212.662);
  --muted: oklch(0.26 0.043 333.582);
  --muted-foreground: oklch(0.784 0.018 331.722);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.993 0.001 212.662);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 212.662);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.506 0.073 215.29);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.436 0.145 335.833);
  --secondary-foreground: oklch(0.938 0.028 331.822);
  --accent: oklch(0.566 0.112 119.017);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.724 0.168 47.631);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.506 0.073 215.29);
  --chart-1: oklch(0.506 0.073 215.29);
  --chart-2: oklch(0.436 0.145 335.833);
  --chart-3: oklch(0.566 0.112 119.017);
  --chart-4: oklch(0.464 0.155 335.877);
  --chart-5: oklch(0.51 0.076 215.585);
}