Judicious is a shadcn/ui theme built around a vivid light green primary color (#e7ffe6) with neutral gray accents (#cfcfcf). The light mode uses a neutral background (#f8fcf8). Dark mode keeps the vivid light green primary (#e7ffe6) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf8mintcream | #000000black |
| Foreground | #000000black | #f6f8f6whitesmoke |
| Card | #f8fcf8mintcream | #000000black |
| Card foreground | #000000black | #f6f8f6whitesmoke |
| Popover | #f8fcf8mintcream | #000000black |
| Popover foreground | #000000black | #f6f8f6whitesmoke |
| Primary | #e7ffe6honeydew | #e7ffe6honeydew |
| Primary foreground | #054c01darkgreen | #054c01darkgreen |
| Secondary | #cfcfcflightgrey | #1c1c1cblack |
| Secondary foreground | #363636darkslategray | #b5b5b5silver |
| Muted | #f6efefwhitesmoke | #100909black |
| Muted foreground | #544040darkslategray | #bfababdarkgray |
| Accent | #cfcfcflightgrey | #1c1c1cblack |
| Accent foreground | #363636darkslategray | #b5b5b5silver |
| Destructive | #74160bmaroon | #e93420orangered |
| Destructive foreground | #f8c0b9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e7ffe6honeydew | #e7ffe6honeydew |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.25:1 | AAA |
| Text on card | 20.25:1 | AAA |
| Primary button | 9.70:1 | AAA |
| Secondary button | 7.72:1 | AAA |
| Muted text | 8.44:1 | AAA |
| Accent | 7.72:1 | AAA |
| Destructive | 7.10:1 | AAA |
| Text on background | 19.67:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 9.70:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 4.21:1 | AA Large |
Paste this into your globals.css to use Judicious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 144.093);
--foreground: oklch(0 0 0);
--muted: oklch(0.957 0.008 17.296);
--muted-foreground: oklch(0.392 0.029 18.465);
--popover: oklch(0.987 0.006 144.093);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.006 144.093);
--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.975 0.041 143.879);
--primary-foreground: oklch(0.361 0.121 142.048);
--secondary: oklch(0.853 0 168.69);
--secondary-foreground: oklch(0.331 0 180);
--accent: oklch(0.853 0 168.69);
--accent-foreground: oklch(0.331 0 180);
--destructive: oklch(0.366 0.13 30.445);
--destructive-foreground: oklch(0.856 0.066 25.804);
--ring: oklch(0.975 0.041 143.879);
--chart-1: oklch(0.975 0.041 143.879);
--chart-2: oklch(0.853 0 168.69);
--chart-3: oklch(0.853 0 168.69);
--chart-4: oklch(0.877 0 180);
--chart-5: oklch(0.976 0.042 143.872);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.004 144.107);
--muted: oklch(0.151 0.013 18.744);
--muted-foreground: oklch(0.758 0.024 17.695);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.978 0.004 144.107);
--card: oklch(0 0 0);
--card-foreground: oklch(0.978 0.004 144.107);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.975 0.041 143.879);
--primary-foreground: oklch(0.361 0.121 142.048);
--secondary: oklch(0.227 0 164.055);
--secondary-foreground: oklch(0.773 0 180);
--accent: oklch(0.227 0 164.055);
--accent-foreground: oklch(0.773 0 180);
--destructive: oklch(0.61 0.219 30.472);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.975 0.041 143.879);
--chart-1: oklch(0.975 0.041 143.879);
--chart-2: oklch(0.227 0 164.055);
--chart-3: oklch(0.227 0 164.055);
--chart-4: oklch(0.259 0 167.471);
--chart-5: oklch(0.976 0.042 143.872);
}