Photodiode is a shadcn/ui theme built around a deep yellow primary color (#5b491a) with deep blue accents (#1a2c5b). The light mode uses a neutral background (#fefdfb). Dark mode keeps the deep yellow primary (#5b491a) on a yellow-tinted background (#0c0904).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #0c0904black |
| Foreground | #120d03black | #ffffffwhite |
| Card | #fefdfbsnow | #0c0904black |
| Card foreground | #120d03black | #ffffffwhite |
| Popover | #fefdfbsnow | #0c0904black |
| Popover foreground | #120d03black | #ffffffwhite |
| Primary | #5b491adarkolivegreen | #5b491adarkolivegreen |
| Primary foreground | #ecdebbwheat | #ecdebbwheat |
| Secondary | #1a2c5bmidnightblue | #1a2c5bmidnightblue |
| Secondary foreground | #bbc9eclightsteelblue | #bbc9eclightsteelblue |
| Muted | #ccd3e6lightgrey | #192133darkslategray |
| Muted foreground | #57585cdimgray | #a3a5a8darkgray |
| Accent | #1a2c5bmidnightblue | #1a2c5bmidnightblue |
| Accent foreground | #bbc9eclightsteelblue | #bbc9eclightsteelblue |
| Destructive | #d2430fchocolate | #db460forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5b491adarkolivegreen | #5b491adarkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 4.74:1 | AA |
| Accent | 8.11:1 | AAA |
| Destructive | 4.62:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 8.11:1 | AAA |
| Muted text | 6.52:1 | AA |
| Accent | 8.11:1 | AAA |
| Destructive | 4.28:1 | AA Large |
Paste this into your globals.css to use Photodiode in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 88.812);
--foreground: oklch(0.163 0.025 92.017);
--muted: oklch(0.867 0.027 268.546);
--muted-foreground: oklch(0.461 0.006 268.688);
--popover: oklch(0.995 0.003 88.812);
--popover-foreground: oklch(0.163 0.025 92.017);
--card: oklch(0.995 0.003 88.812);
--card-foreground: oklch(0.163 0.025 92.017);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.414 0.069 87.218);
--primary-foreground: oklch(0.903 0.048 89.012);
--secondary: oklch(0.308 0.088 265.354);
--secondary-foreground: oklch(0.837 0.051 268.256);
--accent: oklch(0.308 0.088 265.354);
--accent-foreground: oklch(0.837 0.051 268.256);
--destructive: oklch(0.582 0.188 37.052);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.414 0.069 87.218);
--chart-1: oklch(0.414 0.069 87.218);
--chart-2: oklch(0.308 0.088 265.354);
--chart-3: oklch(0.308 0.088 265.354);
--chart-4: oklch(0.333 0.097 265.265);
--chart-5: oklch(0.418 0.071 86.945);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.016 93.458);
--foreground: oklch(1 0 180);
--muted: oklch(0.249 0.037 267.191);
--muted-foreground: oklch(0.721 0.006 268.734);
--popover: oklch(0.142 0.016 93.458);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.016 93.458);
--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.414 0.069 87.218);
--primary-foreground: oklch(0.903 0.048 89.012);
--secondary: oklch(0.308 0.088 265.354);
--secondary-foreground: oklch(0.837 0.051 268.256);
--accent: oklch(0.308 0.088 265.354);
--accent-foreground: oklch(0.837 0.051 268.256);
--destructive: oklch(0.601 0.195 36.997);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.414 0.069 87.218);
--chart-1: oklch(0.414 0.069 87.218);
--chart-2: oklch(0.308 0.088 265.354);
--chart-3: oklch(0.308 0.088 265.354);
--chart-4: oklch(0.333 0.097 265.265);
--chart-5: oklch(0.418 0.071 86.945);
}