Hovercraft for shadcn/ui

Hovercraft is a shadcn/ui theme built around a vivid light green primary color (#a8f5c8) with vivid light orange accents (#f5c8a8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#a8f5c8) on a green-tinted background (#050f09).

Color palette

TokenLightDark
Background
#ffffffwhite
#050f09black
Foreground
#050f09black
#fcfdfcwhite
Card
#ffffffwhite
#050f09black
Card foreground
#050f09black
#fcfdfcwhite
Popover
#ffffffwhite
#050f09black
Popover foreground
#050f09black
#fcfdfcwhite
Primary
#a8f5c8powderblue
#a8f5c8powderblue
Primary foreground
#0b602edarkgreen
#0b602edarkgreen
Secondary
#c8a8f5plum
#c8a8f5plum
Secondary foreground
#2e0b60midnightblue
#2e0b60midnightblue
Muted
#ddd6e6gainsboro
#201929black
Muted foreground
#5f546ddimgray
#9c92abdarkgray
Accent
#f5c8a8wheat
#f5c8a8wheat
Accent foreground
#602e0bsaddlebrown
#602e0bsaddlebrown
Destructive
#a64208saddlebrown
#f46a1achocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a8f5c8powderblue
#a8f5c8powderblue

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button6.08:1AA
Secondary button7.77:1AAA
Muted text4.97:1AA
Accent7.25:1AAA
Destructive6.19:1AA
Dark mode
Text on background19.05:1AAA
Text on card19.05:1AAA
Primary button6.08:1AA
Secondary button7.77:1AAA
Muted text5.76:1AA
Accent7.25:1AAA
Destructive6.93:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.157 0.021 159.371);
  --muted: oklch(0.886 0.023 304.691);
  --muted-foreground: oklch(0.467 0.042 303.792);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.157 0.021 159.371);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.157 0.021 159.371);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.909 0.099 158.114);
  --primary-foreground: oklch(0.431 0.111 151.164);
  --secondary: oklch(0.787 0.113 303.017);
  --secondary-foreground: oklch(0.273 0.135 294.072);
  --accent: oklch(0.865 0.067 57.227);
  --accent-foreground: oklch(0.364 0.086 51.08);
  --destructive: oklch(0.507 0.145 43.492);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.909 0.099 158.114);
  --chart-1: oklch(0.909 0.099 158.114);
  --chart-2: oklch(0.787 0.113 303.017);
  --chart-3: oklch(0.865 0.067 57.227);
  --chart-4: oklch(0.82 0.094 303.434);
  --chart-5: oklch(0.911 0.102 158.006);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.021 159.401);
  --foreground: oklch(0.993 0.001 160.996);
  --muted: oklch(0.23 0.032 303.109);
  --muted-foreground: oklch(0.676 0.038 304.259);
  --popover: oklch(0.157 0.021 159.401);
  --popover-foreground: oklch(0.993 0.001 160.996);
  --card: oklch(0.157 0.021 159.401);
  --card-foreground: oklch(0.993 0.001 160.996);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.909 0.099 158.114);
  --primary-foreground: oklch(0.431 0.111 151.164);
  --secondary: oklch(0.787 0.113 303.017);
  --secondary-foreground: oklch(0.273 0.135 294.072);
  --accent: oklch(0.865 0.067 57.227);
  --accent-foreground: oklch(0.364 0.086 51.08);
  --destructive: oklch(0.686 0.188 44.587);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.909 0.099 158.114);
  --chart-1: oklch(0.909 0.099 158.114);
  --chart-2: oklch(0.787 0.113 303.017);
  --chart-3: oklch(0.865 0.067 57.227);
  --chart-4: oklch(0.82 0.094 303.434);
  --chart-5: oklch(0.911 0.102 158.006);
}