Airbus for shadcn/ui

Airbus is a shadcn/ui theme built around a vivid deep purple primary color (#6f0150) with vivid deep green accents (#016f20). The light mode uses a neutral background (#fdf7fb). Dark mode keeps the vivid deep purple primary (#6f0150) on a purple-tinted background (#10050c).

Color palette

TokenLightDark
Background
#fdf7fbsnow
#10050cblack
Foreground
#040103black
#f9f6f8whitesmoke
Card
#fcf3f9lavenderblush
#130610black
Card foreground
#000000black
#fbf9fasnow
Popover
#fdf7fbsnow
#10050cblack
Popover foreground
#040103black
#f9f6f8whitesmoke
Primary
#6f0150purple
#6f0150purple
Primary foreground
#fea4e5plum
#fea4e5plum
Secondary
#016f20darkgreen
#016f20darkgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dbe6degainsboro
#19241cblack
Muted foreground
#5e6861dimgray
#97a199darkgray
Accent
#016f20darkgreen
#016f20darkgreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b20d01firebrick
#fe2a1borangered
Destructive foreground
#ffe7e6mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6f0150purple
#6f0150purple

Contrast

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

Light mode
Text on background19.64:1AAA
Text on card19.30:1AAA
Primary button6.48:1AA
Secondary button6.36:1AA
Muted text4.51:1AA
Accent6.36:1AA
Destructive6.06:1AA
Dark mode
Text on background18.66:1AAA
Text on card18.85:1AAA
Primary button6.48:1AA
Secondary button6.36:1AA
Muted text6.00:1AA
Accent6.36:1AA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.009 335.351);
  --foreground: oklch(0.085 0.019 335.808);
  --muted: oklch(0.914 0.016 154.871);
  --muted-foreground: oklch(0.508 0.016 154.582);
  --popover: oklch(0.982 0.009 335.351);
  --popover-foreground: oklch(0.085 0.019 335.808);
  --card: oklch(0.972 0.013 335.433);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.362 0.153 344.676);
  --primary-foreground: oklch(0.828 0.133 337.891);
  --secondary: oklch(0.472 0.144 145.923);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.472 0.144 145.923);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.483 0.193 30.011);
  --destructive-foreground: oklch(0.947 0.026 22.539);
  --ring: oklch(0.362 0.153 344.676);
  --chart-1: oklch(0.362 0.153 344.676);
  --chart-2: oklch(0.472 0.144 145.923);
  --chart-3: oklch(0.472 0.144 145.923);
  --chart-4: oklch(0.517 0.159 145.733);
  --chart-5: oklch(0.365 0.156 344.911);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.027 337.278);
  --foreground: oklch(0.976 0.004 335.26);
  --muted: oklch(0.247 0.022 153.47);
  --muted-foreground: oklch(0.697 0.015 154.784);
  --popover: oklch(0.137 0.027 337.278);
  --popover-foreground: oklch(0.976 0.004 335.26);
  --card: oklch(0.15 0.031 338.111);
  --card-foreground: oklch(0.984 0.002 335.236);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.362 0.153 344.676);
  --primary-foreground: oklch(0.828 0.133 337.891);
  --secondary: oklch(0.472 0.144 145.923);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.472 0.144 145.923);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.64 0.243 29.661);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.362 0.153 344.676);
  --chart-1: oklch(0.362 0.153 344.676);
  --chart-2: oklch(0.472 0.144 145.923);
  --chart-3: oklch(0.472 0.144 145.923);
  --chart-4: oklch(0.517 0.159 145.733);
  --chart-5: oklch(0.365 0.156 344.911);
}