Unlawful is a shadcn/ui theme built around a green primary color (#a0e184) with muted light green accents (#d3dece). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#a0e184) on a green-tinted background (#060b05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060b05black |
| Foreground | #040802black | #f7f8f6whitesmoke |
| Card | #fcfcfcsnow | #090e06black |
| Card foreground | #020401black | #fafbf9snow |
| Popover | #ffffffwhite | #060b05black |
| Popover foreground | #040802black | #f7f8f6whitesmoke |
| Primary | #a0e184lightgreen | #a0e184lightgreen |
| Primary foreground | #13290ablack | #13290ablack |
| Secondary | #d3decelightgrey | #1b1f19black |
| Secondary foreground | #394932darkslategray | #b2beacdarkgray |
| Muted | #e5f1dfbeige | #13200eblack |
| Muted foreground | #535752dimgray | #aaada8darkgray |
| Accent | #d3decelightgrey | #1b1f19black |
| Accent foreground | #394932darkslategray | #b2beacdarkgray |
| Destructive | #6c1e04maroon | #f54c14orangered |
| Destructive foreground | #fbbca7lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a0e184lightgreen | #a0e184lightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.17:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 10.08:1 | AAA |
| Secondary button | 6.95:1 | AA |
| Muted text | 6.28:1 | AA |
| Accent | 6.95:1 | AA |
| Destructive | 7.04:1 | AAA |
| Text on background | 18.65:1 | AAA |
| Text on card | 18.77:1 | AAA |
| Primary button | 10.08:1 | AAA |
| Secondary button | 8.61:1 | AAA |
| Muted text | 7.47:1 | AAA |
| Accent | 8.61:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Unlawful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.126 0.024 134.166);
--muted: oklch(0.944 0.027 136.125);
--muted-foreground: oklch(0.451 0.009 136.097);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.126 0.024 134.166);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.1 0.019 134.166);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.845 0.14 136.813);
--primary-foreground: oklch(0.254 0.06 137.478);
--secondary: oklch(0.888 0.024 136.121);
--secondary-foreground: oklch(0.384 0.044 136.496);
--accent: oklch(0.888 0.024 136.121);
--accent-foreground: oklch(0.384 0.044 136.496);
--destructive: oklch(0.358 0.115 36.946);
--destructive-foreground: oklch(0.848 0.079 39.22);
--ring: oklch(0.845 0.14 136.813);
--chart-1: oklch(0.845 0.14 136.813);
--chart-2: oklch(0.888 0.024 136.121);
--chart-3: oklch(0.888 0.024 136.121);
--chart-4: oklch(0.909 0.019 136.1);
--chart-5: oklch(0.849 0.147 136.859);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.14 0.017 134.876);
--foreground: oklch(0.979 0.003 136.033);
--muted: oklch(0.225 0.037 136.788);
--muted-foreground: oklch(0.744 0.008 136.062);
--popover: oklch(0.14 0.017 134.876);
--popover-foreground: oklch(0.979 0.003 136.033);
--card: oklch(0.155 0.02 135.444);
--card-foreground: oklch(0.986 0.002 136.029);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.845 0.14 136.813);
--primary-foreground: oklch(0.254 0.06 137.478);
--secondary: oklch(0.234 0.014 136.259);
--secondary-foreground: oklch(0.787 0.028 136.155);
--accent: oklch(0.234 0.014 136.259);
--accent-foreground: oklch(0.787 0.028 136.155);
--destructive: oklch(0.651 0.214 36.231);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.845 0.14 136.813);
--chart-1: oklch(0.845 0.14 136.813);
--chart-2: oklch(0.234 0.014 136.259);
--chart-3: oklch(0.234 0.014 136.259);
--chart-4: oklch(0.268 0.018 136.277);
--chart-5: oklch(0.849 0.147 136.859);
}