Legal is a shadcn/ui theme built around a vivid light green primary color (#e9ffae) with vivid light purple accents (#ffaee9). The light mode uses a neutral background (#fdfefb). Dark mode keeps the vivid light green primary (#e9ffae) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #030401black |
| Foreground | #060802black | #ffffffwhite |
| Card | #fdfefbwhite | #030401black |
| Card foreground | #060802black | #ffffffwhite |
| Popover | #fdfefbwhite | #030401black |
| Popover foreground | #060802black | #ffffffwhite |
| Primary | #e9ffaepalegoldenrod | #e9ffaepalegoldenrod |
| Primary foreground | #0f1400black | #0f1400black |
| Secondary | #aee9ffpaleturquoise | #aee9ffpaleturquoise |
| Secondary foreground | #000f14black | #000f14black |
| Muted | #d8dddfgainsboro | #202527darkslategray |
| Muted foreground | #5b5c5ddimgray | #a2a4a4darkgray |
| Accent | #ffaee9pink | #ffaee9pink |
| Accent foreground | #7a0159purple | #7a0159purple |
| Destructive | #9d2906firebrick | #e73c08orangered |
| Destructive foreground | #fee0d8mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e9ffaepalegoldenrod | #e9ffaepalegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 17.25:1 | AAA |
| Secondary button | 14.73:1 | AAA |
| Muted text | 4.88:1 | AA |
| Accent | 6.30:1 | AA |
| Destructive | 6.10:1 | AA |
| Text on background | 20.54:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 17.25:1 | AAA |
| Secondary button | 14.73:1 | AAA |
| Muted text | 6.16:1 | AA |
| Accent | 6.30:1 | AA |
| Destructive | 4.14:1 | AA Large |
Paste this into your globals.css to use Legal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 118.643);
--foreground: oklch(0.129 0.019 118.652);
--muted: oklch(0.894 0.006 221.359);
--muted-foreground: oklch(0.475 0.002 221.339);
--popover: oklch(0.996 0.004 118.643);
--popover-foreground: oklch(0.129 0.019 118.652);
--card: oklch(0.996 0.004 118.643);
--card-foreground: oklch(0.129 0.019 118.652);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.964 0.105 120.543);
--primary-foreground: oklch(0.18 0.043 121.107);
--secondary: oklch(0.901 0.067 222.354);
--secondary-foreground: oklch(0.155 0.028 219.238);
--accent: oklch(0.845 0.12 336.841);
--accent-foreground: oklch(0.387 0.165 343.832);
--destructive: oklch(0.463 0.158 35.158);
--destructive-foreground: oklch(0.93 0.034 37.615);
--ring: oklch(0.964 0.105 120.543);
--chart-1: oklch(0.964 0.105 120.543);
--chart-2: oklch(0.901 0.067 222.354);
--chart-3: oklch(0.845 0.12 336.841);
--chart-4: oklch(0.919 0.055 222.063);
--chart-5: oklch(0.967 0.108 120.596);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.015 118.65);
--foreground: oklch(1 0 180);
--muted: oklch(0.261 0.008 221.598);
--muted-foreground: oklch(0.717 0.002 221.325);
--popover: oklch(0.102 0.015 118.65);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.102 0.015 118.65);
--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.964 0.105 120.543);
--primary-foreground: oklch(0.18 0.043 121.107);
--secondary: oklch(0.901 0.067 222.354);
--secondary-foreground: oklch(0.155 0.028 219.238);
--accent: oklch(0.845 0.12 336.841);
--accent-foreground: oklch(0.387 0.165 343.832);
--destructive: oklch(0.612 0.213 34.579);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.964 0.105 120.543);
--chart-1: oklch(0.964 0.105 120.543);
--chart-2: oklch(0.901 0.067 222.354);
--chart-3: oklch(0.845 0.12 336.841);
--chart-4: oklch(0.919 0.055 222.063);
--chart-5: oklch(0.967 0.108 120.596);
}