United for shadcn/ui

United is a shadcn/ui theme built around a vivid light green primary color (#e6f7b1) with muted light green accents (#dee1d6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light green primary (#e6f7b1) on a neutral background (#060703).

Color palette

TokenLightDark
Background
#ffffffwhite
#060703black
Foreground
#111505black
#f8f9f6whitesmoke
Card
#fcfcfcsnow
#090b05black
Card foreground
#0e1104black
#fbfbf9snow
Popover
#fcfcfcsnow
#090b05black
Popover foreground
#0e1104black
#fbfbf9snow
Primary
#e6f7b1palegoldenrod
#e6f7b1palegoldenrod
Primary foreground
#0b0e01black
#0b0e01black
Secondary
#dee1d6gainsboro
#2e2e2ddarkslategray
Secondary foreground
#484c38darkslategray
#c7c7c6silver
Muted
#ecf0e0beige
#1b1f0fblack
Muted foreground
#6a6d5fdimgray
#9da092darkgray
Accent
#dee1d6gainsboro
#2e2e2ddarkslategray
Accent foreground
#484c38darkslategray
#c7c7c6silver
Destructive
#e42b01orangered
#e42b01orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e6f7b1palegoldenrod
#e6f7b1palegoldenrod

Contrast

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

Light mode
Text on background18.53:1AAA
Text on card18.66:1AAA
Primary button16.96:1AAA
Secondary button6.68:1AA
Muted text4.56:1AA
Accent6.68:1AA
Destructive4.51:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.10:1AAA
Primary button16.96:1AAA
Secondary button7.99:1AAA
Muted text6.31:1AA
Accent7.99:1AAA
Destructive4.51:1AA

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.185 0.031 119.739);
  --muted: oklch(0.948 0.021 117.478);
  --muted-foreground: oklch(0.528 0.022 117.834);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.168 0.027 119.028);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.168 0.027 119.028);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.947 0.092 118.861);
  --primary-foreground: oklch(0.155 0.031 118.35);
  --secondary: oklch(0.904 0.015 117.37);
  --secondary-foreground: oklch(0.407 0.032 118.528);
  --accent: oklch(0.904 0.015 117.37);
  --accent-foreground: oklch(0.407 0.032 118.528);
  --destructive: oklch(0.593 0.223 32.291);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.947 0.092 118.861);
  --chart-1: oklch(0.947 0.092 118.861);
  --chart-2: oklch(0.904 0.015 117.37);
  --chart-3: oklch(0.904 0.015 117.37);
  --chart-4: oklch(0.925 0.011 117.301);
  --chart-5: oklch(0.95 0.095 118.919);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.014 117.32);
  --foreground: oklch(0.981 0.005 117.169);
  --muted: oklch(0.229 0.029 119.411);
  --muted-foreground: oklch(0.699 0.021 117.611);
  --popover: oklch(0.144 0.016 117.391);
  --popover-foreground: oklch(0.987 0.003 117.139);
  --card: oklch(0.144 0.016 117.391);
  --card-foreground: oklch(0.987 0.003 117.139);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.947 0.092 118.861);
  --primary-foreground: oklch(0.155 0.031 118.35);
  --secondary: oklch(0.302 0.002 117.177);
  --secondary-foreground: oklch(0.831 0.002 117.113);
  --accent: oklch(0.302 0.002 117.177);
  --accent-foreground: oklch(0.831 0.002 117.113);
  --destructive: oklch(0.593 0.223 32.291);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.947 0.092 118.861);
  --chart-1: oklch(0.947 0.092 118.861);
  --chart-2: oklch(0.302 0.002 117.177);
  --chart-3: oklch(0.302 0.002 117.177);
  --chart-4: oklch(0.333 0.002 117.181);
  --chart-5: oklch(0.95 0.095 118.919);
}