Lovable for shadcn/ui

Lovable is a shadcn/ui theme built around a vivid deep orange primary color (#693a07) with vivid deep blue accents (#073669). The light mode uses a neutral background (#fefdfb). Dark mode keeps the vivid deep orange primary (#693a07) on a neutral background (#040301).

Color palette

TokenLightDark
Background
#fefdfbsnow
#040301black
Foreground
#140d06black
#f8f7f6whitesmoke
Card
#fefdfbsnow
#040301black
Card foreground
#140d06black
#f8f7f6whitesmoke
Popover
#fefdfbsnow
#040301black
Popover foreground
#140d06black
#f8f7f6whitesmoke
Primary
#693a07saddlebrown
#693a07saddlebrown
Primary foreground
#f9d2a9navajowhite
#f9d2a9navajowhite
Secondary
#073669midnightblue
#073669midnightblue
Secondary foreground
#a9d0f9lightblue
#a9d0f9lightblue
Muted
#dce3eagainsboro
#151c23black
Muted foreground
#45474adarkslategray
#b5b8basilver
Accent
#073669midnightblue
#073669midnightblue
Accent foreground
#a9d0f9lightblue
#a9d0f9lightblue
Destructive
#9b2c03saddlebrown
#f54505orangered
Destructive foreground
#feded2blanchedalmond
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#693a07saddlebrown
#693a07saddlebrown

Contrast

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

Light mode
Text on background18.89:1AAA
Text on card18.89:1AAA
Primary button6.72:1AA
Secondary button7.47:1AAA
Muted text7.18:1AAA
Accent7.47:1AAA
Destructive6.03:1AA
Dark mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button6.72:1AA
Secondary button7.47:1AAA
Muted text8.62:1AAA
Accent7.47:1AAA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 69.623);
  --foreground: oklch(0.166 0.02 70.373);
  --muted: oklch(0.912 0.012 249.775);
  --muted-foreground: oklch(0.398 0.005 249.758);
  --popover: oklch(0.993 0.003 69.623);
  --popover-foreground: oklch(0.166 0.02 70.373);
  --card: oklch(0.993 0.003 69.623);
  --card-foreground: oklch(0.166 0.02 70.373);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.398 0.089 60.116);
  --primary-foreground: oklch(0.888 0.069 68.618);
  --secondary: oklch(0.336 0.1 254.46);
  --secondary-foreground: oklch(0.843 0.071 250.379);
  --accent: oklch(0.336 0.1 254.46);
  --accent-foreground: oklch(0.843 0.071 250.379);
  --destructive: oklch(0.461 0.153 36.634);
  --destructive-foreground: oklch(0.924 0.039 41.039);
  --ring: oklch(0.398 0.089 60.116);
  --chart-1: oklch(0.398 0.089 60.116);
  --chart-2: oklch(0.336 0.1 254.46);
  --chart-3: oklch(0.336 0.1 254.46);
  --chart-4: oklch(0.366 0.111 254.711);
  --chart-5: oklch(0.401 0.091 59.591);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.095 0.011 77.869);
  --foreground: oklch(0.978 0.002 69.633);
  --muted: oklch(0.222 0.017 250.327);
  --muted-foreground: oklch(0.78 0.004 249.697);
  --popover: oklch(0.095 0.011 77.869);
  --popover-foreground: oklch(0.978 0.002 69.633);
  --card: oklch(0.095 0.011 77.869);
  --card-foreground: oklch(0.978 0.002 69.633);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.398 0.089 60.116);
  --primary-foreground: oklch(0.888 0.069 68.618);
  --secondary: oklch(0.336 0.1 254.46);
  --secondary-foreground: oklch(0.843 0.071 250.379);
  --accent: oklch(0.336 0.1 254.46);
  --accent-foreground: oklch(0.843 0.071 250.379);
  --destructive: oklch(0.643 0.22 35.714);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.398 0.089 60.116);
  --chart-1: oklch(0.398 0.089 60.116);
  --chart-2: oklch(0.336 0.1 254.46);
  --chart-3: oklch(0.336 0.1 254.46);
  --chart-4: oklch(0.366 0.111 254.711);
  --chart-5: oklch(0.401 0.091 59.591);
}