Joint is a shadcn/ui theme built around a yellow primary color (#d6d0a4) with purple accents (#d0a4d6). The light mode uses a neutral background (#fefefb). Dark mode keeps the yellow primary (#d6d0a4) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #070603black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fdfcf7snow | #0a0a05black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fefefbwhite | #070603black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #d6d0a4palegoldenrod | #d6d0a4palegoldenrod |
| Primary foreground | #312e16darkslategray | #312e16darkslategray |
| Secondary | #a4d6d0lightblue | #a4d6d0lightblue |
| Secondary foreground | #16312edarkslategray | #16312edarkslategray |
| Muted | #d8e3e2gainsboro | #1c2725black |
| Muted foreground | #535a59dimgray | #a5acabdarkgray |
| Accent | #d0a4d6plum | #d0a4d6plum |
| Accent foreground | #2e1631darkslategray | #2e1631darkslategray |
| Destructive | #bb1d11firebrick | #ee5044tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d6d0a4palegoldenrod | #d6d0a4palegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.74:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 8.74:1 | AAA |
| Secondary button | 8.65:1 | AAA |
| Muted text | 5.40:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 8.74:1 | AAA |
| Secondary button | 8.65:1 | AAA |
| Muted text | 6.66:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use Joint in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 100.39);
--foreground: oklch(0 0 0);
--muted: oklch(0.908 0.012 188.59);
--muted-foreground: oklch(0.462 0.009 188.451);
--popover: oklch(0.996 0.004 100.39);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.008 100.45);
--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.851 0.059 101.281);
--primary-foreground: oklch(0.298 0.039 101.805);
--secondary: oklch(0.839 0.053 187.346);
--secondary-foreground: oklch(0.292 0.034 185.734);
--accent: oklch(0.774 0.086 322.468);
--accent-foreground: oklch(0.247 0.059 322.774);
--destructive: oklch(0.508 0.193 29.642);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.851 0.059 101.281);
--chart-1: oklch(0.851 0.059 101.281);
--chart-2: oklch(0.839 0.053 187.346);
--chart-3: oklch(0.774 0.086 322.468);
--chart-4: oklch(0.857 0.047 187.562);
--chart-5: oklch(0.856 0.064 101.335);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.01 102.475);
--foreground: oklch(1 0 180);
--muted: oklch(0.261 0.016 187.403);
--muted-foreground: oklch(0.738 0.008 188.654);
--popover: oklch(0.124 0.01 102.475);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.141 0.011 102.475);
--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.851 0.059 101.281);
--primary-foreground: oklch(0.298 0.039 101.805);
--secondary: oklch(0.839 0.053 187.346);
--secondary-foreground: oklch(0.292 0.034 185.734);
--accent: oklch(0.774 0.086 322.468);
--accent-foreground: oklch(0.247 0.059 322.774);
--destructive: oklch(0.646 0.196 27.938);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.851 0.059 101.281);
--chart-1: oklch(0.851 0.059 101.281);
--chart-2: oklch(0.839 0.053 187.346);
--chart-3: oklch(0.774 0.086 322.468);
--chart-4: oklch(0.857 0.047 187.562);
--chart-5: oklch(0.856 0.064 101.335);
}