Loving for shadcn/ui

Loving is a shadcn/ui theme built around a muted deep orange primary color (#252118) with muted deep blue accents (#181d25). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep orange primary (#252118) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#140f06black
#fbfaf9snow
Card
#ffffffwhite
#000000black
Card foreground
#140f06black
#fbfaf9snow
Popover
#ffffffwhite
#000000black
Popover foreground
#140f06black
#fbfaf9snow
Primary
#252118black
#252118black
Primary foreground
#c7bca9silver
#c7bca9silver
Secondary
#181d25black
#181d25black
Secondary foreground
#a9b3c7silver
#a9b3c7silver
Muted
#ecedeewhitesmoke
#111213black
Muted foreground
#505358darkslategray
#a7aaafdarkgray
Accent
#181d25black
#181d25black
Accent foreground
#a9b3c7silver
#a9b3c7silver
Destructive
#c8300efirebrick
#e53710orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#252118black
#252118black

Contrast

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

Light mode
Text on background19.07:1AAA
Text on card19.07:1AAA
Primary button8.58:1AAA
Secondary button8.04:1AAA
Muted text6.58:1AA
Accent8.04:1AAA
Destructive5.39:1AA
Dark mode
Text on background20.14:1AAA
Text on card20.14:1AAA
Primary button8.58:1AAA
Secondary button8.04:1AAA
Muted text8.06:1AAA
Accent8.04:1AAA
Destructive4.30:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.171 0.021 83.874);
  --muted: oklch(0.946 0.002 263.051);
  --muted-foreground: oklch(0.441 0.01 263.002);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.171 0.021 83.874);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.171 0.021 83.874);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.248 0.017 82.893);
  --primary-foreground: oklch(0.799 0.029 83.039);
  --secondary: oklch(0.229 0.018 262.748);
  --secondary-foreground: oklch(0.765 0.03 262.937);
  --accent: oklch(0.229 0.018 262.748);
  --accent-foreground: oklch(0.765 0.03 262.937);
  --destructive: oklch(0.547 0.193 33.178);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.248 0.017 82.893);
  --chart-1: oklch(0.248 0.017 82.893);
  --chart-2: oklch(0.229 0.018 262.748);
  --chart-3: oklch(0.229 0.018 262.748);
  --chart-4: oklch(0.259 0.021 262.716);
  --chart-5: oklch(0.25 0.019 82.821);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.986 0.002 83.057);
  --muted: oklch(0.18 0.003 263.024);
  --muted-foreground: oklch(0.736 0.009 263.031);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.986 0.002 83.057);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.986 0.002 83.057);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.248 0.017 82.893);
  --primary-foreground: oklch(0.799 0.029 83.039);
  --secondary: oklch(0.229 0.018 262.748);
  --secondary-foreground: oklch(0.765 0.03 262.937);
  --accent: oklch(0.229 0.018 262.748);
  --accent-foreground: oklch(0.765 0.03 262.937);
  --destructive: oklch(0.604 0.215 33.086);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.248 0.017 82.893);
  --chart-1: oklch(0.248 0.017 82.893);
  --chart-2: oklch(0.229 0.018 262.748);
  --chart-3: oklch(0.229 0.018 262.748);
  --chart-4: oklch(0.259 0.021 262.716);
  --chart-5: oklch(0.25 0.019 82.821);
}