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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.22:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 6.11:1 | AA |
| Secondary button | 4.28:1 | AA Large |
| Muted text | 8.94:1 | AAA |
| Accent | 6.19:1 | AA |
| Destructive | 6.38:1 | AA |
| Text on background | 18.76:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 6.11:1 | AA |
| Secondary button | 4.28:1 | AA Large |
| Muted text | 10.30:1 | AAA |
| Accent | 6.19:1 | AA |
| Destructive | 3.68:1 | AA Large |
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);
}