Shampoo for shadcn/ui

Shampoo is a shadcn/ui theme built around a vivid deep orange primary color (#421701) with neutral gray accents (#c8c3c0). The light mode uses a neutral background (#fefcfb). Dark mode keeps the vivid deep orange primary (#421701) on a neutral background (#080403).

Color palette

TokenLightDark
Background
#fefcfbsnow
#080403black
Foreground
#000000black
#fcf9f8snow
Card
#fcf9f7snow
#0b0704black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fcf9f7snow
#0b0704black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#421701maroon
#421701maroon
Primary foreground
#fea677lightsalmon
#fea677lightsalmon
Secondary
#d2d1d1lightgrey
#1d1816black
Secondary foreground
#393838darkslategray
#bdafa8darkgray
Muted
#f6f1eewhitesmoke
#110c09black
Muted foreground
#594c46darkolivegreen
#b9ada6darkgray
Accent
#c8c3c0silver
#352821darkslategray
Accent foreground
#2e2a28darkslategray
#d2c0b7silver
Destructive
#731a0dmaroon
#e74127orangered
Destructive foreground
#f7c2balightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#421701maroon
#421701maroon

Contrast

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

Light mode
Text on background20.53:1AAA
Text on card20.07:1AAA
Primary button8.06:1AAA
Secondary button7.65:1AAA
Muted text7.36:1AAA
Accent8.15:1AAA
Destructive7.10:1AAA
Dark mode
Text on background19.46:1AAA
Text on card19.62:1AAA
Primary button8.06:1AAA
Secondary button8.23:1AAA
Muted text8.89:1AAA
Accent8.06:1AAA
Destructive4.05:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 50.633);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.962 0.007 50.57);
  --muted-foreground: oklch(0.428 0.02 50.1);
  --popover: oklch(0.985 0.004 50.605);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.985 0.004 50.605);
  --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.268 0.074 46.32);
  --primary-foreground: oklch(0.802 0.121 48.709);
  --secondary: oklch(0.861 0.001 50.648);
  --secondary-foreground: oklch(0.341 0.001 50.613);
  --accent: oklch(0.821 0.007 50.546);
  --accent-foreground: oklch(0.29 0.007 50.36);
  --destructive: oklch(0.368 0.125 31.661);
  --destructive-foreground: oklch(0.86 0.062 28.477);
  --ring: oklch(0.268 0.074 46.32);
  --chart-1: oklch(0.268 0.074 46.32);
  --chart-2: oklch(0.861 0.001 50.648);
  --chart-3: oklch(0.821 0.007 50.546);
  --chart-4: oklch(0.884 0.001 50.65);
  --chart-5: oklch(0.269 0.076 46.352);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0.011 57.939);
  --foreground: oklch(0.985 0.003 50.619);
  --muted: oklch(0.158 0.011 50.26);
  --muted-foreground: oklch(0.756 0.017 50.376);
  --popover: oklch(0.132 0.013 57.648);
  --popover-foreground: oklch(0.992 0.002 50.64);
  --card: oklch(0.132 0.013 57.648);
  --card-foreground: oklch(0.992 0.002 50.64);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.268 0.074 46.32);
  --primary-foreground: oklch(0.802 0.121 48.709);
  --secondary: oklch(0.215 0.009 50.16);
  --secondary-foreground: oklch(0.765 0.019 50.345);
  --accent: oklch(0.291 0.023 49.727);
  --accent-foreground: oklch(0.821 0.024 50.299);
  --destructive: oklch(0.617 0.207 31.656);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.268 0.074 46.32);
  --chart-1: oklch(0.268 0.074 46.32);
  --chart-2: oklch(0.215 0.009 50.16);
  --chart-3: oklch(0.291 0.023 49.727);
  --chart-4: oklch(0.248 0.011 50.118);
  --chart-5: oklch(0.269 0.076 46.352);
}