Helmet for shadcn/ui

Helmet is a shadcn/ui theme built around a green primary color (#92d8b3) with muted light green accents (#e0ebe5). The light mode uses a neutral background (#f6fdfa). Dark mode keeps the green primary (#92d8b3) on a neutral background (#020805).

Color palette

TokenLightDark
Background
#f6fdfamintcream
#020805black
Foreground
#040c07black
#ffffffwhite
Card
#f2fcf7mintcream
#040c07black
Card foreground
#020805black
#ffffffwhite
Popover
#f6fdfamintcream
#020805black
Popover foreground
#040c07black
#ffffffwhite
Primary
#92d8b3lightgreen
#92d8b3lightgreen
Primary foreground
#0f291bblack
#0f291bblack
Secondary
#e0ebe5gainsboro
#161d19black
Secondary foreground
#3d5c4bdarkslategray
#a9bcb2darkgray
Muted
#d8e8e0gainsboro
#17271eblack
Muted foreground
#49554fdarkslategray
#aab6b0darkgray
Accent
#e0ebe5gainsboro
#161d19black
Accent foreground
#3d5c4bdarkslategray
#a9bcb2darkgray
Destructive
#be370efirebrick
#f16a41tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#92d8b3lightgreen
#92d8b3lightgreen

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card19.34:1AAA
Primary button9.36:1AAA
Secondary button6.05:1AA
Muted text6.15:1AA
Accent6.05:1AA
Destructive5.61:1AA
Dark mode
Text on background20.20:1AAA
Text on card19.82:1AAA
Primary button9.36:1AAA
Secondary button8.60:1AAA
Muted text7.48:1AAA
Accent8.60:1AAA
Destructive6.87:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.009 163.223);
  --foreground: oklch(0.141 0.018 163.271);
  --muted: oklch(0.918 0.02 162.873);
  --muted-foreground: oklch(0.438 0.019 162.279);
  --popover: oklch(0.989 0.009 163.223);
  --popover-foreground: oklch(0.141 0.018 163.271);
  --card: oklch(0.983 0.013 163.109);
  --card-foreground: oklch(0.123 0.016 163.511);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.825 0.088 160.384);
  --primary-foreground: oklch(0.256 0.042 158.086);
  --secondary: oklch(0.93 0.013 163.086);
  --secondary-foreground: oklch(0.445 0.045 160.541);
  --accent: oklch(0.93 0.013 163.086);
  --accent-foreground: oklch(0.445 0.045 160.541);
  --destructive: oklch(0.535 0.177 35.531);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.825 0.088 160.384);
  --chart-1: oklch(0.825 0.088 160.384);
  --chart-2: oklch(0.93 0.013 163.086);
  --chart-3: oklch(0.93 0.013 163.086);
  --chart-4: oklch(0.951 0.009 163.201);
  --chart-5: oklch(0.829 0.093 160.189);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.016 163.511);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.254 0.027 160.382);
  --muted-foreground: oklch(0.765 0.017 162.874);
  --popover: oklch(0.123 0.016 163.511);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.141 0.018 163.271);
  --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.825 0.088 160.384);
  --primary-foreground: oklch(0.256 0.042 158.086);
  --secondary: oklch(0.222 0.012 162.006);
  --secondary-foreground: oklch(0.778 0.026 162.559);
  --accent: oklch(0.222 0.012 162.006);
  --accent-foreground: oklch(0.778 0.026 162.559);
  --destructive: oklch(0.684 0.175 37.405);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.825 0.088 160.384);
  --chart-1: oklch(0.825 0.088 160.384);
  --chart-2: oklch(0.222 0.012 162.006);
  --chart-3: oklch(0.222 0.012 162.006);
  --chart-4: oklch(0.256 0.015 161.877);
  --chart-5: oklch(0.829 0.093 160.189);
}