Joint for shadcn/ui

Joint is a shadcn/ui theme built around a muted blue primary color (#494a55) with muted violet accents (#4e4955). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#494a55) on a blue-tinted background (#06070e).

Color palette

TokenLightDark
Background
#ffffffwhite
#06070eblack
Foreground
#04050cblack
#f9f9fbghostwhite
Card
#ffffffwhite
#06070eblack
Card foreground
#04050cblack
#f9f9fbghostwhite
Popover
#ffffffwhite
#06070eblack
Popover foreground
#04050cblack
#f9f9fbghostwhite
Primary
#494a55darkslategray
#494a55darkslategray
Primary foreground
#e6e7ealavender
#e6e7ealavender
Secondary
#495155darkslategray
#495155darkslategray
Secondary foreground
#e6e8ealavender
#e6e8ealavender
Muted
#d4dde2gainsboro
#1d252bdarkslategray
Muted foreground
#616465dimgray
#9a9c9edarkgray
Accent
#4e4955darkslategray
#4e4955darkslategray
Accent foreground
#e8e6ealavender
#e8e6ealavender
Destructive
#a32f0ffirebrick
#db3f14orangered
Destructive foreground
#fdece8linen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#494a55darkslategray
#494a55darkslategray

Contrast

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

Light mode
Text on background20.34:1AAA
Text on card20.34:1AAA
Primary button7.08:1AAA
Secondary button6.63:1AA
Muted text4.33:1AA Large
Accent7.06:1AAA
Destructive6.14:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button7.08:1AAA
Secondary button6.63:1AA
Muted text5.62:1AA
Accent7.06:1AAA
Destructive4.41:1AA Large

CSS variables

Paste this into your globals.css to use Joint in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.115 0.019 274.845);
  --muted: oklch(0.892 0.012 234.703);
  --muted-foreground: oklch(0.501 0.004 234.618);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.115 0.019 274.845);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.115 0.019 274.845);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.413 0.019 279.585);
  --primary-foreground: oklch(0.927 0.004 280.257);
  --secondary: oklch(0.428 0.013 234.957);
  --secondary-foreground: oklch(0.931 0.003 234.554);
  --accent: oklch(0.414 0.022 302.865);
  --accent-foreground: oklch(0.928 0.005 303.557);
  --destructive: oklch(0.48 0.157 35.11);
  --destructive-foreground: oklch(0.956 0.019 35.959);
  --ring: oklch(0.413 0.019 279.585);
  --chart-1: oklch(0.413 0.019 279.585);
  --chart-2: oklch(0.428 0.013 234.957);
  --chart-3: oklch(0.414 0.022 302.865);
  --chart-4: oklch(0.456 0.014 234.964);
  --chart-5: oklch(0.407 0.026 279.262);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.131 0.017 276.621);
  --foreground: oklch(0.983 0.002 280.304);
  --muted: oklch(0.26 0.016 235.534);
  --muted-foreground: oklch(0.691 0.004 234.581);
  --popover: oklch(0.131 0.017 276.621);
  --popover-foreground: oklch(0.983 0.002 280.304);
  --card: oklch(0.131 0.017 276.621);
  --card-foreground: oklch(0.983 0.002 280.304);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.413 0.019 279.585);
  --primary-foreground: oklch(0.927 0.004 280.257);
  --secondary: oklch(0.428 0.013 234.957);
  --secondary-foreground: oklch(0.931 0.003 234.554);
  --accent: oklch(0.414 0.022 302.865);
  --accent-foreground: oklch(0.928 0.005 303.557);
  --destructive: oklch(0.595 0.199 34.861);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.413 0.019 279.585);
  --chart-1: oklch(0.413 0.019 279.585);
  --chart-2: oklch(0.428 0.013 234.957);
  --chart-3: oklch(0.414 0.022 302.865);
  --chart-4: oklch(0.456 0.014 234.964);
  --chart-5: oklch(0.407 0.026 279.262);
}