Favorite for shadcn/ui

Favorite is a shadcn/ui theme built around a neutral gray primary color (#6c7475) with neutral gray accents (#756c6c). The light mode uses a neutral background (#f7fdfd). Dark mode keeps the neutral gray primary (#6c7475) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f7fdfdmintcream
#000000black
Foreground
#000000black
#ffffffwhite
Card
#f7fdfdmintcream
#000000black
Card foreground
#000000black
#ffffffwhite
Popover
#f7fdfdmintcream
#000000black
Popover foreground
#000000black
#ffffffwhite
Primary
#6c7475dimgray
#6c7475dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#756c6cdimgray
#756c6cdimgray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ede3e3mistyrose
#1c1212black
Muted foreground
#585151dimgray
#aea8a7darkgray
Accent
#756c6cdimgray
#756c6cdimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#692907saddlebrown
#ee5e11chocolate
Destructive foreground
#f9c5a9navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6c7475dimgray
#6c7475dimgray

Contrast

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

Light mode
Text on background20.41:1AAA
Text on card20.41:1AAA
Primary button4.76:1AA
Secondary button5.10:1AA
Muted text6.16:1AA
Accent5.10:1AA
Destructive7.05:1AAA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button4.76:1AA
Secondary button5.10:1AA
Muted text7.82:1AAA
Accent5.10:1AA
Destructive6.26:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 199.511);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.924 0.011 19.776);
  --muted-foreground: oklch(0.441 0.009 19.884);
  --popover: oklch(0.989 0.007 199.511);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.989 0.007 199.511);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.553 0.01 199.353);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.539 0.011 19.895);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.539 0.011 19.895);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.369 0.101 44.032);
  --destructive-foreground: oklch(0.863 0.071 49.7);
  --ring: oklch(0.553 0.01 199.353);
  --chart-1: oklch(0.553 0.01 199.353);
  --chart-2: oklch(0.539 0.011 19.895);
  --chart-3: oklch(0.539 0.011 19.895);
  --chart-4: oklch(0.565 0.012 19.897);
  --chart-5: oklch(0.559 0.018 199.186);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.196 0.017 20.996);
  --muted-foreground: oklch(0.736 0.008 19.749);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.553 0.01 199.353);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.539 0.011 19.895);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.539 0.011 19.895);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.661 0.193 42.207);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.553 0.01 199.353);
  --chart-1: oklch(0.553 0.01 199.353);
  --chart-2: oklch(0.539 0.011 19.895);
  --chart-3: oklch(0.539 0.011 19.895);
  --chart-4: oklch(0.565 0.012 19.897);
  --chart-5: oklch(0.559 0.018 199.186);
}