Redhead for shadcn/ui

Redhead is a shadcn/ui theme built around a deep green primary color (#05100a) with deep pink accents (#10050b). The light mode uses a neutral background (#f8fcfa). Dark mode keeps the deep green primary (#05100a) on a neutral background (#020302).

Color palette

TokenLightDark
Background
#f8fcfamintcream
#020302black
Foreground
#010502black
#f9fbfamintcream
Card
#f5faf7whitesmoke
#030705black
Card foreground
#000000black
#fcfdfcwhite
Popover
#f8fcfamintcream
#020302black
Popover foreground
#010502black
#f9fbfamintcream
Primary
#05100ablack
#05100ablack
Primary foreground
#35ac6cmediumseagreen
#35ac6cmediumseagreen
Secondary
#10050bblack
#10050bblack
Secondary foreground
#d473a6palevioletred
#d473a6palevioletred
Muted
#e5e1e3gainsboro
#1e1a1cblack
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#10050bblack
#10050bblack
Accent foreground
#d473a6palevioletred
#d473a6palevioletred
Destructive
#781508maroon
#dd260efirebrick
Destructive foreground
#fabfb7lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#05100ablack
#05100ablack

Contrast

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

Light mode
Text on background19.78:1AAA
Text on card19.90:1AAA
Primary button6.71:1AA
Secondary button6.49:1AA
Muted text4.77:1AA
Accent6.49:1AA
Destructive6.92:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.86:1AAA
Primary button6.71:1AA
Secondary button6.49:1AA
Muted text6.42:1AA
Accent6.49:1AA
Destructive4.83:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 163.325);
  --foreground: oklch(0.1 0.018 163.54);
  --muted: oklch(0.913 0.005 343.584);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(0.987 0.005 163.325);
  --popover-foreground: oklch(0.1 0.018 163.54);
  --card: oklch(0.98 0.007 163.264);
  --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.158 0.021 161.6);
  --primary-foreground: oklch(0.662 0.141 155.521);
  --secondary: oklch(0.136 0.026 345.38);
  --secondary-foreground: oklch(0.679 0.136 348.111);
  --accent: oklch(0.136 0.026 345.38);
  --accent-foreground: oklch(0.679 0.136 348.111);
  --destructive: oklch(0.372 0.135 31.074);
  --destructive-foreground: oklch(0.856 0.07 27.198);
  --ring: oklch(0.158 0.021 161.6);
  --chart-1: oklch(0.158 0.021 161.6);
  --chart-2: oklch(0.136 0.026 345.38);
  --chart-3: oklch(0.136 0.026 345.38);
  --chart-4: oklch(0.172 0.037 348.41);
  --chart-5: oklch(0.158 0.023 161.504);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.009 163.491);
  --foreground: oklch(0.986 0.003 163.378);
  --muted: oklch(0.224 0.007 344.241);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0.096 0.009 163.491);
  --popover-foreground: oklch(0.986 0.003 163.378);
  --card: oklch(0.121 0.011 163.491);
  --card-foreground: oklch(0.993 0.001 163.412);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.158 0.021 161.6);
  --primary-foreground: oklch(0.662 0.141 155.521);
  --secondary: oklch(0.136 0.026 345.38);
  --secondary-foreground: oklch(0.679 0.136 348.111);
  --accent: oklch(0.136 0.026 345.38);
  --accent-foreground: oklch(0.679 0.136 348.111);
  --destructive: oklch(0.577 0.218 30.895);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.158 0.021 161.6);
  --chart-1: oklch(0.158 0.021 161.6);
  --chart-2: oklch(0.136 0.026 345.38);
  --chart-3: oklch(0.136 0.026 345.38);
  --chart-4: oklch(0.172 0.037 348.41);
  --chart-5: oklch(0.158 0.023 161.504);
}