Criminal is a shadcn/ui theme built around a vivid green primary color (#29fa87) with muted light green accents (#d3dfd8). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid green primary (#29fa87) on a neutral background (#020805).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #020805black |
| Foreground | #030805black | #f8fbfamintcream |
| Card | #f7fdfamintcream | #040c07black |
| Card foreground | #010402black | #fcfdfcwhite |
| Popover | #f7fdfamintcream | #040c07black |
| Popover foreground | #010402black | #fcfdfcwhite |
| Primary | #29fa87springgreen | #29fa87springgreen |
| Primary foreground | #025527darkgreen | #025527darkgreen |
| Secondary | #e3e8e5gainsboro | #202221black |
| Secondary foreground | #45544cdarkslategray | #b7bdbasilver |
| Muted | #e8edealavender | #121714black |
| Muted foreground | #596960dimgray | #96a69ddarkgray |
| Accent | #d3dfd8gainsboro | #2e3833darkslategray |
| Accent foreground | #364a3fdarkslategray | #c7d1cclightgrey |
| Destructive | #97360csaddlebrown | #de4f12chocolate |
| Destructive foreground | #fce4d9antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #29fa87springgreen | #29fa87springgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 6.45:1 | AA |
| Muted text | 4.91:1 | AA |
| Accent | 6.92:1 | AA |
| Destructive | 6.05:1 | AA |
| Text on background | 19.41:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 6.45:1 | AA |
| Secondary button | 8.35:1 | AAA |
| Muted text | 7.11:1 | AAA |
| Accent | 7.78:1 | AAA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Criminal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 162.516);
--foreground: oklch(0.123 0.015 162.643);
--muted: oklch(0.942 0.006 162.452);
--muted-foreground: oklch(0.504 0.023 161.435);
--popover: oklch(0.989 0.008 162.413);
--popover-foreground: oklch(0.097 0.012 162.643);
--card: oklch(0.989 0.008 162.413);
--card-foreground: oklch(0.097 0.012 162.643);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.865 0.218 152.157);
--primary-foreground: oklch(0.392 0.103 151.503);
--secondary: oklch(0.926 0.007 162.441);
--secondary-foreground: oklch(0.431 0.024 161.186);
--accent: oklch(0.892 0.016 162.17);
--accent-foreground: oklch(0.388 0.032 160.393);
--destructive: oklch(0.467 0.139 39.814);
--destructive-foreground: oklch(0.935 0.03 44.681);
--ring: oklch(0.865 0.218 152.157);
--chart-1: oklch(0.865 0.218 152.157);
--chart-2: oklch(0.926 0.007 162.441);
--chart-3: oklch(0.892 0.016 162.17);
--chart-4: oklch(0.949 0.005 162.498);
--chart-5: oklch(0.873 0.223 151.881);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.015 162.643);
--foreground: oklch(0.986 0.004 162.527);
--muted: oklch(0.198 0.009 161.414);
--muted-foreground: oklch(0.71 0.021 161.856);
--popover: oklch(0.141 0.018 162.448);
--popover-foreground: oklch(0.993 0.002 162.573);
--card: oklch(0.141 0.018 162.448);
--card-foreground: oklch(0.993 0.002 162.573);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.865 0.218 152.157);
--primary-foreground: oklch(0.392 0.103 151.503);
--secondary: oklch(0.251 0.005 162.143);
--secondary-foreground: oklch(0.793 0.007 162.386);
--accent: oklch(0.329 0.015 161.423);
--accent-foreground: oklch(0.851 0.012 162.262);
--destructive: oklch(0.616 0.189 39.225);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.865 0.218 152.157);
--chart-1: oklch(0.865 0.218 152.157);
--chart-2: oklch(0.251 0.005 162.143);
--chart-3: oklch(0.329 0.015 161.423);
--chart-4: oklch(0.283 0.006 162.115);
--chart-5: oklch(0.873 0.223 151.881);
}