Lonely for shadcn/ui

Lonely is a shadcn/ui theme built around a vivid cyan primary color (#058d99) with muted light cyan accents (#cdd4d5). The light mode uses a neutral background (#f8fcfc). Dark mode keeps the vivid cyan primary (#058d99) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fcfcmintcream
#000000black
Foreground
#031516black
#ffffffwhite
Card
#f8fcfcmintcream
#000000black
Card foreground
#031516black
#ffffffwhite
Popover
#f8fcfcmintcream
#000000black
Popover foreground
#031516black
#ffffffwhite
Primary
#058d99darkcyan
#058d99darkcyan
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cdd4d5lightgrey
#1a1e1eblack
Secondary foreground
#343c3ddarkslategray
#b0b9basilver
Muted
#cbe5e7gainsboro
#183234darkslategray
Muted foreground
#515b5cdimgray
#a3adaedarkgray
Accent
#cdd4d5lightgrey
#1a1e1eblack
Accent foreground
#343c3ddarkslategray
#b0b9basilver
Destructive
#85120amaroon
#ed2012red
Destructive foreground
#fbcac6pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#058d99darkcyan
#058d99darkcyan

Contrast

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

Light mode
Text on background18.04:1AAA
Text on card18.04:1AAA
Primary button3.97:1AA Large
Secondary button7.52:1AAA
Muted text5.27:1AA
Accent7.52:1AAA
Destructive6.88:1AA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button3.97:1AA Large
Secondary button8.42:1AAA
Muted text5.91:1AA
Accent8.42:1AAA
Destructive4.35: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.987 0.004 203.544);
  --foreground: oklch(0.179 0.025 202.658);
  --muted: oklch(0.902 0.028 203.329);
  --muted-foreground: oklch(0.463 0.012 203.362);
  --popover: oklch(0.987 0.004 203.544);
  --popover-foreground: oklch(0.179 0.025 202.658);
  --card: oklch(0.987 0.004 203.544);
  --card-foreground: oklch(0.179 0.025 202.658);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.588 0.1 205.786);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.865 0.007 203.503);
  --secondary-foreground: oklch(0.348 0.011 203.32);
  --accent: oklch(0.865 0.007 203.503);
  --accent-foreground: oklch(0.348 0.011 203.32);
  --destructive: oklch(0.396 0.149 29.606);
  --destructive-foreground: oklch(0.88 0.056 23.038);
  --ring: oklch(0.588 0.1 205.786);
  --chart-1: oklch(0.588 0.1 205.786);
  --chart-2: oklch(0.865 0.007 203.503);
  --chart-3: oklch(0.865 0.007 203.503);
  --chart-4: oklch(0.888 0.006 203.518);
  --chart-5: oklch(0.594 0.101 205.943);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.298 0.032 203.187);
  --muted-foreground: oklch(0.739 0.011 203.451);
  --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.588 0.1 205.786);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.23 0.005 203.379);
  --secondary-foreground: oklch(0.78 0.011 203.459);
  --accent: oklch(0.23 0.005 203.379);
  --accent-foreground: oklch(0.78 0.011 203.459);
  --destructive: oklch(0.604 0.234 29.736);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.588 0.1 205.786);
  --chart-1: oklch(0.588 0.1 205.786);
  --chart-2: oklch(0.23 0.005 203.379);
  --chart-3: oklch(0.23 0.005 203.379);
  --chart-4: oklch(0.263 0.007 203.366);
  --chart-5: oklch(0.594 0.101 205.943);
}