Alliance for shadcn/ui

Alliance is a shadcn/ui theme built around a deep red primary color (#671825) with deep orange accents (#673318). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#671825) on a neutral background (#080203).

Color palette

TokenLightDark
Background
#ffffffwhite
#080203black
Foreground
#100406black
#ffffffwhite
Card
#ffffffwhite
#080203black
Card foreground
#100406black
#ffffffwhite
Popover
#ffffffwhite
#080203black
Popover foreground
#100406black
#ffffffwhite
Primary
#671825maroon
#671825maroon
Primary foreground
#f0c1c9pink
#f0c1c9pink
Secondary
#67184dpurple
#67184dpurple
Secondary foreground
#f0c1e1thistle
#f0c1e1thistle
Muted
#ecdfe8gainsboro
#20131cblack
Muted foreground
#4c4349darkslategray
#bcb3b9silver
Accent
#673318saddlebrown
#673318saddlebrown
Accent foreground
#f0d1c1peachpuff
#f0d1c1peachpuff
Destructive
#bf4e0dchocolate
#e55e10chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#671825maroon
#671825maroon

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button7.57:1AAA
Secondary button7.37:1AAA
Muted text7.38:1AAA
Accent7.08:1AAA
Destructive4.86:1AA
Dark mode
Text on background20.56:1AAA
Text on card20.56:1AAA
Primary button7.57:1AAA
Secondary button7.37:1AAA
Muted text8.78:1AAA
Accent7.08:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.133 0.025 7.256);
  --muted: oklch(0.917 0.018 337.654);
  --muted-foreground: oklch(0.394 0.015 338.008);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.133 0.025 7.256);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.133 0.025 7.256);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.347 0.111 15.893);
  --primary-foreground: oklch(0.855 0.055 7.091);
  --secondary: oklch(0.361 0.126 344.368);
  --secondary-foreground: oklch(0.862 0.068 338.777);
  --accent: oklch(0.384 0.085 45.467);
  --accent-foreground: oklch(0.883 0.042 48.227);
  --destructive: oklch(0.565 0.159 43.872);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.347 0.111 15.893);
  --chart-1: oklch(0.347 0.111 15.893);
  --chart-2: oklch(0.361 0.126 344.368);
  --chart-3: oklch(0.384 0.085 45.467);
  --chart-4: oklch(0.39 0.137 344.503);
  --chart-5: oklch(0.349 0.115 16.529);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.104 0.018 6.044);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.208 0.026 339.618);
  --muted-foreground: oklch(0.777 0.013 337.587);
  --popover: oklch(0.104 0.018 6.044);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.104 0.018 6.044);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.347 0.111 15.893);
  --primary-foreground: oklch(0.855 0.055 7.091);
  --secondary: oklch(0.361 0.126 344.368);
  --secondary-foreground: oklch(0.862 0.068 338.777);
  --accent: oklch(0.384 0.085 45.467);
  --accent-foreground: oklch(0.883 0.042 48.227);
  --destructive: oklch(0.646 0.184 43.532);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.347 0.111 15.893);
  --chart-1: oklch(0.347 0.111 15.893);
  --chart-2: oklch(0.361 0.126 344.368);
  --chart-3: oklch(0.384 0.085 45.467);
  --chart-4: oklch(0.39 0.137 344.503);
  --chart-5: oklch(0.349 0.115 16.529);
}