Airspace for shadcn/ui

Airspace is a shadcn/ui theme built around a vivid green primary color (#09ce1c) with vivid purple accents (#ce09ba). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#09ce1c) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#ffffffwhite
#010402black
Foreground
#010902black
#f6f9f6whitesmoke
Card
#fcfcfcsnow
#030703black
Card foreground
#010401black
#f9fbf9mintcream
Popover
#fcfcfcsnow
#030703black
Popover foreground
#010401black
#f9fbf9mintcream
Primary
#09ce1climegreen
#09ce1climegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ce09bamediumvioletred
#ce09bamediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ede8edlavender
#171217black
Muted foreground
#524250darkslategray
#bdadbcsilver
Accent
#ce09bamediumvioletred
#ce09bamediumvioletred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a9440asaddlebrown
#f26818chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#09ce1climegreen
#09ce1climegreen

Contrast

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

Light mode
Text on background20.16:1AAA
Text on card20.16:1AAA
Primary button2.13:1Fail
Secondary button4.81:1AA
Muted text7.69:1AAA
Accent4.81:1AA
Destructive5.97:1AA
Dark mode
Text on background19.43:1AAA
Text on card19.47:1AAA
Primary button2.13:1Fail
Secondary button4.81:1AA
Muted text8.71:1AAA
Accent4.81:1AA
Destructive6.73:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.124 0.028 146.941);
  --muted: oklch(0.936 0.009 328.701);
  --muted-foreground: oklch(0.401 0.032 329.447);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.098 0.023 146.941);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.098 0.023 146.941);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.738 0.245 143.074);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.587 0.259 333.765);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.587 0.259 333.765);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.516 0.146 43.78);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.738 0.245 143.074);
  --chart-1: oklch(0.738 0.245 143.074);
  --chart-2: oklch(0.587 0.259 333.765);
  --chart-3: oklch(0.587 0.259 333.765);
  --chart-4: oklch(0.618 0.273 333.789);
  --chart-5: oklch(0.746 0.249 143.004);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.014 147.582);
  --foreground: oklch(0.979 0.004 148.543);
  --muted: oklch(0.19 0.014 329.361);
  --muted-foreground: oklch(0.766 0.027 328.983);
  --popover: oklch(0.121 0.018 147.582);
  --popover-foreground: oklch(0.986 0.003 148.56);
  --card: oklch(0.121 0.018 147.582);
  --card-foreground: oklch(0.986 0.003 148.56);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.738 0.245 143.074);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.587 0.259 333.765);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.587 0.259 333.765);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.678 0.188 44.339);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.738 0.245 143.074);
  --chart-1: oklch(0.738 0.245 143.074);
  --chart-2: oklch(0.587 0.259 333.765);
  --chart-3: oklch(0.587 0.259 333.765);
  --chart-4: oklch(0.618 0.273 333.789);
  --chart-5: oklch(0.746 0.249 143.004);
}