Legal is a shadcn/ui theme built around a vivid light teal primary color (#93f6df) with vivid light cyan accents (#93dbf6). The light mode uses a neutral background (#fbfefd). Dark mode keeps the vivid light teal primary (#93f6df) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #000000black |
| Foreground | #041511black | #fcfdfdwhite |
| Card | #f7fdfcmintcream | #030303black |
| Card foreground | #03110eblack | #ffffffwhite |
| Popover | #fbfefdwhite | #000000black |
| Popover foreground | #041511black | #fcfdfdwhite |
| Primary | #93f6dfaquamarine | #93f6dfaquamarine |
| Primary foreground | #07503fdarkslategray | #07503fdarkslategray |
| Secondary | #93f6adpalegreen | #93f6adpalegreen |
| Secondary foreground | #07501adarkgreen | #07501adarkgreen |
| Muted | #eaf0ecwhitesmoke | #0f1511black |
| Muted foreground | #5a685edimgray | #97a59bdarkgray |
| Accent | #93dbf6lightskyblue | #93dbf6lightskyblue |
| Accent foreground | #073c50darkslategray | #073c50darkslategray |
| Destructive | #5f1607maroon | #e83511orangered |
| Destructive foreground | #f8afa0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #93f6dfaquamarine | #93f6dfaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.47:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 5.08:1 | AA |
| Accent | 7.75:1 | AAA |
| Destructive | 7.26:1 | AAA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.36:1 | AAA |
| Muted text | 7.21:1 | AAA |
| Accent | 7.75:1 | AAA |
| Destructive | 4.22:1 | AA Large |
Paste this into your globals.css to use Legal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 180.859);
--foreground: oklch(0.18 0.026 176.841);
--muted: oklch(0.95 0.008 154.374);
--muted-foreground: oklch(0.502 0.023 153.7);
--popover: oklch(0.995 0.004 180.859);
--popover-foreground: oklch(0.18 0.026 176.841);
--card: oklch(0.989 0.007 180.756);
--card-foreground: oklch(0.163 0.023 178.06);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.905 0.099 177.282);
--primary-foreground: oklch(0.385 0.072 171.53);
--secondary: oklch(0.893 0.137 151.365);
--secondary-foreground: oklch(0.377 0.108 146.777);
--accent: oklch(0.854 0.081 222.87);
--accent-foreground: oklch(0.335 0.062 228.651);
--destructive: oklch(0.323 0.108 33.146);
--destructive-foreground: oklch(0.819 0.089 31.648);
--ring: oklch(0.905 0.099 177.282);
--chart-1: oklch(0.905 0.099 177.282);
--chart-2: oklch(0.893 0.137 151.365);
--chart-3: oklch(0.854 0.081 222.87);
--chart-4: oklch(0.905 0.12 151.867);
--chart-5: oklch(0.908 0.102 177.155);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 180.934);
--muted: oklch(0.187 0.012 153.313);
--muted-foreground: oklch(0.708 0.021 153.995);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 180.934);
--card: oklch(0.092 0 180);
--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.905 0.099 177.282);
--primary-foreground: oklch(0.385 0.072 171.53);
--secondary: oklch(0.893 0.137 151.365);
--secondary-foreground: oklch(0.377 0.108 146.777);
--accent: oklch(0.854 0.081 222.87);
--accent-foreground: oklch(0.335 0.062 228.651);
--destructive: oklch(0.609 0.219 32.522);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.905 0.099 177.282);
--chart-1: oklch(0.905 0.099 177.282);
--chart-2: oklch(0.893 0.137 151.365);
--chart-3: oklch(0.854 0.081 222.87);
--chart-4: oklch(0.905 0.12 151.867);
--chart-5: oklch(0.908 0.102 177.155);
}