Pork for shadcn/ui

Pork is a shadcn/ui theme built around an orange primary color (#d0b695) with blue accents (#95afd0). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the orange primary (#d0b695) on a neutral background (#070504).

Color palette

TokenLightDark
Background
#fcfaf8snow
#070504black
Foreground
#000000black
#f9f8f5whitesmoke
Card
#faf8f4whitesmoke
#0a0805black
Card foreground
#000000black
#fbfaf9snow
Popover
#fcfaf8snow
#070504black
Popover foreground
#000000black
#f9f8f5whitesmoke
Primary
#d0b695tan
#d0b695tan
Primary foreground
#231b10black
#231b10black
Secondary
#95afd0lightsteelblue
#95afd0lightsteelblue
Secondary foreground
#101823black
#101823black
Muted
#d6d8dcgainsboro
#232629darkslategray
Muted foreground
#414b58darkslategray
#a7b1bedarkgray
Accent
#95afd0lightsteelblue
#95afd0lightsteelblue
Accent foreground
#101823black
#101823black
Destructive
#bd4500firebrick
#e65400orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d0b695tan
#d0b695tan

Contrast

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

Light mode
Text on background20.18:1AAA
Text on card19.78:1AAA
Primary button8.78:1AAA
Secondary button7.88:1AAA
Muted text6.21:1AA
Accent7.88:1AAA
Destructive5.23:1AA
Dark mode
Text on background19.13:1AAA
Text on card19.18:1AAA
Primary button8.78:1AAA
Secondary button7.88:1AAA
Muted text7.01:1AAA
Accent7.88:1AAA
Destructive3.73:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.004 74.933);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.882 0.006 254.988);
  --muted-foreground: oklch(0.409 0.025 255.205);
  --popover: oklch(0.986 0.004 74.933);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.979 0.005 74.921);
  --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.791 0.055 74.3);
  --primary-foreground: oklch(0.228 0.024 73.573);
  --secondary: oklch(0.745 0.057 255.246);
  --secondary-foreground: oklch(0.207 0.026 255.392);
  --accent: oklch(0.745 0.057 255.246);
  --accent-foreground: oklch(0.207 0.026 255.392);
  --destructive: oklch(0.549 0.166 41.819);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.791 0.055 74.3);
  --chart-1: oklch(0.791 0.055 74.3);
  --chart-2: oklch(0.745 0.057 255.246);
  --chart-3: oklch(0.745 0.057 255.246);
  --chart-4: oklch(0.771 0.051 255.216);
  --chart-5: oklch(0.794 0.059 74.226);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.118 0.007 78.927);
  --foreground: oklch(0.979 0.003 74.933);
  --muted: oklch(0.267 0.008 255.089);
  --muted-foreground: oklch(0.757 0.022 255.091);
  --popover: oklch(0.118 0.007 78.927);
  --popover-foreground: oklch(0.979 0.003 74.933);
  --card: oklch(0.136 0.008 78.927);
  --card-foreground: oklch(0.986 0.002 74.94);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.791 0.055 74.3);
  --primary-foreground: oklch(0.228 0.024 73.573);
  --secondary: oklch(0.745 0.057 255.246);
  --secondary-foreground: oklch(0.207 0.026 255.392);
  --accent: oklch(0.745 0.057 255.246);
  --accent-foreground: oklch(0.207 0.026 255.392);
  --destructive: oklch(0.634 0.194 41.259);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.791 0.055 74.3);
  --chart-1: oklch(0.791 0.055 74.3);
  --chart-2: oklch(0.745 0.057 255.246);
  --chart-3: oklch(0.745 0.057 255.246);
  --chart-4: oklch(0.771 0.051 255.216);
  --chart-5: oklch(0.794 0.059 74.226);
}