Criminal is a shadcn/ui theme built around a yellow primary color (#dcdc8f) with muted light yellow accents (#e3e3dd). The light mode uses a neutral background (#fefefb). Dark mode keeps the yellow primary (#dcdc8f) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #070703black |
| Foreground | #040401black | #ffffffwhite |
| Card | #fdfdf7snow | #0a0a05black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfdf7snow | #0a0a05black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #dcdc8fkhaki | #dcdc8fkhaki |
| Primary foreground | #2b2b0dblack | #2b2b0dblack |
| Secondary | #e3e3ddgainsboro | #1d1d16black |
| Secondary foreground | #4f4f40darkolivegreen | #bcbca9silver |
| Muted | #e9e9e2beige | #1d1d16black |
| Muted foreground | #565643darkolivegreen | #bcbca9silver |
| Accent | #e3e3ddgainsboro | #1d1d16black |
| Accent foreground | #4f4f40darkolivegreen | #bcbca9silver |
| Destructive | #aa1b0efirebrick | #d92212firebrick |
| Destructive foreground | #fdeeeclinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dcdc8fkhaki | #dcdc8fkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.33:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 10.04:1 | AAA |
| Secondary button | 6.48:1 | AA |
| Muted text | 6.14:1 | AA |
| Accent | 6.48:1 | AA |
| Destructive | 6.49:1 | AA |
| Text on background | 20.19:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 10.04:1 | AAA |
| Secondary button | 8.81:1 | AAA |
| Muted text | 8.76:1 | AAA |
| Accent | 8.81:1 | AAA |
| Destructive | 5.01:1 | AA |
Paste this into your globals.css to use Criminal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 106.48);
--foreground: oklch(0.103 0.013 108.442);
--muted: oklch(0.933 0.01 106.596);
--muted-foreground: oklch(0.449 0.031 107.587);
--popover: oklch(0.993 0.009 106.56);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.993 0.009 106.56);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.876 0.098 108.266);
--primary-foreground: oklch(0.28 0.046 109.031);
--secondary: oklch(0.916 0.008 106.561);
--secondary-foreground: oklch(0.421 0.023 107.34);
--accent: oklch(0.916 0.008 106.561);
--accent-foreground: oklch(0.421 0.023 107.34);
--destructive: oklch(0.475 0.179 30.072);
--destructive-foreground: oklch(0.96 0.017 23.764);
--ring: oklch(0.876 0.098 108.266);
--chart-1: oklch(0.876 0.098 108.266);
--chart-2: oklch(0.916 0.008 106.561);
--chart-3: oklch(0.916 0.008 106.561);
--chart-4: oklch(0.937 0.006 106.517);
--chart-5: oklch(0.882 0.103 108.34);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.125 0.011 107.86);
--foreground: oklch(1 0 180);
--muted: oklch(0.229 0.014 107.466);
--muted-foreground: oklch(0.791 0.027 107.01);
--popover: oklch(0.143 0.012 107.86);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.143 0.012 107.86);
--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.876 0.098 108.266);
--primary-foreground: oklch(0.28 0.046 109.031);
--secondary: oklch(0.228 0.012 107.343);
--secondary-foreground: oklch(0.791 0.027 107.01);
--accent: oklch(0.228 0.012 107.343);
--accent-foreground: oklch(0.791 0.027 107.01);
--destructive: oklch(0.568 0.216 30.09);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.876 0.098 108.266);
--chart-1: oklch(0.876 0.098 108.266);
--chart-2: oklch(0.228 0.012 107.343);
--chart-3: oklch(0.228 0.012 107.343);
--chart-4: oklch(0.263 0.015 107.415);
--chart-5: oklch(0.882 0.103 108.34);
}