United for shadcn/ui

United is a shadcn/ui theme built around a deep red primary color (#3f2622) with deep cyan accents (#223b3f). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#3f2622) on a red-tinted background (#0c0504).

Color palette

TokenLightDark
Background
#ffffffwhite
#0c0504black
Foreground
#120503black
#f9f6f6whitesmoke
Card
#fcfcfcsnow
#0f0605black
Card foreground
#0d0302black
#fbf9f9snow
Popover
#ffffffwhite
#0c0504black
Popover foreground
#120503black
#f9f6f6whitesmoke
Primary
#3f2622darkslategray
#3f2622darkslategray
Primary foreground
#dabeb9silver
#dabeb9silver
Secondary
#223b3fdarkslategray
#223b3fdarkslategray
Secondary foreground
#b9d5dalightblue
#b9d5dalightblue
Muted
#e2eceelavender
#111b1dblack
Muted foreground
#3c4344darkslategray
#bbc2c3silver
Accent
#223b3fdarkslategray
#223b3fdarkslategray
Accent foreground
#b9d5dalightblue
#b9d5dalightblue
Destructive
#722504maroon
#e44907orangered
Destructive foreground
#fcc3ablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3f2622darkslategray
#3f2622darkslategray

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card19.92:1AAA
Primary button7.98:1AAA
Secondary button7.69:1AAA
Muted text8.42:1AAA
Accent7.69:1AAA
Destructive6.85:1AA
Dark mode
Text on background18.83:1AAA
Text on card19.05:1AAA
Primary button7.98:1AAA
Secondary button7.69:1AAA
Muted text9.68:1AAA
Accent7.69:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.135 0.028 35.605);
  --muted: oklch(0.937 0.011 207.887);
  --muted-foreground: oklch(0.375 0.009 207.853);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.135 0.028 35.605);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.121 0.024 36.484);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.298 0.039 29.153);
  --primary-foreground: oklch(0.823 0.032 28.184);
  --secondary: oklch(0.334 0.032 208.129);
  --secondary-foreground: oklch(0.855 0.03 207.837);
  --accent: oklch(0.334 0.032 208.129);
  --accent-foreground: oklch(0.855 0.03 207.837);
  --destructive: oklch(0.378 0.116 39.632);
  --destructive-foreground: oklch(0.863 0.074 44.308);
  --ring: oklch(0.298 0.039 29.153);
  --chart-1: oklch(0.298 0.039 29.153);
  --chart-2: oklch(0.334 0.032 208.129);
  --chart-3: oklch(0.334 0.032 208.129);
  --chart-4: oklch(0.367 0.036 208.158);
  --chart-5: oklch(0.298 0.043 29.333);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.015 32.785);
  --foreground: oklch(0.976 0.003 27.947);
  --muted: oklch(0.214 0.015 207.904);
  --muted-foreground: oklch(0.809 0.008 207.895);
  --popover: oklch(0.125 0.015 32.785);
  --popover-foreground: oklch(0.976 0.003 27.947);
  --card: oklch(0.138 0.018 32.061);
  --card-foreground: oklch(0.984 0.002 27.943);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.298 0.039 29.153);
  --primary-foreground: oklch(0.823 0.032 28.184);
  --secondary: oklch(0.334 0.032 208.129);
  --secondary-foreground: oklch(0.855 0.03 207.837);
  --accent: oklch(0.334 0.032 208.129);
  --accent-foreground: oklch(0.855 0.03 207.837);
  --destructive: oklch(0.618 0.2 37.862);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.298 0.039 29.153);
  --chart-1: oklch(0.298 0.039 29.153);
  --chart-2: oklch(0.334 0.032 208.129);
  --chart-3: oklch(0.334 0.032 208.129);
  --chart-4: oklch(0.367 0.036 208.158);
  --chart-5: oklch(0.298 0.043 29.333);
}