Contact for shadcn/ui

Contact is a shadcn/ui theme built around a vivid green primary color (#61ff6b) with vivid purple accents (#ff61f4). The light mode uses a neutral background (#fbfefb). Dark mode keeps the vivid green primary (#61ff6b) on a green-tinted background (#041005).

Color palette

TokenLightDark
Background
#fbfefbwhite
#041005black
Foreground
#010401black
#ffffffwhite
Card
#fbfefbwhite
#041005black
Card foreground
#010401black
#ffffffwhite
Popover
#fbfefbwhite
#041005black
Popover foreground
#010401black
#ffffffwhite
Primary
#61ff6blightgreen
#61ff6blightgreen
Primary foreground
#002e03black
#002e03black
Secondary
#ff61f4violet
#ff61f4violet
Secondary foreground
#2e002bblack
#2e002bblack
Muted
#ebe5eblavender
#1a141ablack
Muted foreground
#5a4959dimgray
#b6a5b4darkgray
Accent
#ff61f4violet
#ff61f4violet
Accent foreground
#2e002bblack
#2e002bblack
Destructive
#b53a0dfirebrick
#e04710orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#61ff6blightgreen
#61ff6blightgreen

Contrast

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

Light mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button11.51:1AAA
Secondary button7.18:1AAA
Muted text6.69:1AA
Accent7.18:1AAA
Destructive5.87:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button11.51:1AAA
Secondary button7.18:1AAA
Muted text7.79:1AAA
Accent7.18:1AAA
Destructive4.12:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 147.494);
  --foreground: oklch(0.097 0.017 146.256);
  --muted: oklch(0.928 0.01 327.649);
  --muted-foreground: oklch(0.429 0.032 328.263);
  --popover: oklch(0.994 0.005 147.494);
  --popover-foreground: oklch(0.097 0.017 146.256);
  --card: oklch(0.994 0.005 147.494);
  --card-foreground: oklch(0.097 0.017 146.256);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.886 0.232 144.356);
  --primary-foreground: oklch(0.261 0.085 143.757);
  --secondary: oklch(0.746 0.25 330.485);
  --secondary-foreground: oklch(0.209 0.094 331.372);
  --accent: oklch(0.746 0.25 330.485);
  --accent-foreground: oklch(0.209 0.094 331.372);
  --destructive: oklch(0.523 0.167 37.246);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.886 0.232 144.356);
  --chart-1: oklch(0.886 0.232 144.356);
  --chart-2: oklch(0.746 0.25 330.485);
  --chart-3: oklch(0.746 0.25 330.485);
  --chart-4: oklch(0.763 0.23 330.193);
  --chart-5: oklch(0.891 0.237 144.284);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.032 145.788);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.201 0.014 328.224);
  --muted-foreground: oklch(0.741 0.028 327.915);
  --popover: oklch(0.158 0.032 145.788);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.158 0.032 145.788);
  --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.886 0.232 144.356);
  --primary-foreground: oklch(0.261 0.085 143.757);
  --secondary: oklch(0.746 0.25 330.485);
  --secondary-foreground: oklch(0.209 0.094 331.372);
  --accent: oklch(0.746 0.25 330.485);
  --accent-foreground: oklch(0.209 0.094 331.372);
  --destructive: oklch(0.611 0.198 36.971);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.886 0.232 144.356);
  --chart-1: oklch(0.886 0.232 144.356);
  --chart-2: oklch(0.746 0.25 330.485);
  --chart-3: oklch(0.746 0.25 330.485);
  --chart-4: oklch(0.763 0.23 330.193);
  --chart-5: oklch(0.891 0.237 144.284);
}