Hog for shadcn/ui

Hog is a shadcn/ui theme built around a vivid teal primary color (#8df2c1) with vivid pink accents (#f28dbe). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the vivid teal primary (#8df2c1) on a teal-tinted background (#060f0a).

Color palette

TokenLightDark
Background
#f8fcfamintcream
#060f0ablack
Foreground
#000000black
#f6f8f7whitesmoke
Card
#f5faf7whitesmoke
#07120dblack
Card foreground
#000000black
#f9fbfamintcream
Popover
#f8fcfamintcream
#060f0ablack
Popover foreground
#000000black
#f6f8f7whitesmoke
Primary
#8df2c1aquamarine
#8df2c1aquamarine
Primary foreground
#084427darkgreen
#084427darkgreen
Secondary
#f28dbehotpink
#f28dbehotpink
Secondary foreground
#440825maroon
#440825maroon
Muted
#f7edf2whitesmoke
#12080dblack
Muted foreground
#4f4f4fdarkslategray
#b0b0b0darkgray
Accent
#f28dbehotpink
#f28dbehotpink
Accent foreground
#440825maroon
#440825maroon
Destructive
#7d1e0dmaroon
#e84326orangered
Destructive foreground
#f9cbc3pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#8df2c1aquamarine
#8df2c1aquamarine

Contrast

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

Light mode
Text on background20.26:1AAA
Text on card19.89:1AAA
Primary button8.33:1AAA
Secondary button7.11:1AAA
Muted text7.16:1AAA
Accent7.11:1AAA
Destructive6.98:1AA
Dark mode
Text on background18.25:1AAA
Text on card18.30:1AAA
Primary button8.33:1AAA
Secondary button7.11:1AAA
Muted text9.09:1AAA
Accent7.11:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 165.898);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.956 0.013 346.368);
  --muted-foreground: oklch(0.428 0 180);
  --popover: oklch(0.987 0.004 165.898);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.98 0.007 165.837);
  --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.885 0.118 161.69);
  --primary-foreground: oklch(0.344 0.078 156.172);
  --secondary: oklch(0.763 0.134 350.366);
  --secondary-foreground: oklch(0.262 0.094 356.795);
  --accent: oklch(0.763 0.134 350.366);
  --accent-foreground: oklch(0.262 0.094 356.795);
  --destructive: oklch(0.39 0.132 32.328);
  --destructive-foreground: oklch(0.88 0.053 29.805);
  --ring: oklch(0.885 0.118 161.69);
  --chart-1: oklch(0.885 0.118 161.69);
  --chart-2: oklch(0.763 0.134 350.366);
  --chart-3: oklch(0.763 0.134 350.366);
  --chart-4: oklch(0.79 0.118 349.698);
  --chart-5: oklch(0.889 0.122 161.527);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.017 164.306);
  --foreground: oklch(0.979 0.003 165.94);
  --muted: oklch(0.15 0.021 348.95);
  --muted-foreground: oklch(0.757 0 180);
  --popover: oklch(0.156 0.017 164.306);
  --popover-foreground: oklch(0.979 0.003 165.94);
  --card: oklch(0.171 0.02 162.824);
  --card-foreground: oklch(0.986 0.002 165.966);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.885 0.118 161.69);
  --primary-foreground: oklch(0.344 0.078 156.172);
  --secondary: oklch(0.763 0.134 350.366);
  --secondary-foreground: oklch(0.262 0.094 356.795);
  --accent: oklch(0.763 0.134 350.366);
  --accent-foreground: oklch(0.262 0.094 356.795);
  --destructive: oklch(0.622 0.206 32.364);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.885 0.118 161.69);
  --chart-1: oklch(0.885 0.118 161.69);
  --chart-2: oklch(0.763 0.134 350.366);
  --chart-3: oklch(0.763 0.134 350.366);
  --chart-4: oklch(0.79 0.118 349.698);
  --chart-5: oklch(0.889 0.122 161.527);
}