Argument for shadcn/ui

Argument is a shadcn/ui theme built around a blue primary color (#1c618d) with muted light blue accents (#c2cbd0). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#1c618d) on a blue-tinted background (#070b0e).

Color palette

TokenLightDark
Background
#ffffffwhite
#070b0eblack
Foreground
#03090cblack
#f5f8fawhitesmoke
Card
#fcfcfcsnow
#080e11black
Card foreground
#020608black
#f8fafcghostwhite
Popover
#ffffffwhite
#070b0eblack
Popover foreground
#03090cblack
#f5f8fawhitesmoke
Primary
#1c618dteal
#1c618dteal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#dddedfgainsboro
#2e3438darkslategray
Secondary foreground
#424548darkslategray
#c7cdd1lightgrey
Muted
#e3ecf3lavender
#0c161cblack
Muted foreground
#3c4449darkslategray
#b6bec3silver
Accent
#c2cbd0lightgrey
#38454ddarkslategray
Accent foreground
#2a3237darkslategray
#d6dde1gainsboro
Destructive
#b93713firebrick
#ea5b34tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1c618dteal
#1c618dteal

Contrast

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

Light mode
Text on background20.03:1AAA
Text on card19.90:1AAA
Primary button6.66:1AA
Secondary button7.16:1AAA
Muted text8.31:1AAA
Accent7.93:1AAA
Destructive5.81:1AA
Dark mode
Text on background18.52:1AAA
Text on card18.57:1AAA
Primary button6.66:1AA
Secondary button7.84:1AAA
Muted text9.68:1AAA
Accent7.21:1AAA
Destructive6.04:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.132 0.015 228.259);
  --muted: oklch(0.939 0.013 234.713);
  --muted-foreground: oklch(0.381 0.014 235.062);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.132 0.015 228.259);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.115 0.013 227.388);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.473 0.097 241.118);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.9 0.002 234.542);
  --secondary-foreground: oklch(0.39 0.006 234.721);
  --accent: oklch(0.837 0.012 234.715);
  --accent-foreground: oklch(0.311 0.014 235.197);
  --destructive: oklch(0.527 0.172 35.157);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.473 0.097 241.118);
  --chart-1: oklch(0.473 0.097 241.118);
  --chart-2: oklch(0.9 0.002 234.542);
  --chart-3: oklch(0.837 0.012 234.715);
  --chart-4: oklch(0.923 0.002 234.533);
  --chart-5: oklch(0.475 0.1 241.573);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.01 233.299);
  --foreground: oklch(0.977 0.004 234.566);
  --muted: oklch(0.195 0.019 236.334);
  --muted-foreground: oklch(0.797 0.012 234.717);
  --popover: oklch(0.146 0.01 233.299);
  --popover-foreground: oklch(0.977 0.004 234.566);
  --card: oklch(0.158 0.011 235.303);
  --card-foreground: oklch(0.985 0.003 234.546);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.473 0.097 241.118);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.321 0.01 234.976);
  --secondary-foreground: oklch(0.845 0.008 234.641);
  --accent: oklch(0.381 0.022 235.44);
  --accent-foreground: oklch(0.892 0.01 234.663);
  --destructive: oklch(0.652 0.185 36.074);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.473 0.097 241.118);
  --chart-1: oklch(0.473 0.097 241.118);
  --chart-2: oklch(0.321 0.01 234.976);
  --chart-3: oklch(0.381 0.022 235.44);
  --chart-4: oklch(0.351 0.011 234.991);
  --chart-5: oklch(0.475 0.1 241.573);
}