Alibi for shadcn/ui

Alibi is a shadcn/ui theme built around a muted light blue primary color (#babed9) with muted light violet accents (#c6bad9). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the muted light blue primary (#babed9) on a blue-tinted background (#050610).

Color palette

TokenLightDark
Background
#f8f9fcghostwhite
#050610black
Foreground
#02030dblack
#f6f6f9whitesmoke
Card
#f8f9fcghostwhite
#050610black
Card foreground
#02030dblack
#f6f6f9whitesmoke
Popover
#f8f9fcghostwhite
#050610black
Popover foreground
#02030dblack
#f6f6f9whitesmoke
Primary
#babed9lightsteelblue
#babed9lightsteelblue
Primary foreground
#22263fdarkslategray
#22263fdarkslategray
Secondary
#bacdd9lightsteelblue
#bacdd9lightsteelblue
Secondary foreground
#22343fdarkslategray
#22343fdarkslategray
Muted
#d2dee5gainsboro
#1a262ddarkslategray
Muted foreground
#3b4144darkslategray
#bbc0c4silver
Accent
#c6bad9thistle
#c6bad9thistle
Accent foreground
#2d223fdarkslategray
#2d223fdarkslategray
Destructive
#c13310firebrick
#ed4e26chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#babed9lightsteelblue
#babed9lightsteelblue

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.47:1AAA
Primary button8.05:1AAA
Secondary button7.86:1AAA
Muted text7.53:1AAA
Accent8.08:1AAA
Destructive5.58:1AA
Dark mode
Text on background18.73:1AAA
Text on card18.73:1AAA
Primary button8.05:1AAA
Secondary button7.86:1AAA
Muted text8.42:1AAA
Accent8.08:1AAA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.981 0.004 280.265);
  --foreground: oklch(0.107 0.028 270.961);
  --muted: oklch(0.892 0.016 234.774);
  --muted-foreground: oklch(0.371 0.009 234.884);
  --popover: oklch(0.981 0.004 280.265);
  --popover-foreground: oklch(0.107 0.028 270.961);
  --card: oklch(0.981 0.004 280.265);
  --card-foreground: oklch(0.107 0.028 270.961);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.806 0.039 279.534);
  --primary-foreground: oklch(0.277 0.046 277.202);
  --secondary: oklch(0.838 0.027 234.987);
  --secondary-foreground: oklch(0.314 0.03 236.272);
  --accent: oklch(0.808 0.045 302.815);
  --accent-foreground: oklch(0.28 0.052 300.744);
  --destructive: oklch(0.538 0.184 34.038);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.806 0.039 279.534);
  --chart-1: oklch(0.806 0.039 279.534);
  --chart-2: oklch(0.838 0.027 234.987);
  --chart-3: oklch(0.808 0.045 302.815);
  --chart-4: oklch(0.861 0.023 234.899);
  --chart-5: oklch(0.803 0.043 279.441);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.023 274.808);
  --foreground: oklch(0.974 0.004 280.261);
  --muted: oklch(0.261 0.022 235.974);
  --muted-foreground: oklch(0.805 0.008 234.645);
  --popover: oklch(0.126 0.023 274.808);
  --popover-foreground: oklch(0.974 0.004 280.261);
  --card: oklch(0.126 0.023 274.808);
  --card-foreground: oklch(0.974 0.004 280.261);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.806 0.039 279.534);
  --primary-foreground: oklch(0.277 0.046 277.202);
  --secondary: oklch(0.838 0.027 234.987);
  --secondary-foreground: oklch(0.314 0.03 236.272);
  --accent: oklch(0.808 0.045 302.815);
  --accent-foreground: oklch(0.28 0.052 300.744);
  --destructive: oklch(0.641 0.203 34.723);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.806 0.039 279.534);
  --chart-1: oklch(0.806 0.039 279.534);
  --chart-2: oklch(0.838 0.027 234.987);
  --chart-3: oklch(0.808 0.045 302.815);
  --chart-4: oklch(0.861 0.023 234.899);
  --chart-5: oklch(0.803 0.043 279.441);
}