Shampoo for shadcn/ui

Shampoo is a shadcn/ui theme built around a deep orange primary color (#312416) with deep violet accents (#241631). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#312416) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#fdfcfcsnow
Card
#ffffffwhite
#000000black
Card foreground
#000000black
#fdfcfcsnow
Popover
#ffffffwhite
#000000black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#312416black
#312416black
Primary foreground
#d5bea4tan
#d5bea4tan
Secondary
#163124darkslategray
#163124darkslategray
Secondary foreground
#a4d5besilver
#a4d5besilver
Muted
#dde9e3gainsboro
#16221cblack
Muted foreground
#3a4b43darkslategray
#b4c5bdsilver
Accent
#241631midnightblue
#241631midnightblue
Accent foreground
#bea4d5plum
#bea4d5plum
Destructive
#d32409firebrick
#f75036tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#312416black
#312416black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.40:1AAA
Secondary button8.56:1AAA
Muted text7.41:1AAA
Accent7.64:1AAA
Destructive5.23:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.50:1AAA
Primary button8.40:1AAA
Secondary button8.56:1AAA
Muted text9.13:1AAA
Accent7.64:1AAA
Destructive3.42:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.923 0.014 165.607);
  --muted-foreground: oklch(0.395 0.026 164.123);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --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.272 0.03 67.852);
  --primary-foreground: oklch(0.813 0.044 69.018);
  --secondary: oklch(0.287 0.041 161.335);
  --secondary-foreground: oklch(0.833 0.061 163.881);
  --accent: oklch(0.234 0.052 306.622);
  --accent-foreground: oklch(0.758 0.074 308.094);
  --destructive: oklch(0.557 0.211 31.221);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.272 0.03 67.852);
  --chart-1: oklch(0.272 0.03 67.852);
  --chart-2: oklch(0.287 0.041 161.335);
  --chart-3: oklch(0.234 0.052 306.622);
  --chart-4: oklch(0.324 0.048 161.093);
  --chart-5: oklch(0.273 0.033 67.626);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 69.644);
  --muted: oklch(0.238 0.019 163.663);
  --muted-foreground: oklch(0.809 0.022 165.267);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 69.644);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 69.644);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.272 0.03 67.852);
  --primary-foreground: oklch(0.813 0.044 69.018);
  --secondary: oklch(0.287 0.041 161.335);
  --secondary-foreground: oklch(0.833 0.061 163.881);
  --accent: oklch(0.234 0.052 306.622);
  --accent-foreground: oklch(0.758 0.074 308.094);
  --destructive: oklch(0.66 0.207 31.554);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.272 0.03 67.852);
  --chart-1: oklch(0.272 0.03 67.852);
  --chart-2: oklch(0.287 0.041 161.335);
  --chart-3: oklch(0.234 0.052 306.622);
  --chart-4: oklch(0.324 0.048 161.093);
  --chart-5: oklch(0.273 0.033 67.626);
}