How to use any website's design in Lovable

Stylepack turns any public website into a design pack: DESIGN.md, BEHAVIOR.md, design tokens, a Tailwind theme and screenshots. Here is how to hand one to Lovable so what it builds looks and behaves like the site you picked.

Steps

The paths below use example.com. On a pack page they name the site you picked.

  1. Paste the site's address into Stylepack and download its pack. Packs in the gallery are ready now.
  2. Unzip the pack.
  3. In a new project, attach DESIGN.md and the desktop and phone fold screenshots to your first message.
  4. Paste the prompt below and fill in what you want built. If the tool asks for a theme, paste the contents of tokens.css.

The prompt

The prompt stays in English: it names the files in the pack, and your AI reads it in any language.

Use the attached design pack files as the visual reference for how the UI looks and behaves. It was extracted from https://example.com/; distinguish measurements from values explicitly marked as inferred or fallback.

1. Read DESIGN.md (colours, type, spacing, radii, shadows, components) and BEHAVIOR.md (hover, focus, tooltips, menus, motion, scrolling, forms, responsive rules, dark mode) before writing any code.
2. Look at the attached desktop and phone screenshots and match the composition, density, whitespace and image treatment. Tokens do not carry those; the screenshots do.
3. Start with the variables in tokens.css (or the Tailwind v4 theme in tailwind.css). Preserve observed values. Resolve inferred roles and fallback values against the screenshots; follow measured component recipes before turning a candidate accent into a filled button. Adapt unmeasured details to the requested content.
4. Load the fonts named in DESIGN.md. Where a font is not freely available, use the stand-in it names at the same sizes and weights.
5. Match the breakpoints and hover, focus and motion rules in BEHAVIOR.md. Build both themes.

Now build: [describe the page or app you want]

When you are done, compare the result with the screenshots at desktop and phone widths, fix the biggest visual difference first, and repeat.

Guides for other tools