Detainee is a shadcn/ui theme built around a muted light violet primary color (#e5e1ef) with muted light green accents (#e1efe5). The light mode uses a neutral background (#fcfbfd). Dark mode keeps the muted light violet primary (#e5e1ef) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfdsnow | #020104black |
| Foreground | #05020eblack | #f6f5f9whitesmoke |
| Card | #fcfbfdsnow | #020104black |
| Card foreground | #05020eblack | #f6f5f9whitesmoke |
| Popover | #fcfbfdsnow | #020104black |
| Popover foreground | #05020eblack | #f6f5f9whitesmoke |
| Primary | #e5e1eflavender | #e5e1eflavender |
| Primary foreground | #443866darkslateblue | #443866darkslateblue |
| Secondary | #efe5e1antiquewhite | #efe5e1antiquewhite |
| Secondary foreground | #664438darkolivegreen | #664438darkolivegreen |
| Muted | #ede6e3linen | #1c1512black |
| Muted foreground | #6b5c57dimgray | #a89a94rosybrown |
| Accent | #e1efe5gainsboro | #e1efe5gainsboro |
| Accent foreground | #142418black | #142418black |
| Destructive | #d7580fchocolate | #ef6515chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e5e1eflavender | #e5e1eflavender |
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.17:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 5.16:1 | AA |
| Accent | 13.63:1 | AAA |
| Destructive | 3.97:1 | AA Large |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 8.17:1 | AAA |
| Secondary button | 6.92:1 | AA |
| Muted text | 6.63:1 | AA |
| Accent | 13.63:1 | AAA |
| Destructive | 6.53:1 | AA |
Paste this into your globals.css to use Detainee in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 298.518);
--foreground: oklch(0.104 0.036 297.814);
--muted: oklch(0.929 0.008 41.234);
--muted-foreground: oklch(0.488 0.02 41.044);
--popover: oklch(0.99 0.003 298.518);
--popover-foreground: oklch(0.104 0.036 297.814);
--card: oklch(0.99 0.003 298.518);
--card-foreground: oklch(0.104 0.036 297.814);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.918 0.018 298.218);
--primary-foreground: oklch(0.376 0.077 294.664);
--secondary: oklch(0.928 0.012 41.209);
--secondary-foreground: oklch(0.423 0.051 40.795);
--accent: oklch(0.939 0.019 154.162);
--accent-foreground: oklch(0.242 0.032 151.909);
--destructive: oklch(0.616 0.175 43.648);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.918 0.018 298.218);
--chart-1: oklch(0.918 0.018 298.218);
--chart-2: oklch(0.928 0.012 41.209);
--chart-3: oklch(0.939 0.019 154.162);
--chart-4: oklch(0.952 0.008 41.241);
--chart-5: oklch(0.916 0.02 298.181);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.079 0.016 298.437);
--foreground: oklch(0.973 0.005 298.47);
--muted: oklch(0.202 0.013 40.958);
--muted-foreground: oklch(0.696 0.018 41.121);
--popover: oklch(0.079 0.016 298.437);
--popover-foreground: oklch(0.973 0.005 298.47);
--card: oklch(0.079 0.016 298.437);
--card-foreground: oklch(0.973 0.005 298.47);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.918 0.018 298.218);
--primary-foreground: oklch(0.376 0.077 294.664);
--secondary: oklch(0.928 0.012 41.209);
--secondary-foreground: oklch(0.423 0.051 40.795);
--accent: oklch(0.939 0.019 154.162);
--accent-foreground: oklch(0.242 0.032 151.909);
--destructive: oklch(0.67 0.188 44.093);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.918 0.018 298.218);
--chart-1: oklch(0.918 0.018 298.218);
--chart-2: oklch(0.928 0.012 41.209);
--chart-3: oklch(0.939 0.019 154.162);
--chart-4: oklch(0.952 0.008 41.241);
--chart-5: oklch(0.916 0.02 298.181);
}