Joint is a shadcn/ui theme built around a deep purple primary color (#632d67) with deep green accents (#31672d). The light mode uses a neutral background (#fefbfe). Dark mode keeps the deep purple primary (#632d67) on a purple-tinted background (#0b040b).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #0b040bblack |
| Foreground | #000000black | #fcf8fcsnow |
| Card | #fefbfewhite | #0b040bblack |
| Card foreground | #000000black | #fcf8fcsnow |
| Popover | #fefbfewhite | #0b040bblack |
| Popover foreground | #000000black | #fcf8fcsnow |
| Primary | #632d67darkslateblue | #632d67darkslateblue |
| Primary foreground | #ecd8eelavender | #ecd8eelavender |
| Secondary | #31672ddarkolivegreen | #31672ddarkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ebf6eahoneydew | #0a1509black |
| Muted foreground | #4a4a4adarkslategray | #b5b5b5silver |
| Accent | #31672ddarkolivegreen | #31672ddarkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #670504maroon | #f72a26crimson |
| Destructive foreground | #fca3a1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #632d67darkslateblue | #632d67darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 20.44:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 6.77:1 | AA |
| Muted text | 7.95:1 | AAA |
| Accent | 6.77:1 | AA |
| Destructive | 6.78:1 | AA |
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 7.43:1 | AAA |
| Secondary button | 6.77:1 | AA |
| Muted text | 9.09:1 | AAA |
| Accent | 6.77:1 | AA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Joint in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 323.658);
--foreground: oklch(0 0 0);
--muted: oklch(0.961 0.02 143.527);
--muted-foreground: oklch(0.409 0 190.305);
--popover: oklch(0.991 0.004 323.658);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.004 323.658);
--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.395 0.112 324.86);
--primary-foreground: oklch(0.905 0.037 323.843);
--secondary: oklch(0.461 0.106 142.396);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.461 0.106 142.396);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.327 0.129 28.956);
--destructive-foreground: oklch(0.803 0.106 20.727);
--ring: oklch(0.395 0.112 324.86);
--chart-1: oklch(0.395 0.112 324.86);
--chart-2: oklch(0.461 0.106 142.396);
--chart-3: oklch(0.461 0.106 142.396);
--chart-4: oklch(0.494 0.114 142.384);
--chart-5: oklch(0.395 0.119 324.912);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.022 324.861);
--foreground: oklch(0.983 0.007 323.67);
--muted: oklch(0.182 0.029 142.742);
--muted-foreground: oklch(0.773 0 180);
--popover: oklch(0.126 0.022 324.861);
--popover-foreground: oklch(0.983 0.007 323.67);
--card: oklch(0.126 0.022 324.861);
--card-foreground: oklch(0.983 0.007 323.67);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.395 0.112 324.86);
--primary-foreground: oklch(0.905 0.037 323.843);
--secondary: oklch(0.461 0.106 142.396);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.461 0.106 142.396);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.628 0.237 28.053);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.395 0.112 324.86);
--chart-1: oklch(0.395 0.112 324.86);
--chart-2: oklch(0.461 0.106 142.396);
--chart-3: oklch(0.461 0.106 142.396);
--chart-4: oklch(0.494 0.114 142.384);
--chart-5: oklch(0.395 0.119 324.912);
}