Unhappy for shadcn/ui

Unhappy is a shadcn/ui theme built around a muted light teal primary color (#b7d2d0) with muted light teal accents (#bacfcd). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light teal primary (#b7d2d0) on a neutral background (#040706).

Color palette

TokenLightDark
Background
#ffffffwhite
#040706black
Foreground
#020908black
#ffffffwhite
Card
#fcfcfcsnow
#050a0ablack
Card foreground
#010404black
#ffffffwhite
Popover
#ffffffwhite
#040706black
Popover foreground
#020908black
#ffffffwhite
Primary
#b7d2d0lightsteelblue
#b7d2d0lightsteelblue
Primary foreground
#213534darkslategray
#213534darkslategray
Secondary
#cbd7d6lightgrey
#131b1ablack
Secondary foreground
#313f3edarkslategray
#a2bebcdarkgray
Muted
#d6e1e0gainsboro
#1e2928darkslategray
Muted foreground
#43514fdarkslategray
#aebcbbsilver
Accent
#bacfcdsilver
#203735darkslategray
Accent foreground
#243332darkslategray
#b5d4d2lightsteelblue
Destructive
#c34b13chocolate
#ec743ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b7d2d0lightsteelblue
#b7d2d0lightsteelblue

Contrast

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

Light mode
Text on background20.09:1AAA
Text on card20.13:1AAA
Primary button8.08:1AAA
Secondary button7.45:1AAA
Muted text6.20:1AA
Accent8.07:1AAA
Destructive4.84:1AA
Dark mode
Text on background20.26:1AAA
Text on card19.91:1AAA
Primary button8.08:1AAA
Secondary button8.85:1AAA
Muted text7.59:1AAA
Accent8.02:1AAA
Destructive7.10:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.127 0.017 190.219);
  --muted: oklch(0.901 0.012 190.95);
  --muted-foreground: oklch(0.422 0.017 190.361);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.127 0.017 190.219);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.101 0.013 190.219);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.843 0.029 190.49);
  --primary-foreground: oklch(0.313 0.026 189.358);
  --secondary: oklch(0.87 0.013 190.923);
  --secondary-foreground: oklch(0.356 0.019 190.056);
  --accent: oklch(0.838 0.023 190.648);
  --accent-foreground: oklch(0.307 0.021 189.727);
  --destructive: oklch(0.568 0.166 40.949);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.843 0.029 190.49);
  --chart-1: oklch(0.843 0.029 190.49);
  --chart-2: oklch(0.87 0.013 190.923);
  --chart-3: oklch(0.838 0.023 190.648);
  --chart-4: oklch(0.892 0.011 190.985);
  --chart-5: oklch(0.846 0.033 190.396);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.008 190.718);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.272 0.016 189.942);
  --muted-foreground: oklch(0.784 0.015 190.835);
  --popover: oklch(0.121 0.008 190.718);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.009 190.718);
  --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.843 0.029 190.49);
  --primary-foreground: oklch(0.313 0.026 189.358);
  --secondary: oklch(0.214 0.012 189.975);
  --secondary-foreground: oklch(0.78 0.031 190.37);
  --accent: oklch(0.317 0.03 189.076);
  --accent-foreground: oklch(0.847 0.034 190.366);
  --destructive: oklch(0.689 0.164 43.63);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.843 0.029 190.49);
  --chart-1: oklch(0.843 0.029 190.49);
  --chart-2: oklch(0.214 0.012 189.975);
  --chart-3: oklch(0.317 0.03 189.076);
  --chart-4: oklch(0.25 0.016 189.854);
  --chart-5: oklch(0.846 0.033 190.396);
}