Union for shadcn/ui

Union is a shadcn/ui theme built around a vivid deep cyan primary color (#053439) with vivid deep green accents (#343905). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep cyan primary (#053439) on a neutral background (#030708).

Color palette

TokenLightDark
Background
#ffffffwhite
#030708black
Foreground
#051314black
#ffffffwhite
Card
#fcfcfcsnow
#040b0bblack
Card foreground
#040f10black
#ffffffwhite
Popover
#ffffffwhite
#030708black
Popover foreground
#051314black
#ffffffwhite
Primary
#053439darkslategray
#053439darkslategray
Primary foreground
#1ddbeddarkturquoise
#1ddbeddarkturquoise
Secondary
#390534midnightblue
#390534midnightblue
Secondary foreground
#f47beaviolet
#f47beaviolet
Muted
#e7dae6gainsboro
#251824black
Muted foreground
#5d465bdimgray
#b9a2b7darkgray
Accent
#343905darkgreen
#343905darkgreen
Accent foreground
#dbed1dyellow
#dbed1dyellow
Destructive
#b22f0afirebrick
#f25226tomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#053439darkslategray
#053439darkslategray

Contrast

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

Light mode
Text on background18.92:1AAA
Text on card19.00:1AAA
Primary button7.95:1AAA
Secondary button7.14:1AAA
Muted text6.23:1AA
Accent9.34:1AAA
Destructive6.34:1AA
Dark mode
Text on background20.23:1AAA
Text on card19.86:1AAA
Primary button7.95:1AAA
Secondary button7.14:1AAA
Muted text7.21:1AAA
Accent9.34:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.174 0.02 202.78);
  --muted: oklch(0.902 0.022 328.316);
  --muted-foreground: oklch(0.427 0.045 329.108);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.174 0.02 202.78);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.158 0.018 202.32);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.299 0.048 204.323);
  --primary-foreground: oklch(0.816 0.136 205.212);
  --secondary: oklch(0.243 0.1 331.995);
  --secondary-foreground: oklch(0.758 0.198 330.527);
  --accent: oklch(0.328 0.07 114.552);
  --accent-foreground: oklch(0.902 0.2 115.077);
  --destructive: oklch(0.507 0.173 34.529);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.299 0.048 204.323);
  --chart-1: oklch(0.299 0.048 204.323);
  --chart-2: oklch(0.243 0.1 331.995);
  --chart-3: oklch(0.328 0.07 114.552);
  --chart-4: oklch(0.28 0.117 332.156);
  --chart-5: oklch(0.301 0.049 204.407);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.012 201.317);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.231 0.031 329.367);
  --muted-foreground: oklch(0.739 0.039 328.605);
  --popover: oklch(0.123 0.012 201.317);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.14 0.013 201.665);
  --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.299 0.048 204.323);
  --primary-foreground: oklch(0.816 0.136 205.212);
  --secondary: oklch(0.243 0.1 331.995);
  --secondary-foreground: oklch(0.758 0.198 330.527);
  --accent: oklch(0.328 0.07 114.552);
  --accent-foreground: oklch(0.902 0.2 115.077);
  --destructive: oklch(0.654 0.204 35.575);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.299 0.048 204.323);
  --chart-1: oklch(0.299 0.048 204.323);
  --chart-2: oklch(0.243 0.1 331.995);
  --chart-3: oklch(0.328 0.07 114.552);
  --chart-4: oklch(0.28 0.117 332.156);
  --chart-5: oklch(0.301 0.049 204.407);
}