Overflight for shadcn/ui

Overflight is a shadcn/ui theme built around a muted deep green primary color (#515a3a) with muted deep purple accents (#5a3a51). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the muted deep green primary (#515a3a) on a green-tinted background (#0a0c03).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#0a0c03black
Foreground
#0a0c03black
#fdfdfcwhite
Card
#fdfdfcwhite
#0a0c03black
Card foreground
#0a0c03black
#fdfdfcwhite
Popover
#fdfdfcwhite
#0a0c03black
Popover foreground
#0a0c03black
#fdfdfcwhite
Primary
#515a3adarkolivegreen
#515a3adarkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#3a515adarkslategray
#3a515adarkslategray
Secondary foreground
#dde6e9gainsboro
#dde6e9gainsboro
Muted
#e8eceelavender
#111617black
Muted foreground
#3d4142darkslategray
#bdc0c2silver
Accent
#5a3a51darkslategray
#5a3a51darkslategray
Accent foreground
#e9dde6gainsboro
#e9dde6gainsboro
Destructive
#620c04maroon
#f63d2corangered
Destructive foreground
#fba59dlightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#515a3adarkolivegreen
#515a3adarkolivegreen

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button7.29:1AAA
Secondary button6.61:1AA
Muted text8.67:1AAA
Accent7.40:1AAA
Destructive6.97:1AA
Dark mode
Text on background19.32:1AAA
Text on card19.32:1AAA
Primary button7.29:1AAA
Secondary button6.61:1AA
Muted text9.98:1AAA
Accent7.40:1AAA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 119.348);
  --foreground: oklch(0.149 0.024 119.746);
  --muted: oklch(0.94 0.005 223.186);
  --muted-foreground: oklch(0.372 0.006 223.286);
  --popover: oklch(0.994 0.003 119.348);
  --popover-foreground: oklch(0.149 0.024 119.746);
  --card: oklch(0.994 0.003 119.348);
  --card-foreground: oklch(0.149 0.024 119.746);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.451 0.051 121.344);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.42 0.032 224.333);
  --secondary-foreground: oklch(0.918 0.011 223.25);
  --accent: oklch(0.394 0.058 337.676);
  --accent-foreground: oklch(0.909 0.018 335.544);
  --destructive: oklch(0.32 0.12 30.474);
  --destructive-foreground: oklch(0.804 0.103 25.296);
  --ring: oklch(0.451 0.051 121.344);
  --chart-1: oklch(0.451 0.051 121.344);
  --chart-2: oklch(0.42 0.032 224.333);
  --chart-3: oklch(0.394 0.058 337.676);
  --chart-4: oklch(0.449 0.035 224.358);
  --chart-5: oklch(0.457 0.058 121.592);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.023 119.684);
  --foreground: oklch(0.994 0.002 119.33);
  --muted: oklch(0.195 0.008 223.605);
  --muted-foreground: oklch(0.806 0.005 223.187);
  --popover: oklch(0.149 0.023 119.684);
  --popover-foreground: oklch(0.994 0.002 119.33);
  --card: oklch(0.149 0.023 119.684);
  --card-foreground: oklch(0.994 0.002 119.33);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.451 0.051 121.344);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.42 0.032 224.333);
  --secondary-foreground: oklch(0.918 0.011 223.25);
  --accent: oklch(0.394 0.058 337.676);
  --accent-foreground: oklch(0.909 0.018 335.544);
  --destructive: oklch(0.641 0.223 29.714);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.451 0.051 121.344);
  --chart-1: oklch(0.451 0.051 121.344);
  --chart-2: oklch(0.42 0.032 224.333);
  --chart-3: oklch(0.394 0.058 337.676);
  --chart-4: oklch(0.449 0.035 224.358);
  --chart-5: oklch(0.457 0.058 121.592);
}