Fratricide for shadcn/ui

Fratricide is a shadcn/ui theme built around a deep green primary color (#0e5326) with deep pink accents (#530e3b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#0e5326) on a green-tinted background (#050a07).

Color palette

TokenLightDark
Background
#ffffffwhite
#050a07black
Foreground
#041008black
#f9fbfamintcream
Card
#fcfcfcsnow
#070d09black
Card foreground
#030c06black
#fcfdfcwhite
Popover
#ffffffwhite
#050a07black
Popover foreground
#041008black
#f9fbfamintcream
Primary
#0e5326darkgreen
#0e5326darkgreen
Primary foreground
#a3f0bepalegreen
#a3f0bepalegreen
Secondary
#530e3bindigo
#530e3bindigo
Secondary foreground
#f0a3d5plum
#f0a3d5plum
Muted
#f2e8eflinen
#170d13black
Muted foreground
#6d5564dimgray
#aa92a2darkgray
Accent
#530e3bindigo
#530e3bindigo
Accent foreground
#f0a3d5plum
#f0a3d5plum
Destructive
#a73b02saddlebrown
#fd6717orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e5326darkgreen
#0e5326darkgreen

Contrast

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

Light mode
Text on background19.39:1AAA
Text on card19.40:1AAA
Primary button6.87:1AA
Secondary button7.29:1AAA
Muted text5.60:1AA
Accent7.29:1AAA
Destructive6.42:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.19:1AAA
Primary button6.87:1AA
Secondary button7.29:1AAA
Muted text6.66:1AA
Accent7.29:1AAA
Destructive7.12:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.158 0.025 156.3);
  --muted: oklch(0.941 0.014 338.298);
  --muted-foreground: oklch(0.479 0.038 339.562);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.158 0.025 156.3);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.141 0.021 157.479);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.391 0.1 149.874);
  --primary-foreground: oklch(0.892 0.103 155.242);
  --secondary: oklch(0.306 0.112 346.022);
  --secondary-foreground: oklch(0.805 0.111 340.651);
  --accent: oklch(0.306 0.112 346.022);
  --accent-foreground: oklch(0.805 0.111 340.651);
  --destructive: oklch(0.5 0.152 41.285);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.391 0.1 149.874);
  --chart-1: oklch(0.391 0.1 149.874);
  --chart-2: oklch(0.306 0.112 346.022);
  --chart-3: oklch(0.306 0.112 346.022);
  --chart-4: oklch(0.337 0.125 346.272);
  --chart-5: oklch(0.395 0.103 149.588);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.012 157.816);
  --foreground: oklch(0.986 0.002 157.935);
  --muted: oklch(0.175 0.022 340.41);
  --muted-foreground: oklch(0.687 0.035 339.006);
  --popover: oklch(0.137 0.012 157.816);
  --popover-foreground: oklch(0.986 0.002 157.935);
  --card: oklch(0.152 0.014 157.006);
  --card-foreground: oklch(0.993 0.001 157.96);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.391 0.1 149.874);
  --primary-foreground: oklch(0.892 0.103 155.242);
  --secondary: oklch(0.306 0.112 346.022);
  --secondary-foreground: oklch(0.805 0.111 340.651);
  --accent: oklch(0.306 0.112 346.022);
  --accent-foreground: oklch(0.805 0.111 340.651);
  --destructive: oklch(0.694 0.199 42.744);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.391 0.1 149.874);
  --chart-1: oklch(0.391 0.1 149.874);
  --chart-2: oklch(0.306 0.112 346.022);
  --chart-3: oklch(0.306 0.112 346.022);
  --chart-4: oklch(0.337 0.125 346.272);
  --chart-5: oklch(0.395 0.103 149.588);
}