Airforce for shadcn/ui

Airforce is a shadcn/ui theme built around a light blue primary color (#d0e7f6) with light blue accents (#d0d4f6). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the light blue primary (#d0e7f6) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#fbfdfewhite
#010304black
Foreground
#030c12black
#f6f8f9whitesmoke
Card
#f7fafdghostwhite
#030607black
Card foreground
#02090dblack
#f9fafbghostwhite
Popover
#fbfdfewhite
#010304black
Popover foreground
#030c12black
#f6f8f9whitesmoke
Primary
#d0e7f6lavender
#d0e7f6lavender
Primary foreground
#18547cteal
#18547cteal
Secondary
#d0f6f2lightcyan
#d0f6f2lightcyan
Secondary foreground
#072723black
#072723black
Muted
#dae2e1gainsboro
#1d2525black
Muted foreground
#425250darkslategray
#adbdbcsilver
Accent
#d0d4f6lavender
#d0d4f6lavender
Accent foreground
#18227cmidnightblue
#18227cmidnightblue
Destructive
#6e2a08saddlebrown
#ef5e15chocolate
Destructive foreground
#f9c7aepeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d0e7f6lavender
#d0e7f6lavender

Contrast

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

Light mode
Text on background19.29:1AAA
Text on card19.19:1AAA
Primary button6.31:1AA
Secondary button13.71:1AAA
Muted text6.24:1AA
Accent9.23:1AAA
Destructive6.94:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.49:1AAA
Primary button6.31:1AA
Secondary button13.71:1AAA
Muted text7.99:1AAA
Accent9.23:1AAA
Destructive6.26:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 236.471);
  --foreground: oklch(0.146 0.021 233.094);
  --muted: oklch(0.906 0.009 189.841);
  --muted-foreground: oklch(0.424 0.021 188.947);
  --popover: oklch(0.992 0.002 236.471);
  --popover-foreground: oklch(0.146 0.021 233.094);
  --card: oklch(0.985 0.005 236.507);
  --card-foreground: oklch(0.131 0.018 229.076);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.915 0.032 236.962);
  --primary-foreground: oklch(0.429 0.09 242.786);
  --secondary: oklch(0.945 0.04 189.101);
  --secondary-foreground: oklch(0.247 0.037 185.81);
  --accent: oklch(0.877 0.047 280.36);
  --accent-foreground: oklch(0.315 0.151 269.674);
  --destructive: oklch(0.378 0.106 42.613);
  --destructive-foreground: oklch(0.868 0.067 47.93);
  --ring: oklch(0.915 0.032 236.962);
  --chart-1: oklch(0.915 0.032 236.962);
  --chart-2: oklch(0.945 0.04 189.101);
  --chart-3: oklch(0.877 0.047 280.36);
  --chart-4: oklch(0.96 0.029 189.377);
  --chart-5: oklch(0.915 0.033 236.987);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.091 0.008 230.727);
  --foreground: oklch(0.977 0.003 236.478);
  --muted: oklch(0.258 0.012 188.96);
  --muted-foreground: oklch(0.786 0.018 189.549);
  --popover: oklch(0.091 0.008 230.727);
  --popover-foreground: oklch(0.977 0.003 236.478);
  --card: oklch(0.115 0.01 230.727);
  --card-foreground: oklch(0.985 0.002 236.464);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.915 0.032 236.962);
  --primary-foreground: oklch(0.429 0.09 242.786);
  --secondary: oklch(0.945 0.04 189.101);
  --secondary-foreground: oklch(0.247 0.037 185.81);
  --accent: oklch(0.877 0.047 280.36);
  --accent-foreground: oklch(0.315 0.151 269.674);
  --destructive: oklch(0.661 0.193 41.587);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.915 0.032 236.962);
  --chart-1: oklch(0.915 0.032 236.962);
  --chart-2: oklch(0.945 0.04 189.101);
  --chart-3: oklch(0.877 0.047 280.36);
  --chart-4: oklch(0.96 0.029 189.377);
  --chart-5: oklch(0.915 0.033 236.987);
}