Imprisonment is a shadcn/ui theme built around a muted deep purple primary color (#130c11) with muted deep cyan accents (#0c1113). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep purple primary (#130c11) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #080206black | #fdfcfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #080206black | #fdfcfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #080206black | #fdfcfdwhite |
| Primary | #130c11black | #130c11black |
| Primary foreground | #bd93b1darkgray | #bd93b1darkgray |
| Secondary | #11130cblack | #11130cblack |
| Secondary foreground | #b1bd93darkgray | #b1bd93darkgray |
| Muted | #eaeee3beige | #191c11black |
| Muted foreground | #5f5f5ddimgray | #a1a2a0darkgray |
| Accent | #0c1113black | #0c1113black |
| Accent foreground | #93b1bddarkgray | #93b1bddarkgray |
| Destructive | #8d0d01darkred | #fc1703red |
| Destructive foreground | #fec7c2pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #130c11black | #130c11black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.55:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 9.42:1 | AAA |
| Muted text | 5.42:1 | AA |
| Accent | 8.39:1 | AAA |
| Destructive | 6.44:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 9.42:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 8.39:1 | AAA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Imprisonment in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.108 0.022 335.763);
--muted: oklch(0.942 0.015 119.578);
--muted-foreground: oklch(0.485 0.003 119.412);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.108 0.022 335.763);
--card: oklch(1 0 180);
--card-foreground: oklch(0.108 0.022 335.763);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.165 0.016 336.892);
--primary-foreground: oklch(0.713 0.064 336.744);
--secondary: oklch(0.182 0.015 120.732);
--secondary-foreground: oklch(0.779 0.058 120.614);
--accent: oklch(0.173 0.009 223.852);
--accent-foreground: oklch(0.743 0.037 223.773);
--destructive: oklch(0.41 0.161 30.471);
--destructive-foreground: oklch(0.878 0.063 24.433);
--ring: oklch(0.165 0.016 336.892);
--chart-1: oklch(0.165 0.016 336.892);
--chart-2: oklch(0.182 0.015 120.732);
--chart-3: oklch(0.173 0.009 223.852);
--chart-4: oklch(0.221 0.021 120.98);
--chart-5: oklch(0.165 0.018 337.099);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.003 335.239);
--muted: oklch(0.221 0.021 120.98);
--muted-foreground: oklch(0.71 0.003 119.371);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.003 335.239);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.003 335.239);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.165 0.016 336.892);
--primary-foreground: oklch(0.713 0.064 336.744);
--secondary: oklch(0.182 0.015 120.732);
--secondary-foreground: oklch(0.779 0.058 120.614);
--accent: oklch(0.173 0.009 223.852);
--accent-foreground: oklch(0.743 0.037 223.773);
--destructive: oklch(0.628 0.251 29.994);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.165 0.016 336.892);
--chart-1: oklch(0.165 0.016 336.892);
--chart-2: oklch(0.182 0.015 120.732);
--chart-3: oklch(0.173 0.009 223.852);
--chart-4: oklch(0.221 0.021 120.98);
--chart-5: oklch(0.165 0.018 337.099);
}