Judicious is a shadcn/ui theme built around a muted green primary color (#8a9b55) with muted light green accents (#dde0d1). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted green primary (#8a9b55) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #121603black | #f8f8f6whitesmoke |
| Card | #fcfdf7snow | #030303black |
| Card foreground | #0e1203black | #fafbf9snow |
| Popover | #fcfdf7snow | #030303black |
| Popover foreground | #0e1203black | #fafbf9snow |
| Primary | #8a9b55gray | #8a9b55gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #dde0d1gainsboro | #272924darkslategray |
| Secondary foreground | #464c34darkolivegreen | #c1c3bbsilver |
| Muted | #e5ead7gainsboro | #232815black |
| Muted foreground | #585954dimgray | #aaaba6darkgray |
| Accent | #dde0d1gainsboro | #272924darkslategray |
| Accent foreground | #464c34darkolivegreen | #c1c3bbsilver |
| Destructive | #993206saddlebrown | #f76526tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8a9b55gray | #8a9b55gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.18:1 | AAA |
| Text on card | 18.55:1 | AAA |
| Primary button | 6.88:1 | AA |
| Secondary button | 6.67:1 | AA |
| Muted text | 5.73:1 | AA |
| Accent | 6.67:1 | AA |
| Destructive | 7.50:1 | AAA |
| Text on background | 19.74:1 | AAA |
| Text on card | 19.92:1 | AAA |
| Primary button | 6.88:1 | AA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 6.55:1 | AA |
| Accent | 8.27:1 | AAA |
| Destructive | 6.85:1 | AA |
Paste this into your globals.css to use Judicious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 117.157);
--foreground: oklch(0.191 0.037 120.076);
--muted: oklch(0.928 0.025 117.56);
--muted-foreground: oklch(0.462 0.008 117.405);
--popover: oklch(0.991 0.009 117.235);
--popover-foreground: oklch(0.172 0.033 119.327);
--card: oklch(0.991 0.009 117.235);
--card-foreground: oklch(0.172 0.033 119.327);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.659 0.096 119.869);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.9 0.02 117.475);
--secondary-foreground: oklch(0.404 0.039 118.862);
--accent: oklch(0.9 0.02 117.475);
--accent-foreground: oklch(0.404 0.039 118.862);
--destructive: oklch(0.464 0.145 38.823);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.659 0.096 119.869);
--chart-1: oklch(0.659 0.096 119.869);
--chart-2: oklch(0.9 0.02 117.475);
--chart-3: oklch(0.9 0.02 117.475);
--chart-4: oklch(0.92 0.016 117.387);
--chart-5: oklch(0.668 0.104 120.113);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.003 117.132);
--muted: oklch(0.266 0.032 119.36);
--muted-foreground: oklch(0.738 0.007 117.261);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(0.986 0.002 117.114);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.986 0.002 117.114);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.659 0.096 119.869);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.276 0.008 117.625);
--secondary-foreground: oklch(0.814 0.011 117.316);
--accent: oklch(0.276 0.008 117.625);
--accent-foreground: oklch(0.814 0.011 117.316);
--destructive: oklch(0.684 0.193 40.733);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.659 0.096 119.869);
--chart-1: oklch(0.659 0.096 119.869);
--chart-2: oklch(0.276 0.008 117.625);
--chart-3: oklch(0.276 0.008 117.625);
--chart-4: oklch(0.309 0.01 117.65);
--chart-5: oklch(0.668 0.104 120.113);
}