Airspace for shadcn/ui

Airspace is a shadcn/ui theme built around a vivid green primary color (#96fb60) with vivid violet accents (#c560fb). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the vivid green primary (#96fb60) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#f9fcf8mintcream
#020401black
Foreground
#020401black
#ffffffwhite
Card
#f6fbf4whitesmoke
#040703black
Card foreground
#000000black
#ffffffwhite
Popover
#f9fcf8mintcream
#020401black
Popover foreground
#020401black
#ffffffwhite
Primary
#96fb60lightgreen
#96fb60lightgreen
Primary foreground
#0f2801black
#0f2801black
Secondary
#c560fbmediumorchid
#c560fbmediumorchid
Secondary foreground
#000000black
#000000black
Muted
#efe6f4lavender
#140b19black
Muted foreground
#575558dimgray
#a9a7aadarkgray
Accent
#c560fbmediumorchid
#c560fbmediumorchid
Accent foreground
#000000black
#000000black
Destructive
#bc2b15firebrick
#e73d23orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#96fb60lightgreen
#96fb60lightgreen

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card20.02:1AAA
Primary button12.27:1AAA
Secondary button6.42:1AA
Muted text6.08:1AA
Accent6.42:1AA
Destructive5.99:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.20:1AAA
Primary button12.27:1AAA
Secondary button6.42:1AA
Muted text8.06:1AAA
Accent6.42:1AA
Destructive4.14:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.007 134.26);
  --foreground: oklch(0.1 0.017 132.589);
  --muted: oklch(0.937 0.021 314.097);
  --muted-foreground: oklch(0.453 0.006 314.143);
  --popover: oklch(0.988 0.007 134.26);
  --popover-foreground: oklch(0.1 0.017 132.589);
  --card: oklch(0.982 0.011 134.281);
  --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.895 0.212 136.304);
  --primary-foreground: oklch(0.246 0.071 136.23);
  --secondary: oklch(0.675 0.23 311.748);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.675 0.23 311.748);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.522 0.184 31.619);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.895 0.212 136.304);
  --chart-1: oklch(0.895 0.212 136.304);
  --chart-2: oklch(0.675 0.23 311.748);
  --chart-3: oklch(0.675 0.23 311.748);
  --chart-4: oklch(0.701 0.211 312.19);
  --chart-5: oklch(0.9 0.218 136.384);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.014 132.901);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.169 0.031 313.146);
  --muted-foreground: oklch(0.73 0.006 314.178);
  --popover: oklch(0.098 0.014 132.901);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.124 0.017 132.901);
  --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.895 0.212 136.304);
  --primary-foreground: oklch(0.246 0.071 136.23);
  --secondary: oklch(0.675 0.23 311.748);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.675 0.23 311.748);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.613 0.21 31.659);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.895 0.212 136.304);
  --chart-1: oklch(0.895 0.212 136.304);
  --chart-2: oklch(0.675 0.23 311.748);
  --chart-3: oklch(0.675 0.23 311.748);
  --chart-4: oklch(0.701 0.211 312.19);
  --chart-5: oklch(0.9 0.218 136.384);
}