Lovable for shadcn/ui

Lovable is a shadcn/ui theme built around a vivid pink primary color (#f77eba) with vivid red accents (#f77e7e). The light mode uses a neutral background (#fcf8fa). Dark mode keeps the vivid pink primary (#f77eba) on a pink-tinted background (#0f050a).

Color palette

TokenLightDark
Background
#fcf8fasnow
#0f050ablack
Foreground
#040103black
#fcf8fasnow
Card
#fbf4f7lavenderblush
#13070dblack
Card foreground
#000000black
#fdfbfcsnow
Popover
#fbf4f7lavenderblush
#13070dblack
Popover foreground
#000000black
#fdfbfcsnow
Primary
#f77ebahotpink
#f77ebahotpink
Primary foreground
#3e0421black
#3e0421black
Secondary
#f77ef7violet
#f77ef7violet
Secondary foreground
#3e043emidnightblue
#3e043emidnightblue
Muted
#ede3edlavender
#1c121cblack
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#f77e7elightcoral
#f77e7elightcoral
Accent foreground
#3e0404black
#3e0404black
Destructive
#991e0bfirebrick
#f25840tomato
Destructive foreground
#fcded9mistyrose
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f77ebahotpink
#f77ebahotpink

Contrast

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

Light mode
Text on background19.69:1AAA
Text on card19.37:1AAA
Primary button6.92:1AA
Secondary button7.15:1AAA
Muted text6.78:1AA
Accent6.70:1AA
Destructive6.55:1AA
Dark mode
Text on background19.03:1AAA
Text on card19.19:1AAA
Primary button6.92:1AA
Secondary button7.15:1AAA
Muted text8.68:1AAA
Accent6.70:1AA
Destructive6.23:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 345.296);
  --foreground: oklch(0.083 0.019 344.92);
  --muted: oklch(0.927 0.016 325.703);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(0.973 0.009 345.374);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.973 0.009 345.374);
  --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.746 0.162 350.461);
  --primary-foreground: oklch(0.243 0.092 356.228);
  --secondary: oklch(0.77 0.206 327.346);
  --secondary-foreground: oklch(0.26 0.112 328.227);
  --accent: oklch(0.729 0.149 21.388);
  --accent-foreground: oklch(0.235 0.088 27.464);
  --destructive: oklch(0.444 0.161 31.528);
  --destructive-foreground: oklch(0.923 0.035 28.17);
  --ring: oklch(0.746 0.162 350.461);
  --chart-1: oklch(0.746 0.162 350.461);
  --chart-2: oklch(0.77 0.206 327.346);
  --chart-3: oklch(0.729 0.149 21.388);
  --chart-4: oklch(0.791 0.185 327.145);
  --chart-5: oklch(0.746 0.167 350.647);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.137 0.023 346.854);
  --foreground: oklch(0.983 0.005 345.272);
  --muted: oklch(0.2 0.023 326.392);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.149 0.026 348.461);
  --popover-foreground: oklch(0.991 0.002 345.207);
  --card: oklch(0.149 0.026 348.461);
  --card-foreground: oklch(0.991 0.002 345.207);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.746 0.162 350.461);
  --primary-foreground: oklch(0.243 0.092 356.228);
  --secondary: oklch(0.77 0.206 327.346);
  --secondary-foreground: oklch(0.26 0.112 328.227);
  --accent: oklch(0.729 0.149 21.388);
  --accent-foreground: oklch(0.235 0.088 27.464);
  --destructive: oklch(0.662 0.193 31.35);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.746 0.162 350.461);
  --chart-1: oklch(0.746 0.162 350.461);
  --chart-2: oklch(0.77 0.206 327.346);
  --chart-3: oklch(0.729 0.149 21.388);
  --chart-4: oklch(0.791 0.185 327.145);
  --chart-5: oklch(0.746 0.167 350.647);
}