Detainee is a shadcn/ui theme built around a vivid light blue primary color (#97cdf2) with vivid light blue accents (#97a0f2). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light blue primary (#97cdf2) on a blue-tinted background (#050b0f).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050b0fblack |
| Foreground | #02090dblack | #fbfdfdwhite |
| Card | #fcfcfcsnow | #060e13black |
| Card foreground | #010609black | #ffffffwhite |
| Popover | #fcfcfcsnow | #060e13black |
| Popover foreground | #010609black | #ffffffwhite |
| Primary | #97cdf2skyblue | #97cdf2skyblue |
| Primary foreground | #0a324dmidnightblue | #0a324dmidnightblue |
| Secondary | #97f2e8paleturquoise | #97f2e8paleturquoise |
| Secondary foreground | #0a4d46darkslategray | #0a4d46darkslategray |
| Muted | #e9ececlavender | #131616black |
| Muted foreground | #4f6966dimgray | #96b0addarkgray |
| Accent | #97a0f2lightsteelblue | #97a0f2lightsteelblue |
| Accent foreground | #0a114dmidnightblue | #0a114dmidnightblue |
| Destructive | #cd1204firebrick | #fb3123orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #97cdf2skyblue | #97cdf2skyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.04:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 4.99:1 | AA |
| Accent | 7.19:1 | AAA |
| Destructive | 5.70:1 | AA |
| Text on background | 19.35:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 7.89:1 | AAA |
| Accent | 7.19:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Detainee in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.131 0.018 229.012);
--muted: oklch(0.941 0.004 189.992);
--muted-foreground: oklch(0.498 0.031 188.623);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.115 0.016 227.512);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.115 0.016 227.512);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.825 0.076 238.063);
--primary-foreground: oklch(0.305 0.065 242.96);
--secondary: oklch(0.9 0.088 187.654);
--secondary-foreground: oklch(0.379 0.063 184.493);
--accent: oklch(0.732 0.118 278.205);
--accent-foreground: oklch(0.224 0.109 269.42);
--destructive: oklch(0.537 0.214 29.823);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.825 0.076 238.063);
--chart-1: oklch(0.825 0.076 238.063);
--chart-2: oklch(0.9 0.088 187.654);
--chart-3: oklch(0.732 0.118 278.205);
--chart-4: oklch(0.912 0.078 188.001);
--chart-5: oklch(0.825 0.079 238.142);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.014 234.293);
--foreground: oklch(0.992 0.002 236.46);
--muted: oklch(0.197 0.005 189.479);
--muted-foreground: oklch(0.737 0.029 189.178);
--popover: oklch(0.158 0.017 236.758);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.158 0.017 236.758);
--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.825 0.076 238.063);
--primary-foreground: oklch(0.305 0.065 242.96);
--secondary: oklch(0.9 0.088 187.654);
--secondary-foreground: oklch(0.379 0.063 184.493);
--accent: oklch(0.732 0.118 278.205);
--accent-foreground: oklch(0.224 0.109 269.42);
--destructive: oklch(0.639 0.236 29.475);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.825 0.076 238.063);
--chart-1: oklch(0.825 0.076 238.063);
--chart-2: oklch(0.9 0.088 187.654);
--chart-3: oklch(0.732 0.118 278.205);
--chart-4: oklch(0.912 0.078 188.001);
--chart-5: oklch(0.825 0.079 238.142);
}