P. \ Machine for shadcn/ui

P. \ Machine is a shadcn/ui theme built around a vivid orange primary color (#ff9029) with neutral gray accents (#605e5c). The light mode uses a neutral background (#393837). Dark mode keeps the vivid orange primary (#ff9029) on a neutral background (#393837).

Color palette

TokenLightDark
Background
#393837darkslategray
#393837darkslategray
Foreground
#f7dac5bisque
#f7dac5bisque
Card
#343332darkslategray
#343332darkslategray
Card foreground
#fae9dbantiquewhite
#fae9dbantiquewhite
Popover
#31302fdarkslategray
#31302fdarkslategray
Popover foreground
#fdf7f2floralwhite
#fdf7f2floralwhite
Primary
#ff9029darkorange
#ff9029darkorange
Primary foreground
#000000black
#000000black
Secondary
#533f2ddarkolivegreen
#533f2ddarkolivegreen
Secondary foreground
#e4d8cdgainsboro
#e4d8cdgainsboro
Muted
#4a423adarkslategray
#4a423adarkslategray
Muted foreground
#c9c2basilver
#c9c2basilver
Accent
#605e5cdimgray
#605e5cdimgray
Accent foreground
#f8f7f7whitesmoke
#f8f7f7whitesmoke
Destructive
#f04628orangered
#f04628orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#454545darkslategray
#454545darkslategray
Input
#4d4d4ddarkslategray
#4d4d4ddarkslategray
Ring
#ff9029darkorange
#ff9029darkorange

Contrast

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

Light mode
Text on background8.78:1AAA
Text on card10.65:1AAA
Primary button9.29:1AAA
Secondary button7.08:1AAA
Muted text5.56:1AA
Accent6.00:1AA
Destructive3.73:1AA Large
Dark mode
Text on background8.78:1AAA
Text on card10.65:1AAA
Primary button9.29:1AAA
Secondary button7.08:1AAA
Muted text5.56:1AA
Accent6.00:1AA
Destructive3.73:1AA Large

CSS variables

Paste this into your globals.css to use P. \ Machine in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.342 0.002 67.742);
  --foreground: oklch(0.908 0.043 59.615);
  --muted: oklch(0.386 0.017 67.284);
  --muted-foreground: oklch(0.817 0.013 67.643);
  --popover: oklch(0.312 0.002 67.744);
  --popover-foreground: oklch(0.979 0.01 60.147);
  --card: oklch(0.322 0.002 67.743);
  --card-foreground: oklch(0.943 0.026 59.899);
  --border: oklch(0.39 0 165.964);
  --input: oklch(0.418 0 173.29);
  --primary: oklch(0.759 0.17 57.26);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.384 0.04 64.26);
  --secondary-foreground: oklch(0.89 0.02 65.694);
  --accent: oklch(0.484 0.004 67.734);
  --accent-foreground: oklch(0.977 0 67.818);
  --destructive: oklch(0.638 0.211 32.368);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.759 0.17 57.26);
  --chart-1: oklch(0.759 0.17 57.26);
  --chart-2: oklch(0.384 0.04 64.26);
  --chart-3: oklch(0.484 0.004 67.734);
  --chart-4: oklch(0.415 0.044 64.213);
  --chart-5: oklch(0.763 0.174 56.773);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.342 0.002 67.742);
  --foreground: oklch(0.908 0.043 59.615);
  --muted: oklch(0.386 0.017 67.284);
  --muted-foreground: oklch(0.817 0.013 67.643);
  --popover: oklch(0.312 0.002 67.744);
  --popover-foreground: oklch(0.979 0.01 60.147);
  --card: oklch(0.322 0.002 67.743);
  --card-foreground: oklch(0.943 0.026 59.899);
  --border: oklch(0.39 0 165.964);
  --input: oklch(0.418 0 173.29);
  --primary: oklch(0.759 0.17 57.26);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.384 0.04 64.26);
  --secondary-foreground: oklch(0.89 0.02 65.694);
  --accent: oklch(0.484 0.004 67.734);
  --accent-foreground: oklch(0.977 0 67.818);
  --destructive: oklch(0.638 0.211 32.368);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.759 0.17 57.26);
  --chart-1: oklch(0.759 0.17 57.26);
  --chart-2: oklch(0.384 0.04 64.26);
  --chart-3: oklch(0.484 0.004 67.734);
  --chart-4: oklch(0.415 0.044 64.213);
  --chart-5: oklch(0.763 0.174 56.773);
}