Photography for shadcn/ui

Photography is a shadcn/ui theme built around a near-black primary color (#010304) with near-black accents (#010104). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the near-black primary (#010304) on a blue-tinted background (#05080a).

Color palette

TokenLightDark
Background
#fbfdfewhite
#05080ablack
Foreground
#010304black
#ffffffwhite
Card
#fbfdfewhite
#05080ablack
Card foreground
#010304black
#ffffffwhite
Popover
#fbfdfewhite
#05080ablack
Popover foreground
#010304black
#ffffffwhite
Primary
#010304black
#010304black
Primary foreground
#5fa6d8cornflowerblue
#5fa6d8cornflowerblue
Secondary
#010404black
#010404black
Secondary foreground
#29a89elightseagreen
#29a89elightseagreen
Muted
#ecf4f3whitesmoke
#0b1312black
Muted foreground
#424343darkslategray
#bcbdbdsilver
Accent
#010104black
#010104black
Accent foreground
#b1b6eclightsteelblue
#b1b6eclightsteelblue
Destructive
#85260fsaddlebrown
#e6461eorangered
Destructive foreground
#f9d5cdbisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#010304black
#010304black

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button7.81:1AAA
Secondary button7.04:1AAA
Muted text8.85:1AAA
Accent10.68:1AAA
Destructive6.73:1AA
Dark mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button7.81:1AAA
Secondary button7.04:1AAA
Muted text9.97:1AAA
Accent10.68:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 238.389);
  --foreground: oklch(0.091 0.009 231.651);
  --muted: oklch(0.96 0.008 191.064);
  --muted-foreground: oklch(0.381 0.002 191.147);
  --popover: oklch(0.992 0.002 238.389);
  --popover-foreground: oklch(0.091 0.009 231.651);
  --card: oklch(0.992 0.002 238.389);
  --card-foreground: oklch(0.091 0.009 231.651);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.091 0.01 230.568);
  --primary-foreground: oklch(0.698 0.103 241.414);
  --secondary: oklch(0.1 0.012 190.308);
  --secondary-foreground: oklch(0.664 0.107 186.473);
  --accent: oklch(0.076 0.017 275.577);
  --accent-foreground: oklch(0.791 0.077 280.429);
  --destructive: oklch(0.416 0.133 34.629);
  --destructive-foreground: oklch(0.902 0.042 34.327);
  --ring: oklch(0.091 0.01 230.568);
  --chart-1: oklch(0.091 0.01 230.568);
  --chart-2: oklch(0.1 0.012 190.308);
  --chart-3: oklch(0.076 0.017 275.577);
  --chart-4: oklch(0.162 0.02 189.06);
  --chart-5: oklch(0.091 0.011 230.211);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.132 0.009 233.649);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.179 0.012 189.783);
  --muted-foreground: oklch(0.798 0.001 191.209);
  --popover: oklch(0.132 0.009 233.649);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.132 0.009 233.649);
  --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.091 0.01 230.568);
  --primary-foreground: oklch(0.698 0.103 241.414);
  --secondary: oklch(0.1 0.012 190.308);
  --secondary-foreground: oklch(0.664 0.107 186.473);
  --accent: oklch(0.076 0.017 275.577);
  --accent-foreground: oklch(0.791 0.077 280.429);
  --destructive: oklch(0.62 0.203 34.484);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.091 0.01 230.568);
  --chart-1: oklch(0.091 0.01 230.568);
  --chart-2: oklch(0.1 0.012 190.308);
  --chart-3: oklch(0.076 0.017 275.577);
  --chart-4: oklch(0.162 0.02 189.06);
  --chart-5: oklch(0.091 0.011 230.211);
}