Building with AI
Export to Lovable
Subframe generates React code for your designs which you can export directly to Lovable, Bolt, Replit, or Cursor to speed up development.
Lovable offers a bit less code flexibility than some of their competitors, so we leverage their Github integration to set up Subframe.
Start your Lovable project
- In Lovable, start a new project using this prompt: “A simple hello world app using react, typescript, and tailwind”.
- Connect your Lovable project to Github.
Install Subframe
- Clone the repo for your Lovable project locally and make sure you are able to run the project. There will be instructions in the Readme on Github:
git clone ...
- Complete the Subframe installation.
- Make sure you install fonts.
- Commit your changes and push them up to Github.
Develop in Lovable
- Copy / paste the code for your pages from Subframe into the Lovable chat.
- Develop your normally by chatting with AI in Lovable.
Adding new components or updating your theme
- Sync from Subframe again locally.
- Commit the changes after you sync and push it back up to your Github repo. This will be synced backed to Lovable immediately.