Joint for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.44:1AAA
Text on card20.44:1AAA
Primary button7.43:1AAA
Secondary button6.77:1AA
Muted text7.95:1AAA
Accent6.77:1AA
Destructive6.78:1AA
Dark mode
Text on background19.25:1AAA
Text on card19.25:1AAA
Primary button7.43:1AAA
Secondary button6.77:1AA
Muted text9.09:1AAA
Accent6.77:1AA
Destructive3.94:1AA Large

CSS variables

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);
}