Joint for shadcn/ui

Joint is a shadcn/ui theme built around a deep blue primary color (#163146) with deep indigo accents (#161946). The light mode uses a neutral background (#f7fafd). Dark mode keeps the deep blue primary (#163146) on a blue-tinted background (#060b0e).

Color palette

TokenLightDark
Background
#f7fafdghostwhite
#060b0eblack
Foreground
#000000black
#f9fafbghostwhite
Card
#f7fafdghostwhite
#060b0eblack
Card foreground
#000000black
#f9fafbghostwhite
Popover
#f7fafdghostwhite
#060b0eblack
Popover foreground
#000000black
#f9fafbghostwhite
Primary
#163146darkslategray
#163146darkslategray
Primary foreground
#a9cbe5lightsteelblue
#a9cbe5lightsteelblue
Secondary
#164643darkslategray
#164643darkslategray
Secondary foreground
#a9e5e1powderblue
#a9e5e1powderblue
Muted
#eef6f6whitesmoke
#091110black
Muted foreground
#3d5251darkslategray
#adc2c1silver
Accent
#161946midnightblue
#161946midnightblue
Accent foreground
#a9ade5lightsteelblue
#a9ade5lightsteelblue
Destructive
#6d2703maroon
#f8651bchocolate
Destructive foreground
#fcc3a6navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#163146darkslategray
#163146darkslategray

Contrast

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

Light mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button7.90:1AAA
Secondary button7.50:1AAA
Muted text7.59:1AAA
Accent7.77:1AAA
Destructive6.97:1AA
Dark mode
Text on background18.93:1AAA
Text on card18.93:1AAA
Primary button7.90:1AAA
Secondary button7.50:1AAA
Muted text10.26:1AAA
Accent7.77:1AAA
Destructive6.86:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.984 0.005 240.36);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.968 0.008 192.246);
  --muted-foreground: oklch(0.421 0.026 191.097);
  --popover: oklch(0.984 0.005 240.36);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.005 240.36);
  --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.303 0.051 243.731);
  --primary-foreground: oklch(0.826 0.051 241.197);
  --secondary: oklch(0.362 0.052 188.936);
  --secondary-foreground: oklch(0.879 0.061 190.964);
  --accent: oklch(0.241 0.084 275.086);
  --accent-foreground: oklch(0.765 0.079 281.159);
  --destructive: oklch(0.371 0.109 42.051);
  --destructive-foreground: oklch(0.861 0.077 47.808);
  --ring: oklch(0.303 0.051 243.731);
  --chart-1: oklch(0.303 0.051 243.731);
  --chart-2: oklch(0.362 0.052 188.936);
  --chart-3: oklch(0.241 0.084 275.086);
  --chart-4: oklch(0.401 0.058 188.846);
  --chart-5: oklch(0.304 0.053 244.017);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.012 238.316);
  --foreground: oklch(0.985 0.002 240.31);
  --muted: oklch(0.168 0.012 190.911);
  --muted-foreground: oklch(0.798 0.023 191.813);
  --popover: oklch(0.145 0.012 238.316);
  --popover-foreground: oklch(0.985 0.002 240.31);
  --card: oklch(0.145 0.012 238.316);
  --card-foreground: oklch(0.985 0.002 240.31);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.303 0.051 243.731);
  --primary-foreground: oklch(0.826 0.051 241.197);
  --secondary: oklch(0.362 0.052 188.936);
  --secondary-foreground: oklch(0.879 0.061 190.964);
  --accent: oklch(0.241 0.084 275.086);
  --accent-foreground: oklch(0.765 0.079 281.159);
  --destructive: oklch(0.684 0.196 42.111);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.303 0.051 243.731);
  --chart-1: oklch(0.303 0.051 243.731);
  --chart-2: oklch(0.362 0.052 188.936);
  --chart-3: oklch(0.241 0.084 275.086);
  --chart-4: oklch(0.401 0.058 188.846);
  --chart-5: oklch(0.304 0.053 244.017);
}