Prisoner is a shadcn/ui theme built around a neutral gray primary color (#c9c9c9) with neutral gray accents (#c9c9c9). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#c9c9c9) on a red-tinted background (#100505).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100505black |
| Foreground | #170303black | #fdfcfcsnow |
| Card | #ffffffwhite | #100505black |
| Card foreground | #170303black | #fdfcfcsnow |
| Popover | #ffffffwhite | #100505black |
| Popover foreground | #170303black | #fdfcfcsnow |
| Primary | #c9c9c9silver | #c9c9c9silver |
| Primary foreground | #303030darkslategray | #303030darkslategray |
| Secondary | #c9c9c9silver | #c9c9c9silver |
| Secondary foreground | #303030darkslategray | #303030darkslategray |
| Muted | #ecdadagainsboro | #251313black |
| Muted foreground | #616161dimgray | #9e9e9edarkgray |
| Accent | #c9c9c9silver | #c9c9c9silver |
| Accent foreground | #303030darkslategray | #303030darkslategray |
| Destructive | #7d320csaddlebrown | #e35b16chocolate |
| Destructive foreground | #f9d5c3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c9c9c9silver | #c9c9c9silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.98:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 4.59:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.55:1 | AA |
| Text on background | 19.64:1 | AAA |
| Text on card | 19.64:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 6.63:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 3.63:1 | AA Large |
Paste this into your globals.css to use Prisoner in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.14 0.042 24.259);
--muted: oklch(0.902 0.02 17.538);
--muted-foreground: oklch(0.492 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.14 0.042 24.259);
--card: oklch(1 0 180);
--card-foreground: oklch(0.14 0.042 24.259);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.837 0 171.254);
--primary-foreground: oklch(0.311 0 180);
--secondary: oklch(0.837 0 171.254);
--secondary-foreground: oklch(0.311 0 180);
--accent: oklch(0.837 0 171.254);
--accent-foreground: oklch(0.311 0 180);
--destructive: oklch(0.418 0.115 42.93);
--destructive-foreground: oklch(0.898 0.048 48.169);
--ring: oklch(0.837 0 171.254);
--chart-1: oklch(0.837 0 171.254);
--chart-2: oklch(0.837 0 171.254);
--chart-3: oklch(0.837 0 171.254);
--chart-4: oklch(0.861 0 180);
--chart-5: oklch(0.835 0.004 17.229);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.023 20.699);
--foreground: oklch(0.991 0.002 17.186);
--muted: oklch(0.212 0.031 19.958);
--muted-foreground: oklch(0.7 0 180);
--popover: oklch(0.132 0.023 20.699);
--popover-foreground: oklch(0.991 0.002 17.186);
--card: oklch(0.132 0.023 20.699);
--card-foreground: oklch(0.991 0.002 17.186);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.837 0 171.254);
--primary-foreground: oklch(0.311 0 180);
--secondary: oklch(0.837 0 171.254);
--secondary-foreground: oklch(0.311 0 180);
--accent: oklch(0.837 0 171.254);
--accent-foreground: oklch(0.311 0 180);
--destructive: oklch(0.64 0.184 41.914);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.837 0 171.254);
--chart-1: oklch(0.837 0 171.254);
--chart-2: oklch(0.837 0 171.254);
--chart-3: oklch(0.837 0 171.254);
--chart-4: oklch(0.861 0 180);
--chart-5: oklch(0.835 0.004 17.229);
}