Jade is a shadcn/ui theme built around a near-black primary color (#050505) with near-black accents (#050505). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#050505) on a neutral background (#040101).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040101black |
| Foreground | #040101black | #fbf9f9snow |
| Card | #ffffffwhite | #040101black |
| Card foreground | #040101black | #fbf9f9snow |
| Popover | #ffffffwhite | #040101black |
| Popover foreground | #040101black | #fbf9f9snow |
| Primary | #050505black | #050505black |
| Primary foreground | #9e9e9edarkgray | #9e9e9edarkgray |
| Secondary | #050505black | #050505black |
| Secondary foreground | #9e9e9edarkgray | #9e9e9edarkgray |
| Muted | #e0d2d2lightgrey | #2d1f1fblack |
| Muted foreground | #544f4fdarkslategray | #b0ababdarkgray |
| Accent | #050505black | #050505black |
| Accent foreground | #9e9e9edarkgray | #9e9e9edarkgray |
| Destructive | #922801saddlebrown | #f24202orangered |
| Destructive foreground | #fed6c7bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #050505black | #050505black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.79:1 | AAA |
| Text on card | 20.79:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 7.60:1 | AAA |
| Muted text | 5.47:1 | AA |
| Accent | 7.60:1 | AAA |
| Destructive | 6.17:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 7.60:1 | AAA |
| Secondary button | 7.60:1 | AAA |
| Muted text | 6.95:1 | AA |
| Accent | 7.60:1 | AAA |
| Destructive | 3.76:1 | AA Large |
Paste this into your globals.css to use Jade in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.079 0.02 22.633);
--muted: oklch(0.874 0.015 17.45);
--muted-foreground: oklch(0.433 0.006 17.407);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.079 0.02 22.633);
--card: oklch(1 0 180);
--card-foreground: oklch(0.079 0.02 22.633);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.116 0 180);
--primary-foreground: oklch(0.7 0 180);
--secondary: oklch(0.116 0 180);
--secondary-foreground: oklch(0.7 0 180);
--accent: oklch(0.116 0 180);
--accent-foreground: oklch(0.7 0 180);
--destructive: oklch(0.441 0.148 36.664);
--destructive-foreground: oklch(0.907 0.05 40.988);
--ring: oklch(0.116 0 180);
--chart-1: oklch(0.116 0 180);
--chart-2: oklch(0.116 0 180);
--chart-3: oklch(0.116 0 180);
--chart-4: oklch(0.158 0 169.695);
--chart-5: oklch(0.115 0.001 17.277);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.01 19.476);
--foreground: oklch(0.983 0.002 17.193);
--muted: oklch(0.258 0.022 18.65);
--muted-foreground: oklch(0.745 0.006 17.283);
--popover: oklch(0.085 0.01 19.476);
--popover-foreground: oklch(0.983 0.002 17.193);
--card: oklch(0.085 0.01 19.476);
--card-foreground: oklch(0.983 0.002 17.193);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.116 0 180);
--primary-foreground: oklch(0.7 0 180);
--secondary: oklch(0.116 0 180);
--secondary-foreground: oklch(0.7 0 180);
--accent: oklch(0.116 0 180);
--accent-foreground: oklch(0.7 0 180);
--destructive: oklch(0.637 0.22 35.513);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.116 0 180);
--chart-1: oklch(0.116 0 180);
--chart-2: oklch(0.116 0 180);
--chart-3: oklch(0.116 0 180);
--chart-4: oklch(0.158 0 169.695);
--chart-5: oklch(0.115 0.001 17.277);
}