Legal is a shadcn/ui theme built around a red primary color (#863c48) with orange accents (#86553c). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#863c48) on a neutral background (#030202).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030202black |
| Foreground | #0d0204black | #f9f6f7whitesmoke |
| Card | #fcfcfcsnow | #070304black |
| Card foreground | #090203black | #fbf9f9snow |
| Popover | #fcfcfcsnow | #070304black |
| Popover foreground | #090203black | #fbf9f9snow |
| Primary | #863c48sienna | #863c48sienna |
| Primary foreground | #fcf8f9snow | #fcf8f9snow |
| Secondary | #863c6ddimgray | #863c6ddimgray |
| Secondary foreground | #fcf8fbsnow | #fcf8fbsnow |
| Muted | #eae6e9lavender | #191518black |
| Muted foreground | #413e40darkslategray | #c1bec0silver |
| Accent | #86553csienna | #86553csienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b50903firebrick | #fc241dorangered |
| Destructive foreground | #ffeceblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #863c48sienna | #863c48sienna |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 8.54:1 | AAA |
| Accent | 6.24:1 | AA |
| Destructive | 6.15:1 | AA |
| Text on background | 19.31:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 9.81:1 | AAA |
| Accent | 6.24:1 | AA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Legal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.117 0.027 6.567);
--muted: oklch(0.929 0.006 337.39);
--muted-foreground: oklch(0.369 0.004 337.509);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.102 0.023 6.239);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.102 0.023 6.239);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.457 0.101 11.595);
--primary-foreground: oklch(0.982 0.004 5.56);
--secondary: oklch(0.47 0.118 341.99);
--secondary-foreground: oklch(0.983 0.005 337.374);
--accent: oklch(0.497 0.075 47.05);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.488 0.197 29.479);
--destructive-foreground: oklch(0.957 0.021 19.918);
--ring: oklch(0.457 0.101 11.595);
--chart-1: oklch(0.457 0.101 11.595);
--chart-2: oklch(0.47 0.118 341.99);
--chart-3: oklch(0.497 0.075 47.05);
--chart-4: oklch(0.496 0.126 342.032);
--chart-5: oklch(0.456 0.109 12.193);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.009 5.786);
--foreground: oklch(0.976 0.003 5.52);
--muted: oklch(0.201 0.008 338.092);
--muted-foreground: oklch(0.804 0.004 337.357);
--popover: oklch(0.109 0.011 5.786);
--popover-foreground: oklch(0.984 0.002 5.496);
--card: oklch(0.109 0.011 5.786);
--card-foreground: oklch(0.984 0.002 5.496);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.457 0.101 11.595);
--primary-foreground: oklch(0.982 0.004 5.56);
--secondary: oklch(0.47 0.118 341.99);
--secondary-foreground: oklch(0.983 0.005 337.374);
--accent: oklch(0.497 0.075 47.05);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.633 0.244 28.871);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.457 0.101 11.595);
--chart-1: oklch(0.457 0.101 11.595);
--chart-2: oklch(0.47 0.118 341.99);
--chart-3: oklch(0.497 0.075 47.05);
--chart-4: oklch(0.496 0.126 342.032);
--chart-5: oklch(0.456 0.109 12.193);
}