Lawmaker is a shadcn/ui theme built around a cyan primary color (#92d7dd) with red accents (#dd9892). The light mode uses a neutral background (#ffffff). Dark mode keeps the cyan primary (#92d7dd) on a cyan-tinted background (#040a0b).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040a0bblack |
| Foreground | #010404black | #ffffffwhite |
| Card | #fcfcfcsnow | #060e0fblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #040a0bblack |
| Popover foreground | #010404black | #ffffffwhite |
| Primary | #92d7ddskyblue | #92d7ddskyblue |
| Primary foreground | #0e2c2fdarkslategray | #0e2c2fdarkslategray |
| Secondary | #dd9892darksalmon | #dd9892darksalmon |
| Secondary foreground | #2f110eblack | #2f110eblack |
| Muted | #ead3d1gainsboro | #2e1715black |
| Muted foreground | #6e5f5edimgray | #a19291rosybrown |
| Accent | #dd9892darksalmon | #dd9892darksalmon |
| Accent foreground | #2f110eblack | #2f110eblack |
| Destructive | #c41b12firebrick | #ec3b32crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #92d7ddskyblue | #92d7ddskyblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.57:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 9.15:1 | AAA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 4.27:1 | AA Large |
| Accent | 7.45:1 | AAA |
| Destructive | 5.97:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 9.15:1 | AAA |
| Secondary button | 7.45:1 | AAA |
| Muted text | 5.64:1 | AA |
| Accent | 7.45:1 | AAA |
| Destructive | 4.01:1 | AA Large |
Paste this into your globals.css to use Lawmaker in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.1 0.013 200.571);
--muted: oklch(0.886 0.026 23.888);
--muted-foreground: oklch(0.5 0.02 24.002);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.1 0.013 200.571);
--card: oklch(0.992 0 161.565);
--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.836 0.07 203.121);
--primary-foreground: oklch(0.273 0.035 203.416);
--secondary: oklch(0.746 0.085 25.048);
--secondary-foreground: oklch(0.224 0.049 27.038);
--accent: oklch(0.746 0.085 25.048);
--accent-foreground: oklch(0.224 0.049 27.038);
--destructive: oklch(0.525 0.202 29.28);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.836 0.07 203.121);
--chart-1: oklch(0.836 0.07 203.121);
--chart-2: oklch(0.746 0.085 25.048);
--chart-3: oklch(0.746 0.085 25.048);
--chart-4: oklch(0.773 0.074 24.783);
--chart-5: oklch(0.839 0.073 203.122);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.012 201.764);
--foreground: oklch(1 0 180);
--muted: oklch(0.235 0.038 25.874);
--muted-foreground: oklch(0.673 0.018 23.859);
--popover: oklch(0.139 0.012 201.764);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.155 0.014 202.548);
--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.836 0.07 203.121);
--primary-foreground: oklch(0.273 0.035 203.416);
--secondary: oklch(0.746 0.085 25.048);
--secondary-foreground: oklch(0.224 0.049 27.038);
--accent: oklch(0.746 0.085 25.048);
--accent-foreground: oklch(0.224 0.049 27.038);
--destructive: oklch(0.622 0.214 28.256);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.836 0.07 203.121);
--chart-1: oklch(0.836 0.07 203.121);
--chart-2: oklch(0.746 0.085 25.048);
--chart-3: oklch(0.746 0.085 25.048);
--chart-4: oklch(0.773 0.074 24.783);
--chart-5: oklch(0.839 0.073 203.122);
}