Respectable If I Could Fly for shadcn/ui

Respectable If I Could Fly is a shadcn/ui theme built around a vivid indigo primary color (#7060eb) with light indigo accents (#c3bfdf). The light mode uses an indigo-tinted background (#f2f1f8). Dark mode keeps the vivid indigo primary (#7060eb) on an indigo-tinted background (#1e1e2e).

Color palette

TokenLightDark
Background
#f2f1f8whitesmoke
#1e1e2edarkslategray
Foreground
#0c006bnavy
#cdd6f4gainsboro
Card
#ecebf5lavender
#1a1a28black
Card foreground
#0a0052midnightblue
#e2e7f9lavender
Popover
#e9e7f3lavender
#181825black
Popover foreground
#070038black
#f4f8fdghostwhite
Primary
#7060ebmediumslateblue
#7060ebmediumslateblue
Primary foreground
#ffffffwhite
#f7f8fdghostwhite
Secondary
#b1acd2lightsteelblue
#3e2d53darkslategray
Secondary foreground
#1d1b32midnightblue
#f7f8fdghostwhite
Muted
#e3e2e9gainsboro
#0f0f16black
Muted foreground
#464356darkslategray
#464356darkslategray
Accent
#c3bfdflightsteelblue
#c3bfdflightsteelblue
Accent foreground
#292447darkslategray
#292447darkslategray
Destructive
#c81414firebrick
#fb4023orangered
Destructive foreground
#ffdcdcmistyrose
#ffffffwhite
Border
#e4e3edlavender
#2d2d39darkslategray
Input
#dbd9e7gainsboro
#343441darkslategray
Ring
#7060ebmediumslateblue
#7060ebmediumslateblue

Contrast

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

Light mode
Text on background15.29:1AAA
Text on card15.62:1AAA
Primary button4.58:1AA
Secondary button7.73:1AAA
Muted text7.45:1AAA
Accent8.21:1AAA
Destructive4.63:1AA
Dark mode
Text on background11.34:1AAA
Text on card13.93:1AAA
Primary button4.32:1AA Large
Secondary button11.61:1AAA
Muted text1.99:1Fail
Accent8.21:1AAA
Destructive3.58:1AA Large

CSS variables

Paste this into your globals.css to use Respectable If I Could Fly in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.962 0.009 293.13);
  --foreground: oklch(0.245 0.161 269.365);
  --muted: oklch(0.917 0.008 293.136);
  --muted-foreground: oklch(0.394 0.031 291.794);
  --popover: oklch(0.934 0.016 292.985);
  --popover-foreground: oklch(0.161 0.103 273.653);
  --card: oklch(0.943 0.014 293.035);
  --card-foreground: oklch(0.204 0.133 270.941);
  --border: oklch(0.919 0.014 293.013);
  --input: oklch(0.892 0.019 292.9);
  --primary: oklch(0.581 0.202 283.441);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.761 0.054 290.39);
  --secondary-foreground: oklch(0.236 0.043 287.945);
  --accent: oklch(0.817 0.045 292.26);
  --accent-foreground: oklch(0.285 0.063 288.584);
  --destructive: oklch(0.53 0.208 28.306);
  --destructive-foreground: oklch(0.924 0.039 17.879);
  --ring: oklch(0.581 0.202 283.441);
  --chart-1: oklch(0.581 0.202 283.441);
  --chart-2: oklch(0.761 0.054 290.39);
  --chart-3: oklch(0.817 0.045 292.26);
  --chart-4: oklch(0.791 0.047 290.621);
  --chart-5: oklch(0.577 0.209 282.966);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.243 0.03 283.911);
  --foreground: oklch(0.879 0.043 272.272);
  --muted: oklch(0.172 0.014 284.777);
  --muted-foreground: oklch(0.394 0.031 291.794);
  --popover: oklch(0.216 0.025 284.065);
  --popover-foreground: oklch(0.978 0.008 253.847);
  --card: oklch(0.225 0.027 284.009);
  --card-foreground: oklch(0.93 0.025 273.499);
  --border: oklch(0.302 0.022 285.041);
  --input: oklch(0.33 0.023 285.084);
  --primary: oklch(0.581 0.202 283.441);
  --primary-foreground: oklch(0.98 0.007 277.165);
  --secondary: oklch(0.335 0.068 303.561);
  --secondary-foreground: oklch(0.98 0.007 277.165);
  --accent: oklch(0.817 0.045 292.26);
  --accent-foreground: oklch(0.285 0.063 288.584);
  --destructive: oklch(0.65 0.227 31.682);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.581 0.202 283.441);
  --chart-1: oklch(0.581 0.202 283.441);
  --chart-2: oklch(0.335 0.068 303.561);
  --chart-3: oklch(0.817 0.045 292.26);
  --chart-4: oklch(0.36 0.075 303.496);
  --chart-5: oklch(0.577 0.209 282.966);
}