Invitation for shadcn/ui

Invitation is a shadcn/ui theme built around a deep indigo primary color (#0c0c1d) with deep violet accents (#140c1d). The light mode uses a neutral background (#fbfbfd). Dark mode keeps the deep indigo primary (#0c0c1d) on an indigo-tinted background (#07070d).

Color palette

TokenLightDark
Background
#fbfbfdghostwhite
#07070dblack
Foreground
#020208black
#f9f9fbghostwhite
Card
#fbfbfdghostwhite
#07070dblack
Card foreground
#020208black
#f9f9fbghostwhite
Popover
#fbfbfdghostwhite
#07070dblack
Popover foreground
#020208black
#f9f9fbghostwhite
Primary
#0c0c1dblack
#0c0c1dblack
Primary foreground
#8c8dcfmediumpurple
#8c8dcfmediumpurple
Secondary
#0c151dblack
#0c151dblack
Secondary foreground
#8cafcfskyblue
#8cafcfskyblue
Muted
#cedce8gainsboro
#172431darkslategray
Muted foreground
#5e666edimgray
#9199a1darkgray
Accent
#140c1dblack
#140c1dblack
Accent foreground
#ac8ccfmediumpurple
#ac8ccfmediumpurple
Destructive
#e62e00orangered
#ff5c33tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c0c1dblack
#0c0c1dblack

Contrast

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

Light mode
Text on background20.10:1AAA
Text on card20.10:1AAA
Primary button6.27:1AA
Secondary button8.03:1AAA
Muted text4.16:1AA Large
Accent6.73:1AA
Destructive4.43:1AA Large
Dark mode
Text on background19.08:1AAA
Text on card19.08:1AAA
Primary button6.27:1AA
Secondary button8.03:1AAA
Muted text5.45:1AA
Accent6.73:1AA
Destructive6.82:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 285.57);
  --foreground: oklch(0.093 0.022 279.933);
  --muted: oklch(0.887 0.022 246.254);
  --muted-foreground: oklch(0.507 0.016 246.332);
  --popover: oklch(0.99 0.003 285.57);
  --popover-foreground: oklch(0.093 0.022 279.933);
  --card: oklch(0.99 0.003 285.57);
  --card-foreground: oklch(0.093 0.022 279.933);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.166 0.034 281.259);
  --primary-foreground: oklch(0.669 0.097 282.703);
  --secondary: oklch(0.19 0.021 247.317);
  --secondary-foreground: oklch(0.738 0.06 246.918);
  --accent: oklch(0.175 0.035 305.295);
  --accent-foreground: oklch(0.694 0.102 306.042);
  --destructive: oklch(0.598 0.222 32.767);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.166 0.034 281.259);
  --chart-1: oklch(0.166 0.034 281.259);
  --chart-2: oklch(0.19 0.021 247.317);
  --chart-3: oklch(0.175 0.035 305.295);
  --chart-4: oklch(0.223 0.028 247.524);
  --chart-5: oklch(0.164 0.037 280.82);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.014 283.472);
  --foreground: oklch(0.983 0.002 285.583);
  --muted: oklch(0.255 0.03 247.421);
  --muted-foreground: oklch(0.68 0.015 246.221);
  --popover: oklch(0.133 0.014 283.472);
  --popover-foreground: oklch(0.983 0.002 285.583);
  --card: oklch(0.133 0.014 283.472);
  --card-foreground: oklch(0.983 0.002 285.583);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.166 0.034 281.259);
  --primary-foreground: oklch(0.669 0.097 282.703);
  --secondary: oklch(0.19 0.021 247.317);
  --secondary-foreground: oklch(0.738 0.06 246.918);
  --accent: oklch(0.175 0.035 305.295);
  --accent-foreground: oklch(0.694 0.102 306.042);
  --destructive: oklch(0.686 0.206 34.957);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.166 0.034 281.259);
  --chart-1: oklch(0.166 0.034 281.259);
  --chart-2: oklch(0.19 0.021 247.317);
  --chart-3: oklch(0.175 0.035 305.295);
  --chart-4: oklch(0.223 0.028 247.524);
  --chart-5: oklch(0.164 0.037 280.82);
}