Dearest for shadcn/ui

Dearest is a shadcn/ui theme built around a muted light teal primary color (#e3eeeb) with muted light red accents (#eee3e5). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the muted light teal primary (#e3eeeb) on a neutral background (#040706).

Color palette

TokenLightDark
Background
#f7fdfbmintcream
#040706black
Foreground
#000000black
#f9fbfamintcream
Card
#f3fcfamintcream
#050a09black
Card foreground
#000000black
#fcfdfdwhite
Popover
#f3fcfamintcream
#050a09black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#e3eeeblavender
#e3eeeblavender
Primary foreground
#15231fblack
#15231fblack
Secondary
#eee3e5mistyrose
#eee3e5mistyrose
Secondary foreground
#623c46darkolivegreen
#623c46darkolivegreen
Muted
#f2e9eblinen
#160d10black
Muted foreground
#696364dimgray
#9c9697darkgray
Accent
#eee3e5mistyrose
#eee3e5mistyrose
Accent foreground
#623c46darkolivegreen
#623c46darkolivegreen
Destructive
#be3f04firebrick
#f04f05orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e3eeeblavender
#e3eeeblavender

Contrast

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

Light mode
Text on background20.40:1AAA
Text on card20.10:1AAA
Primary button13.64:1AAA
Secondary button7.40:1AAA
Muted text4.92:1AA
Accent7.40:1AAA
Destructive5.39:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.55:1AAA
Primary button13.64:1AAA
Secondary button7.40:1AAA
Muted text6.55:1AA
Accent7.40:1AAA
Destructive3.60:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 179.664);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.94 0.01 0.18);
  --muted-foreground: oklch(0.506 0.008 0.315);
  --popover: oklch(0.984 0.01 179.561);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.01 179.561);
  --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.939 0.012 179.49);
  --primary-foreground: oklch(0.242 0.02 177.258);
  --secondary: oklch(0.924 0.013 0.247);
  --secondary-foreground: oklch(0.404 0.055 3.573);
  --accent: oklch(0.924 0.013 0.247);
  --accent-foreground: oklch(0.404 0.055 3.573);
  --destructive: oklch(0.544 0.172 38.969);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.939 0.012 179.49);
  --chart-1: oklch(0.939 0.012 179.49);
  --chart-2: oklch(0.924 0.013 0.247);
  --chart-3: oklch(0.924 0.013 0.247);
  --chart-4: oklch(0.949 0.008 0.111);
  --chart-5: oklch(0.94 0.014 179.443);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.008 179.894);
  --foreground: oklch(0.986 0.001 179.824);
  --muted: oklch(0.174 0.017 2.45);
  --muted-foreground: oklch(0.679 0.008 0.177);
  --popover: oklch(0.138 0.009 179.894);
  --popover-foreground: oklch(0.993 0.001 179.845);
  --card: oklch(0.138 0.009 179.894);
  --card-foreground: oklch(0.993 0.001 179.845);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.939 0.012 179.49);
  --primary-foreground: oklch(0.242 0.02 177.258);
  --secondary: oklch(0.924 0.013 0.247);
  --secondary-foreground: oklch(0.404 0.055 3.573);
  --accent: oklch(0.924 0.013 0.247);
  --accent-foreground: oklch(0.404 0.055 3.573);
  --destructive: oklch(0.645 0.207 38.469);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.939 0.012 179.49);
  --chart-1: oklch(0.939 0.012 179.49);
  --chart-2: oklch(0.924 0.013 0.247);
  --chart-3: oklch(0.924 0.013 0.247);
  --chart-4: oklch(0.949 0.008 0.111);
  --chart-5: oklch(0.94 0.014 179.443);
}