Photo for shadcn/ui

Photo is a shadcn/ui theme built around a deep pink primary color (#672238) with deep blue accents (#223867). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the deep pink primary (#672238) on a pink-tinted background (#0c0306).

Color palette

TokenLightDark
Background
#fdf7f9snow
#0c0306black
Foreground
#160409black
#f9f6f7whitesmoke
Card
#fcf3f6lavenderblush
#100408black
Card foreground
#110308black
#fbf9fasnow
Popover
#fcf3f6lavenderblush
#100408black
Popover foreground
#110308black
#fbf9fasnow
Primary
#672238saddlebrown
#672238saddlebrown
Primary foreground
#eecdd8gainsboro
#eecdd8gainsboro
Secondary
#386722darkolivegreen
#386722darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f2f3f1whitesmoke
#0c0e0cblack
Muted foreground
#5d615cdimgray
#a0a39edarkgray
Accent
#223867midnightblue
#223867midnightblue
Accent foreground
#cdd8eegainsboro
#cdd8eegainsboro
Destructive
#ae3f0ffirebrick
#ec5f22chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#672238saddlebrown
#672238saddlebrown

Contrast

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

Light mode
Text on background18.77:1AAA
Text on card18.48:1AAA
Primary button7.67:1AAA
Secondary button6.67:1AA
Muted text5.67:1AA
Accent7.97:1AAA
Destructive5.99:1AA
Dark mode
Text on background18.94:1AAA
Text on card19.18:1AAA
Primary button7.67:1AAA
Secondary button6.67:1AA
Muted text7.60:1AAA
Accent7.97:1AAA
Destructive6.21:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.007 355.832);
  --foreground: oklch(0.144 0.038 359.305);
  --muted: oklch(0.963 0.003 135.44);
  --muted-foreground: oklch(0.488 0.01 135.517);
  --popover: oklch(0.971 0.011 355.943);
  --popover-foreground: oklch(0.131 0.033 357.337);
  --card: oklch(0.971 0.011 355.943);
  --card-foreground: oklch(0.131 0.033 357.337);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.365 0.101 3.959);
  --primary-foreground: oklch(0.88 0.04 356.877);
  --secondary: oklch(0.465 0.112 137.173);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.35 0.087 263.782);
  --accent-foreground: oklch(0.881 0.033 265.795);
  --destructive: oklch(0.516 0.155 39.717);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.365 0.101 3.959);
  --chart-1: oklch(0.365 0.101 3.959);
  --chart-2: oklch(0.465 0.112 137.173);
  --chart-3: oklch(0.35 0.087 263.782);
  --chart-4: oklch(0.501 0.122 137.212);
  --chart-5: oklch(0.366 0.106 4.552);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.023 355.554);
  --foreground: oklch(0.976 0.003 355.699);
  --muted: oklch(0.16 0.004 135.542);
  --muted-foreground: oklch(0.712 0.009 135.483);
  --popover: oklch(0.134 0.026 357.053);
  --popover-foreground: oklch(0.984 0.002 355.67);
  --card: oklch(0.134 0.026 357.053);
  --card-foreground: oklch(0.984 0.002 355.67);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.365 0.101 3.959);
  --primary-foreground: oklch(0.88 0.04 356.877);
  --secondary: oklch(0.465 0.112 137.173);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.35 0.087 263.782);
  --accent-foreground: oklch(0.881 0.033 265.795);
  --destructive: oklch(0.659 0.187 40.594);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.365 0.101 3.959);
  --chart-1: oklch(0.365 0.101 3.959);
  --chart-2: oklch(0.465 0.112 137.173);
  --chart-3: oklch(0.35 0.087 263.782);
  --chart-4: oklch(0.501 0.122 137.212);
  --chart-5: oklch(0.366 0.106 4.552);
}