Solution for shadcn/ui

Solution is a shadcn/ui theme built around a muted cyan primary color (#7a9294) with muted green accents (#92947a). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted cyan primary (#7a9294) on a neutral background (#020808).

Color palette

TokenLightDark
Background
#ffffffwhite
#020808black
Foreground
#010404black
#f8fbfbghostwhite
Card
#ffffffwhite
#020808black
Card foreground
#010404black
#f8fbfbghostwhite
Popover
#ffffffwhite
#020808black
Popover foreground
#010404black
#f8fbfbghostwhite
Primary
#7a9294lightslategray
#7a9294lightslategray
Primary foreground
#000000black
#000000black
Secondary
#947a92gray
#947a92gray
Secondary foreground
#000000black
#000000black
Muted
#f5f0f4whitesmoke
#0f0a0fblack
Muted foreground
#6a6269dimgray
#9d959cdarkgray
Accent
#92947agray
#92947agray
Accent foreground
#000000black
#000000black
Destructive
#d83103orangered
#fb4918orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7a9294lightslategray
#7a9294lightslategray

Contrast

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

Light mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button6.37:1AA
Secondary button5.46:1AA
Muted text5.22:1AA
Accent6.76:1AA
Destructive4.80:1AA
Dark mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button6.37:1AA
Secondary button5.46:1AA
Muted text6.72:1AA
Accent6.76:1AA
Destructive3.44:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.1 0.013 200.571);
  --muted: oklch(0.96 0.007 328.144);
  --muted-foreground: oklch(0.506 0.015 328.378);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.1 0.013 200.571);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.1 0.013 200.571);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.642 0.028 203.25);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.612 0.048 328.843);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.658 0.038 111.301);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.576 0.207 33.639);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.642 0.028 203.25);
  --chart-1: oklch(0.642 0.028 203.25);
  --chart-2: oklch(0.612 0.048 328.843);
  --chart-3: oklch(0.658 0.038 111.301);
  --chart-4: oklch(0.638 0.044 328.76);
  --chart-5: oklch(0.648 0.035 203.196);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.014 200.976);
  --foreground: oklch(0.987 0.003 203.552);
  --muted: oklch(0.155 0.012 328.82);
  --muted-foreground: oklch(0.679 0.014 328.283);
  --popover: oklch(0.124 0.014 200.976);
  --popover-foreground: oklch(0.987 0.003 203.552);
  --card: oklch(0.124 0.014 200.976);
  --card-foreground: oklch(0.987 0.003 203.552);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.642 0.028 203.25);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.612 0.048 328.843);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.658 0.038 111.301);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.659 0.221 34.791);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.642 0.028 203.25);
  --chart-1: oklch(0.642 0.028 203.25);
  --chart-2: oklch(0.612 0.048 328.843);
  --chart-3: oklch(0.658 0.038 111.301);
  --chart-4: oklch(0.638 0.044 328.76);
  --chart-5: oklch(0.648 0.035 203.196);
}