Judicious is a shadcn/ui theme built around a deep orange primary color (#6e4011) with deep blue accents (#11406e). The light mode uses a neutral background (#fefcfb). Dark mode keeps the deep orange primary (#6e4011) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #000000black |
| Foreground | #0b0804black | #fdfcfcsnow |
| Card | #fdfaf7snow | #030303black |
| Card foreground | #080503black | #ffffffwhite |
| Popover | #fefcfbsnow | #000000black |
| Popover foreground | #0b0804black | #fdfcfcsnow |
| Primary | #6e4011saddlebrown | #6e4011saddlebrown |
| Primary foreground | #f5d9bdpeachpuff | #f5d9bdpeachpuff |
| Secondary | #11406emidnightblue | #11406emidnightblue |
| Secondary foreground | #bdd9f5powderblue | #bdd9f5powderblue |
| Muted | #eef0f2whitesmoke | #0d0f11black |
| Muted foreground | #5e666edimgray | #9199a1darkgray |
| Accent | #11406emidnightblue | #11406emidnightblue |
| Accent foreground | #bdd9f5powderblue | #bdd9f5powderblue |
| Destructive | #b03711firebrick | #eb6137tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6e4011saddlebrown | #6e4011saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 6.46:1 | AA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 5.08:1 | AA |
| Accent | 7.28:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.46:1 | AA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 6.63:1 | AA |
| Accent | 7.28:1 | AAA |
| Destructive | 6.32:1 | AA |
Paste this into your globals.css to use Judicious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 67.791);
--foreground: oklch(0.136 0.013 74.531);
--muted: oklch(0.953 0.004 247.862);
--muted-foreground: oklch(0.506 0.016 248.153);
--popover: oklch(0.993 0.003 67.791);
--popover-foreground: oklch(0.136 0.013 74.531);
--card: oklch(0.986 0.006 67.76);
--card-foreground: oklch(0.119 0.011 74.905);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.418 0.087 60.556);
--primary-foreground: oklch(0.901 0.048 67.146);
--secondary: oklch(0.366 0.094 252.109);
--secondary-foreground: oklch(0.873 0.049 248.387);
--accent: oklch(0.366 0.094 252.109);
--accent-foreground: oklch(0.873 0.049 248.387);
--destructive: oklch(0.512 0.164 35.975);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.418 0.087 60.556);
--chart-1: oklch(0.418 0.087 60.556);
--chart-2: oklch(0.366 0.094 252.109);
--chart-3: oklch(0.366 0.094 252.109);
--chart-4: oklch(0.395 0.103 252.253);
--chart-5: oklch(0.421 0.09 59.993);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 67.808);
--muted: oklch(0.168 0.006 248.165);
--muted-foreground: oklch(0.679 0.015 248.053);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 67.808);
--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.418 0.087 60.556);
--primary-foreground: oklch(0.901 0.048 67.146);
--secondary: oklch(0.366 0.094 252.109);
--secondary-foreground: oklch(0.873 0.049 248.387);
--accent: oklch(0.366 0.094 252.109);
--accent-foreground: oklch(0.873 0.049 248.387);
--destructive: oklch(0.663 0.18 37.215);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.418 0.087 60.556);
--chart-1: oklch(0.418 0.087 60.556);
--chart-2: oklch(0.366 0.094 252.109);
--chart-3: oklch(0.366 0.094 252.109);
--chart-4: oklch(0.395 0.103 252.253);
--chart-5: oklch(0.421 0.09 59.993);
}