Lovable for shadcn/ui

Lovable is a shadcn/ui theme built around a muted blue primary color (#7b8b9d) with muted green accents (#8b9d7b). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#7b8b9d) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#000000black
#ffffffwhite
Primary
#7b8b9dlightslategray
#7b8b9dlightslategray
Primary foreground
#000000black
#000000black
Secondary
#9d7b8bgray
#9d7b8bgray
Secondary foreground
#000000black
#000000black
Muted
#ece9ealinen
#161314black
Muted foreground
#4b494adarkslategray
#b6b4b5silver
Accent
#8b9d7bgray
#8b9d7bgray
Accent foreground
#000000black
#000000black
Destructive
#77260dsaddlebrown
#e85b30chocolate
Destructive foreground
#f8ccbfpeachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7b8b9dlightslategray
#7b8b9dlightslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button5.99:1AA
Secondary button5.64:1AA
Muted text7.40:1AAA
Accent7.23:1AAA
Destructive6.93:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button5.99:1AA
Secondary button5.64:1AA
Muted text8.97:1AAA
Accent7.23:1AAA
Destructive5.98:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.937 0.005 347.944);
  --muted-foreground: oklch(0.408 0.002 347.963);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.629 0.034 253.527);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.621 0.048 349.813);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.673 0.054 131.225);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.39 0.119 36.522);
  --destructive-foreground: oklch(0.88 0.053 37.592);
  --ring: oklch(0.629 0.034 253.527);
  --chart-1: oklch(0.629 0.034 253.527);
  --chart-2: oklch(0.621 0.048 349.813);
  --chart-3: oklch(0.673 0.054 131.225);
  --chart-4: oklch(0.647 0.044 349.59);
  --chart-5: oklch(0.627 0.041 253.58);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.19 0.007 348.766);
  --muted-foreground: oklch(0.772 0.002 347.88);
  --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.629 0.034 253.527);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.621 0.048 349.813);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.673 0.054 131.225);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.649 0.184 37.028);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.629 0.034 253.527);
  --chart-1: oklch(0.629 0.034 253.527);
  --chart-2: oklch(0.621 0.048 349.813);
  --chart-3: oklch(0.673 0.054 131.225);
  --chart-4: oklch(0.647 0.044 349.59);
  --chart-5: oklch(0.627 0.041 253.58);
}