Judge is a shadcn/ui theme built around a neutral gray primary color (#afaeac) with muted yellow accents (#c2bdb2). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#afaeac) on a yellow-tinted background (#0e0c07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0e0c07black |
| Foreground | #0d0a03black | #fbfaf9snow |
| Card | #fcfcfcsnow | #110e08black |
| Card foreground | #080602black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0e0c07black |
| Popover foreground | #0d0a03black | #fbfaf9snow |
| Primary | #afaeacdarkgray | #afaeacdarkgray |
| Primary foreground | #151514black | #151514black |
| Secondary | #d6d5d1lightgrey | #191815black |
| Secondary foreground | #3e3c37darkslategray | #b5b2aadarkgray |
| Muted | #edece8linen | #171512black |
| Muted foreground | #645e4fdimgray | #b0aa9bdarkgray |
| Accent | #c2bdb2silver | #332e24darkslategray |
| Accent foreground | #25231dblack | #cec8basilver |
| Destructive | #d70f0fred | #f24040tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #afaeacdarkgray | #afaeacdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 5.44:1 | AA |
| Accent | 8.42:1 | AAA |
| Destructive | 5.31:1 | AA |
| Text on background | 18.79:1 | AAA |
| Text on card | 18.87:1 | AAA |
| Primary button | 8.24:1 | AAA |
| Secondary button | 8.41:1 | AAA |
| Muted text | 7.84:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Judge in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.144 0.02 92.895);
--muted: oklch(0.942 0.005 87.449);
--muted-foreground: oklch(0.482 0.025 87.57);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.144 0.02 92.895);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.126 0.017 93.83);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.751 0.003 87.444);
--primary-foreground: oklch(0.194 0.001 87.452);
--secondary: oklch(0.872 0.005 87.451);
--secondary-foreground: oklch(0.357 0.009 87.528);
--accent: oklch(0.801 0.017 87.516);
--accent-foreground: oklch(0.256 0.011 87.566);
--destructive: oklch(0.555 0.222 28.68);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.751 0.003 87.444);
--chart-1: oklch(0.751 0.003 87.444);
--chart-2: oklch(0.872 0.005 87.451);
--chart-3: oklch(0.801 0.017 87.516);
--chart-4: oklch(0.895 0.004 87.445);
--chart-5: oklch(0.754 0.009 87.476);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.011 88.912);
--foreground: oklch(0.986 0.002 87.43);
--muted: oklch(0.198 0.008 87.561);
--muted-foreground: oklch(0.739 0.022 87.544);
--popover: oklch(0.153 0.011 88.912);
--popover-foreground: oklch(0.986 0.002 87.43);
--card: oklch(0.167 0.013 87.754);
--card-foreground: oklch(0.993 0.001 87.425);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.751 0.003 87.444);
--primary-foreground: oklch(0.194 0.001 87.452);
--secondary: oklch(0.207 0.005 87.52);
--secondary-foreground: oklch(0.765 0.012 87.492);
--accent: oklch(0.304 0.019 87.559);
--accent-foreground: oklch(0.835 0.02 87.526);
--destructive: oklch(0.638 0.214 25.703);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.751 0.003 87.444);
--chart-1: oklch(0.751 0.003 87.444);
--chart-2: oklch(0.207 0.005 87.52);
--chart-3: oklch(0.304 0.019 87.559);
--chart-4: oklch(0.242 0.006 87.527);
--chart-5: oklch(0.754 0.009 87.476);
}