Lonely for shadcn/ui

Lonely is a shadcn/ui theme built around a vivid pink primary color (#f934a4) with vivid red accents (#f93441). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the vivid pink primary (#f934a4) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8fasnow
#000000black
Foreground
#080205black
#fdfcfdwhite
Card
#fbf4f8lavenderblush
#030303black
Card foreground
#040103black
#ffffffwhite
Popover
#fbf4f8lavenderblush
#030303black
Popover foreground
#040103black
#ffffffwhite
Primary
#f934a4deeppink
#f934a4deeppink
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ec34f9magenta
#ec34f9magenta
Secondary foreground
#000000black
#000000black
Muted
#f4f0f4whitesmoke
#0e0b0fblack
Muted foreground
#575158dimgray
#aea7aedarkgray
Accent
#f93441crimson
#f93441crimson
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#99190bdarkred
#f03c28orangered
Destructive foreground
#fcdcd9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f934a4deeppink
#f934a4deeppink

Contrast

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

Light mode
Text on background19.49:1AAA
Text on card19.17:1AAA
Primary button3.47:1AA Large
Secondary button6.41:1AA
Muted text6.85:1AA
Accent3.75:1AA Large
Destructive6.58:1AA
Dark mode
Text on background20.51:1AAA
Text on card20.67:1AAA
Primary button3.47:1AA Large
Secondary button6.41:1AA
Muted text8.32:1AAA
Accent3.75:1AA Large
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 341.949);
  --foreground: oklch(0.106 0.022 341.832);
  --muted: oklch(0.96 0.006 323.67);
  --muted-foreground: oklch(0.443 0.013 323.793);
  --popover: oklch(0.973 0.009 342.022);
  --popover-foreground: oklch(0.084 0.017 341.832);
  --card: oklch(0.973 0.009 342.022);
  --card-foreground: oklch(0.084 0.017 341.832);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.664 0.245 351.777);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.685 0.29 325.057);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.64 0.229 23.732);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.44 0.164 30.519);
  --destructive-foreground: oklch(0.921 0.036 25.354);
  --ring: oklch(0.664 0.245 351.777);
  --chart-1: oklch(0.664 0.245 351.777);
  --chart-2: oklch(0.685 0.29 325.057);
  --chart-3: oklch(0.64 0.229 23.732);
  --chart-4: oklch(0.698 0.278 325.077);
  --chart-5: oklch(0.668 0.25 352.118);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.992 0.002 341.851);
  --muted: oklch(0.155 0.01 323.961);
  --muted-foreground: oklch(0.737 0.012 323.719);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.664 0.245 351.777);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.685 0.29 325.057);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.64 0.229 23.732);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.629 0.218 30.37);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.664 0.245 351.777);
  --chart-1: oklch(0.664 0.245 351.777);
  --chart-2: oklch(0.685 0.29 325.057);
  --chart-3: oklch(0.64 0.229 23.732);
  --chart-4: oklch(0.698 0.278 325.077);
  --chart-5: oklch(0.668 0.25 352.118);
}