Hog for shadcn/ui

Hog is a shadcn/ui theme built around a light red primary color (#faf4f5) with light blue accents (#f4f5fa). The light mode uses a neutral background (#ffffff). Dark mode keeps the light red primary (#faf4f5) on a neutral background (#080303).

Color palette

TokenLightDark
Background
#ffffffwhite
#080303black
Foreground
#0c0304black
#fdfcfcsnow
Card
#ffffffwhite
#080303black
Card foreground
#0c0304black
#fdfcfcsnow
Popover
#ffffffwhite
#080303black
Popover foreground
#0c0304black
#fdfcfcsnow
Primary
#faf4f5whitesmoke
#faf4f5whitesmoke
Primary foreground
#823a43sienna
#823a43sienna
Secondary
#f5faf4whitesmoke
#f5faf4whitesmoke
Secondary foreground
#1f3c1bdarkgreen
#1f3c1bdarkgreen
Muted
#d5ead2gainsboro
#182d15black
Muted foreground
#5a6459dimgray
#9ca69bdarkgray
Accent
#f4f5fawhitesmoke
#f4f5fawhitesmoke
Accent foreground
#3a4382darkslateblue
#3a4382darkslateblue
Destructive
#7e1c01maroon
#fd5c30tomato
Destructive foreground
#fec4b3lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#faf4f5whitesmoke
#faf4f5whitesmoke

Contrast

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

Light mode
Text on background20.38:1AAA
Text on card20.38:1AAA
Primary button7.35:1AAA
Secondary button11.56:1AAA
Muted text4.84:1AA
Accent8.38:1AAA
Destructive6.67:1AA
Dark mode
Text on background20.05:1AAA
Text on card20.05:1AAA
Primary button7.35:1AAA
Secondary button11.56:1AAA
Muted text5.84:1AA
Accent8.38:1AAA
Destructive6.76:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.118 0.024 10.543);
  --muted: oklch(0.914 0.039 141.965);
  --muted-foreground: oklch(0.491 0.022 141.961);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.118 0.024 10.543);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.118 0.024 10.543);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.973 0.006 9.063);
  --primary-foreground: oklch(0.447 0.099 14.736);
  --secondary: oklch(0.98 0.009 142.08);
  --secondary-foreground: oklch(0.323 0.066 141.462);
  --accent: oklch(0.971 0.007 280.22);
  --accent-foreground: oklch(0.409 0.105 275.076);
  --destructive: oklch(0.391 0.137 34.756);
  --destructive-foreground: oklch(0.867 0.071 36.003);
  --ring: oklch(0.973 0.006 9.063);
  --chart-1: oklch(0.973 0.006 9.063);
  --chart-2: oklch(0.98 0.009 142.08);
  --chart-3: oklch(0.971 0.007 280.22);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.973 0.007 9.075);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.015 9.906);
  --foreground: oklch(0.991 0.002 8.956);
  --muted: oklch(0.272 0.05 141.506);
  --muted-foreground: oklch(0.715 0.02 142.018);
  --popover: oklch(0.106 0.015 9.906);
  --popover-foreground: oklch(0.991 0.002 8.956);
  --card: oklch(0.106 0.015 9.906);
  --card-foreground: oklch(0.991 0.002 8.956);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.973 0.006 9.063);
  --primary-foreground: oklch(0.447 0.099 14.736);
  --secondary: oklch(0.98 0.009 142.08);
  --secondary-foreground: oklch(0.323 0.066 141.462);
  --accent: oklch(0.971 0.007 280.22);
  --accent-foreground: oklch(0.409 0.105 275.076);
  --destructive: oklch(0.683 0.204 35.841);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.973 0.006 9.063);
  --chart-1: oklch(0.973 0.006 9.063);
  --chart-2: oklch(0.98 0.009 142.08);
  --chart-3: oklch(0.971 0.007 280.22);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.973 0.007 9.075);
}