Dearest for shadcn/ui

Dearest is a shadcn/ui theme built around a near-black primary color (#06080a) with near-black accents (#06060a). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the near-black primary (#06080a) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#fbfdfewhite
#030507black
Foreground
#000000black
#fcfcfdwhite
Card
#fbfdfewhite
#030507black
Card foreground
#000000black
#fcfcfdwhite
Popover
#fbfdfewhite
#030507black
Popover foreground
#000000black
#fcfcfdwhite
Primary
#06080ablack
#06080ablack
Primary foreground
#87a1badarkgray
#87a1badarkgray
Secondary
#060a0ablack
#060a0ablack
Secondary foreground
#87bab9mediumaquamarine
#87bab9mediumaquamarine
Muted
#e2e9e9lavender
#161d1dblack
Muted foreground
#515857dimgray
#a7aeaedarkgray
Accent
#06060ablack
#06060ablack
Accent foreground
#8788balightslategray
#8788balightslategray
Destructive
#c24b14chocolate
#de5617chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#06080ablack
#06080ablack

Contrast

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

Light mode
Text on background20.51:1AAA
Text on card20.51:1AAA
Primary button7.49:1AAA
Secondary button9.25:1AAA
Muted text5.91:1AA
Accent6.04:1AA
Destructive4.86:1AA
Dark mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button7.49:1AAA
Secondary button9.25:1AAA
Muted text7.59:1AAA
Accent6.04:1AA
Destructive3.86: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.992 0.003 246);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.928 0.007 195.84);
  --muted-foreground: oklch(0.453 0.009 195.647);
  --popover: oklch(0.992 0.003 246);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0.003 246);
  --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.131 0.007 242.182);
  --primary-foreground: oklch(0.699 0.047 246.734);
  --secondary: oklch(0.138 0.008 195.167);
  --secondary-foreground: oklch(0.753 0.053 194.778);
  --accent: oklch(0.122 0.011 283.777);
  --accent-foreground: oklch(0.645 0.075 283.35);
  --destructive: oklch(0.566 0.164 41.102);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.131 0.007 242.182);
  --chart-1: oklch(0.131 0.007 242.182);
  --chart-2: oklch(0.138 0.008 195.167);
  --chart-3: oklch(0.122 0.011 283.777);
  --chart-4: oklch(0.18 0.012 194.811);
  --chart-5: oklch(0.131 0.007 241.764);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.114 0.007 241.207);
  --foreground: oklch(0.992 0.001 245.978);
  --muted: oklch(0.223 0.01 195.226);
  --muted-foreground: oklch(0.746 0.008 195.796);
  --popover: oklch(0.114 0.007 241.207);
  --popover-foreground: oklch(0.992 0.001 245.978);
  --card: oklch(0.114 0.007 241.207);
  --card-foreground: oklch(0.992 0.001 245.978);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.131 0.007 242.182);
  --primary-foreground: oklch(0.699 0.047 246.734);
  --secondary: oklch(0.138 0.008 195.167);
  --secondary-foreground: oklch(0.753 0.053 194.778);
  --accent: oklch(0.122 0.011 283.777);
  --accent-foreground: oklch(0.645 0.075 283.35);
  --destructive: oklch(0.624 0.182 40.92);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.131 0.007 242.182);
  --chart-1: oklch(0.131 0.007 242.182);
  --chart-2: oklch(0.138 0.008 195.167);
  --chart-3: oklch(0.122 0.011 283.777);
  --chart-4: oklch(0.18 0.012 194.811);
  --chart-5: oklch(0.131 0.007 241.764);
}