Joint for shadcn/ui

Joint is a shadcn/ui theme built around a near-black primary color (#06020e) with muted light violet accents (#cac4d4). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the near-black primary (#06020e) on a violet-tinted background (#07040c).

Color palette

TokenLightDark
Background
#fcfbfewhite
#07040cblack
Foreground
#07030cblack
#ffffffwhite
Card
#f9f7fdghostwhite
#090510black
Card foreground
#040208black
#ffffffwhite
Popover
#f9f7fdghostwhite
#090510black
Popover foreground
#040208black
#ffffffwhite
Primary
#06020eblack
#06020eblack
Primary foreground
#cdb1f6plum
#cdb1f6plum
Secondary
#cac4d4thistle
#28232edarkslategray
Secondary foreground
#312b3bdarkslategray
#c0bacasilver
Muted
#e5e2e9gainsboro
#19161dblack
Muted foreground
#58535fdimgray
#a5a0acdarkgray
Accent
#cac4d4thistle
#28232edarkslategray
Accent foreground
#312b3bdarkslategray
#c0bacasilver
Destructive
#a40e0efirebrick
#ec2222crimson
Destructive foreground
#fde8e8mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#06020eblack
#06020eblack

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.45:1AAA
Primary button10.98:1AAA
Secondary button8.05:1AAA
Muted text5.80:1AA
Accent8.05:1AAA
Destructive6.73:1AA
Dark mode
Text on background20.40:1AAA
Text on card20.20:1AAA
Primary button10.98:1AAA
Secondary button8.08:1AAA
Muted text7.02:1AAA
Accent8.08:1AAA
Destructive4.35: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.99 0.004 304.292);
  --foreground: oklch(0.113 0.028 305.232);
  --muted: oklch(0.916 0.011 304.176);
  --muted-foreground: oklch(0.452 0.021 303.679);
  --popover: oklch(0.98 0.007 304.237);
  --popover-foreground: oklch(0.099 0.024 305.56);
  --card: oklch(0.98 0.007 304.237);
  --card-foreground: oklch(0.099 0.024 305.56);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.106 0.038 305.424);
  --primary-foreground: oklch(0.808 0.1 302.539);
  --secondary: oklch(0.831 0.022 303.965);
  --secondary-foreground: oklch(0.304 0.028 302.999);
  --accent: oklch(0.831 0.022 303.965);
  --accent-foreground: oklch(0.304 0.028 302.999);
  --destructive: oklch(0.457 0.18 28.308);
  --destructive-foreground: oklch(0.947 0.023 17.574);
  --ring: oklch(0.106 0.038 305.424);
  --chart-1: oklch(0.106 0.038 305.424);
  --chart-2: oklch(0.831 0.022 303.965);
  --chart-3: oklch(0.831 0.022 303.965);
  --chart-4: oklch(0.857 0.019 304.034);
  --chart-5: oklch(0.105 0.04 305.462);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.116 0.024 305.157);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.206 0.016 303.254);
  --muted-foreground: oklch(0.712 0.019 303.968);
  --popover: oklch(0.128 0.028 303.803);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.128 0.028 303.803);
  --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.106 0.038 305.424);
  --primary-foreground: oklch(0.808 0.1 302.539);
  --secondary: oklch(0.267 0.02 303.254);
  --secondary-foreground: oklch(0.798 0.023 303.929);
  --accent: oklch(0.267 0.02 303.254);
  --accent-foreground: oklch(0.798 0.023 303.929);
  --destructive: oklch(0.604 0.231 27.798);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.106 0.038 305.424);
  --chart-1: oklch(0.106 0.038 305.424);
  --chart-2: oklch(0.267 0.02 303.254);
  --chart-3: oklch(0.267 0.02 303.254);
  --chart-4: oklch(0.296 0.024 303.205);
  --chart-5: oklch(0.105 0.04 305.462);
}