Flight for shadcn/ui

Flight is a shadcn/ui theme built around a teal primary color (#8ad0c4) with yellow accents (#d0c48a). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#8ad0c4) on a teal-tinted background (#040b0a).

Color palette

TokenLightDark
Background
#ffffffwhite
#040b0ablack
Foreground
#010907black
#fcfdfdwhite
Card
#ffffffwhite
#040b0ablack
Card foreground
#010907black
#fcfdfdwhite
Popover
#ffffffwhite
#040b0ablack
Popover foreground
#010907black
#fcfdfdwhite
Primary
#8ad0c4skyblue
#8ad0c4skyblue
Primary foreground
#0c1d1ablack
#0c1d1ablack
Secondary
#c48ad0orchid
#c48ad0orchid
Secondary foreground
#1a0c1dblack
#1a0c1dblack
Muted
#e7dce9gainsboro
#201623black
Muted foreground
#614d66dimgray
#ae99b2darkgray
Accent
#d0c48atan
#d0c48atan
Accent foreground
#1d1a0cblack
#1d1a0cblack
Destructive
#712105maroon
#eb460aorangered
Destructive foreground
#fcc1aclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8ad0c4skyblue
#8ad0c4skyblue

Contrast

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

Light mode
Text on background20.12:1AAA
Text on card20.12:1AAA
Primary button9.90:1AAA
Secondary button7.09:1AAA
Muted text5.74:1AA
Accent9.89:1AAA
Destructive6.95:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button9.90:1AAA
Secondary button7.09:1AAA
Muted text6.68:1AA
Accent9.89:1AAA
Destructive3.88: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.127 0.018 184.021);
  --muted: oklch(0.908 0.021 320.012);
  --muted-foreground: oklch(0.45 0.047 320.077);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.127 0.018 184.021);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.127 0.018 184.021);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.809 0.073 181.601);
  --primary-foreground: oklch(0.215 0.024 180.691);
  --secondary: oklch(0.715 0.117 320.098);
  --secondary-foreground: oklch(0.183 0.041 320.085);
  --accent: oklch(0.816 0.076 97.014);
  --accent-foreground: oklch(0.217 0.026 97.053);
  --destructive: oklch(0.371 0.117 37.75);
  --destructive-foreground: oklch(0.858 0.074 40.887);
  --ring: oklch(0.809 0.073 181.601);
  --chart-1: oklch(0.809 0.073 181.601);
  --chart-2: oklch(0.715 0.117 320.098);
  --chart-3: oklch(0.816 0.076 97.014);
  --chart-4: oklch(0.741 0.106 320.094);
  --chart-5: oklch(0.814 0.077 181.423);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.142 0.014 183.737);
  --foreground: oklch(0.994 0.002 184.257);
  --muted: oklch(0.218 0.029 320.091);
  --muted-foreground: oklch(0.71 0.043 320.044);
  --popover: oklch(0.142 0.014 183.737);
  --popover-foreground: oklch(0.994 0.002 184.257);
  --card: oklch(0.142 0.014 183.737);
  --card-foreground: oklch(0.994 0.002 184.257);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.809 0.073 181.601);
  --primary-foreground: oklch(0.215 0.024 180.691);
  --secondary: oklch(0.715 0.117 320.098);
  --secondary-foreground: oklch(0.183 0.041 320.085);
  --accent: oklch(0.816 0.076 97.014);
  --accent-foreground: oklch(0.217 0.026 97.053);
  --destructive: oklch(0.628 0.21 36.264);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.809 0.073 181.601);
  --chart-1: oklch(0.809 0.073 181.601);
  --chart-2: oklch(0.715 0.117 320.098);
  --chart-3: oklch(0.816 0.076 97.014);
  --chart-4: oklch(0.741 0.106 320.094);
  --chart-5: oklch(0.814 0.077 181.423);
}