Loving for shadcn/ui

Loving is a shadcn/ui theme built around a vivid cyan primary color (#19b3f5) with near-white accents (#e9ebec). The light mode uses a neutral background (#f8fbfc). Dark mode keeps the vivid cyan primary (#19b3f5) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f8fbfcghostwhite
#000000black
Foreground
#030a0dblack
#ffffffwhite
Card
#f4f9fbghostwhite
#030303black
Card foreground
#020609black
#ffffffwhite
Popover
#f8fbfcghostwhite
#000000black
Popover foreground
#030a0dblack
#ffffffwhite
Primary
#19b3f5deepskyblue
#19b3f5deepskyblue
Primary foreground
#032d40midnightblue
#032d40midnightblue
Secondary
#e9ebeclavender
#1b1c1dblack
Secondary foreground
#4c5457darkslategray
#b4b6b7silver
Muted
#d9e7eclavender
#132026black
Muted foreground
#5d5f5fdimgray
#a0a1a2darkgray
Accent
#e9ebeclavender
#1b1c1dblack
Accent foreground
#4c5457darkslategray
#b4b6b7silver
Destructive
#5c1c0amaroon
#e74d23chocolate
Destructive foreground
#f5b5a3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#19b3f5deepskyblue
#19b3f5deepskyblue

Contrast

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

Light mode
Text on background19.14:1AAA
Text on card19.12:1AAA
Primary button6.07:1AA
Secondary button6.48:1AA
Muted text5.07:1AA
Accent6.48:1AA
Destructive7.40:1AAA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button6.07:1AA
Secondary button8.35:1AAA
Muted text6.44:1AA
Accent8.35:1AAA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.985 0.004 225.023);
  --foreground: oklch(0.135 0.017 219.83);
  --muted: oklch(0.919 0.016 225.191);
  --muted-foreground: oklch(0.484 0.002 225.026);
  --popover: oklch(0.985 0.004 225.023);
  --popover-foreground: oklch(0.135 0.017 219.83);
  --card: oklch(0.978 0.005 225.044);
  --card-foreground: oklch(0.118 0.014 218.48);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.725 0.149 234.895);
  --primary-foreground: oklch(0.281 0.055 232.42);
  --secondary: oklch(0.939 0.002 225.011);
  --secondary-foreground: oklch(0.44 0.012 225.31);
  --accent: oklch(0.939 0.002 225.011);
  --accent-foreground: oklch(0.44 0.012 225.31);
  --destructive: oklch(0.325 0.098 35.812);
  --destructive-foreground: oklch(0.827 0.079 36.039);
  --ring: oklch(0.725 0.149 234.895);
  --chart-1: oklch(0.725 0.149 234.895);
  --chart-2: oklch(0.939 0.002 225.011);
  --chart-3: oklch(0.939 0.002 225.011);
  --chart-4: oklch(0.962 0.002 225);
  --chart-5: oklch(0.73 0.152 235.379);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.233 0.022 226.66);
  --muted-foreground: oklch(0.708 0.002 225.01);
  --popover: oklch(0 0 0);
  --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.725 0.149 234.895);
  --primary-foreground: oklch(0.281 0.055 232.42);
  --secondary: oklch(0.227 0.001 225.05);
  --secondary-foreground: oklch(0.774 0.003 225.021);
  --accent: oklch(0.227 0.001 225.05);
  --accent-foreground: oklch(0.774 0.003 225.021);
  --destructive: oklch(0.629 0.197 35.53);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.725 0.149 234.895);
  --chart-1: oklch(0.725 0.149 234.895);
  --chart-2: oklch(0.227 0.001 225.05);
  --chart-3: oklch(0.227 0.001 225.05);
  --chart-4: oklch(0.259 0.002 225.055);
  --chart-5: oklch(0.73 0.152 235.379);
}