Photo for shadcn/ui

Photo is a shadcn/ui theme built around a muted yellow primary color (#928b63) with muted green accents (#819263). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#928b63) on a yellow-tinted background (#0e0d06).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0d06black
Foreground
#100f04black
#fbfbf8snow
Card
#ffffffwhite
#0e0d06black
Card foreground
#100f04black
#fbfbf8snow
Popover
#ffffffwhite
#0e0d06black
Popover foreground
#100f04black
#fbfbf8snow
Primary
#928b63gray
#928b63gray
Primary foreground
#000000black
#000000black
Secondary
#927463gray
#927463gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f7f1eewhitesmoke
#110b08black
Muted foreground
#48413cdarkslategray
#c3bbb7silver
Accent
#819263gray
#819263gray
Accent foreground
#000000black
#000000black
Destructive
#842a01saddlebrown
#ef4c01orangered
Destructive foreground
#ffceb8peachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#928b63gray
#928b63gray

Contrast

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

Light mode
Text on background19.22:1AAA
Text on card19.22:1AAA
Primary button6.11:1AA
Secondary button4.28:1AA Large
Muted text8.94:1AAA
Accent6.19:1AA
Destructive6.38:1AA
Dark mode
Text on background18.76:1AAA
Text on card18.76:1AAA
Primary button6.11:1AA
Secondary button4.28:1AA Large
Muted text10.30:1AAA
Accent6.19:1AA
Destructive3.68:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.165 0.023 101.729);
  --muted: oklch(0.962 0.008 52.468);
  --muted-foreground: oklch(0.38 0.013 52.144);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.165 0.023 101.729);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.165 0.023 101.729);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.633 0.057 100.435);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.583 0.045 51.598);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.633 0.069 124.69);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.418 0.131 39.821);
  --destructive-foreground: oklch(0.889 0.063 46.186);
  --ring: oklch(0.633 0.057 100.435);
  --chart-1: oklch(0.633 0.057 100.435);
  --chart-2: oklch(0.583 0.045 51.598);
  --chart-3: oklch(0.633 0.069 124.69);
  --chart-4: oklch(0.609 0.045 51.632);
  --chart-5: oklch(0.642 0.065 100.526);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.014 100.965);
  --foreground: oklch(0.988 0.004 99.394);
  --muted: oklch(0.159 0.013 52.484);
  --muted-foreground: oklch(0.797 0.011 52.402);
  --popover: oklch(0.158 0.014 100.965);
  --popover-foreground: oklch(0.988 0.004 99.394);
  --card: oklch(0.158 0.014 100.965);
  --card-foreground: oklch(0.988 0.004 99.394);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.633 0.057 100.435);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.583 0.045 51.598);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.633 0.069 124.69);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.64 0.209 38.076);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.633 0.057 100.435);
  --chart-1: oklch(0.633 0.057 100.435);
  --chart-2: oklch(0.583 0.045 51.598);
  --chart-3: oklch(0.633 0.069 124.69);
  --chart-4: oklch(0.609 0.045 51.632);
  --chart-5: oklch(0.642 0.065 100.526);
}