Flight for shadcn/ui

Flight is a shadcn/ui theme built around a deep purple primary color (#75157a) with neutral gray accents (#d9d4d4). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep purple primary (#75157a) on a purple-tinted background (#0f050f).

Color palette

TokenLightDark
Background
#ffffffwhite
#0f050fblack
Foreground
#040104black
#ffffffwhite
Card
#ffffffwhite
#0f050fblack
Card foreground
#040104black
#ffffffwhite
Popover
#ffffffwhite
#0f050fblack
Popover foreground
#040104black
#ffffffwhite
Primary
#75157apurple
#75157apurple
Primary foreground
#f4cbf6lavender
#f4cbf6lavender
Secondary
#e6e6e6gainsboro
#171217black
Secondary foreground
#4d4d4ddarkslategray
#b7a3b8darkgray
Muted
#ebe5e5linen
#19141ablack
Muted foreground
#6c5656dimgray
#a893a9darkgray
Accent
#d9d4d4lightgrey
#302131darkslategray
Accent foreground
#413a3adarkslategray
#cdb6cethistle
Destructive
#df3901orangered
#e93b01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#75157apurple
#75157apurple

Contrast

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

Light mode
Text on background20.76:1AAA
Text on card20.76:1AAA
Primary button6.86:1AA
Secondary button6.74:1AA
Muted text5.44:1AA
Accent7.55:1AAA
Destructive4.44:1AA Large
Dark mode
Text on background20.00:1AAA
Text on card20.00:1AAA
Primary button6.86:1AA
Secondary button7.89:1AAA
Muted text6.39:1AA
Accent8.07:1AAA
Destructive4.10:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.086 0.02 325.821);
  --muted: oklch(0.927 0.006 17.265);
  --muted-foreground: oklch(0.476 0.028 18.193);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.086 0.02 325.821);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.086 0.02 325.821);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.408 0.172 325.85);
  --primary-foreground: oklch(0.89 0.073 324.591);
  --secondary: oklch(0.923 0 153.435);
  --secondary-foreground: oklch(0.418 0 173.29);
  --accent: oklch(0.873 0.005 17.26);
  --accent-foreground: oklch(0.354 0.01 17.649);
  --destructive: oklch(0.595 0.209 34.802);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.408 0.172 325.85);
  --chart-1: oklch(0.408 0.172 325.85);
  --chart-2: oklch(0.923 0 153.435);
  --chart-3: oklch(0.873 0.005 17.26);
  --chart-4: oklch(0.947 0 180);
  --chart-5: oklch(0.411 0.176 325.846);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.139 0.028 325.33);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.201 0.014 324.509);
  --muted-foreground: oklch(0.689 0.038 324.446);
  --popover: oklch(0.139 0.028 325.33);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.139 0.028 325.33);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.408 0.172 325.85);
  --primary-foreground: oklch(0.89 0.073 324.591);
  --secondary: oklch(0.19 0.013 324.522);
  --secondary-foreground: oklch(0.739 0.038 324.419);
  --accent: oklch(0.272 0.037 324.864);
  --accent-foreground: oklch(0.802 0.043 324.431);
  --destructive: oklch(0.615 0.217 34.722);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.408 0.172 325.85);
  --chart-1: oklch(0.408 0.172 325.85);
  --chart-2: oklch(0.19 0.013 324.522);
  --chart-3: oklch(0.272 0.037 324.864);
  --chart-4: oklch(0.222 0.017 324.569);
  --chart-5: oklch(0.411 0.176 325.846);
}