First... What does all of this mean?

🤨🤨🤨🤨🤨

Definition
Farcaster A sufficiently decentralized social network
Farcaster Frame An interactive cast on Farcaster with buttons
Warpcast The most popular app used to access Farcaster
Figma A webapp used to create graphic designs
🚂 FrameTrain A webapp used to create Farcaster Frames
Figma Template A FrameTrain template used to create Figma Frames
🤩
With the Figma template, you can have slides containing any image and text you choose, connected by buttons: slideshows, articles, books.

Anything your imagination can come up with, 🚂 FrameTrain allows allows you to do!

What's our goal?

What Frame are we building today, how, and why.

In this tutorial, we're going to take the role of Jaxon Storm. Jaxon interviews a new guest each week on his "The Caster of Pods Show" podcast and wants to cast a Frame to Warpcast for marketing purposes. He wants it to contain the following:

Slide Name Content Buttons
1 Initial Slide Guest, topic & date About the Show
About the Guest
Open Website
2 About the Show Short bio & photo of me Back
3 About the Guest Date, guest, topic & writeup Back

Jaxon hires a designer to create a Figma template representing the above guidelines. Because Jaxon is also a time traveler, the template is done and you can click here to access it and follow along with the tutorial.

The Figma template Jaxon will customize for each week's guest

Step 1.Generating a Figma Personal Access Token (PAT)

The Figma Template needs a Figma Personal Access Token (PAT) in order to retrieve your Figma files. You can think of this as a secret password that the FrameTrain Frames builder needs to give back to Figma to access your designs.

Don't worry, it's really easy to get one:

  1. Create a Figma account if you don't already have one — the free plan will work fine!
  2. Click on your Figma profile picture, then click "Settings"
  3. Scroll down until you see the Personal access tokens section 👇
Creating a token in order to connect FrameTrain to Figma
  1. Click "Generate new token" and fill in a name and expiry date for the token, then click "Generate token"
Set the token as "No expiration" so you don't have to create for each Frame.You can always revoke it!
  1. Copy the token and save it in a safe place — but don't worry if you lose it, you can always generate a new token. You also don't need a new one for each Frame if you selected "No expiration" on the previous step.
You've generated a token in order to build Farcaster Frames with Figma, congrats!

Step 2.Setting up the Figma Frame on FrameTrain

  1. Log into FrameTrain and click on the Figma template.
The Figma template on FrameTrain
  1. Give it a name, then paste your Figma PAT into the box and hit "Save"

Nice, you're ready to start creating slides from your Figma artboards!

Step 3. Creating the "Initial" slide

  1. Open up the sample file in Figma by clicking here, and you should see the following 👇
  1. Right click on the "Initial slide" artboard and choose "Copy link to selection"
  1. Back in FrameTrain, paste the link into the box and click "Load"
  1. We want to edit and customize the contents now, so switch to the "Text Layers" tab by simply tapping on it.
  1. Find the "(Date)" text layer. This layer has been created in Figma, but you can edit it right from inside FrameTrain's Frames editor!
    In the bottom left side of the text box type in the date of the show and then click outside the text box to update the Frame.
  1. The preview will now update to show the new text.
  1. Use the other fields to add a Guest and Topic name and your preview should look like this:
💡
You can use your up and down arrow keys, or the page up/down keys, to quickly navigate through all the text fields
  1. Hmmm... Looks to me like the text is taking up too much space, no? Let's change the font and font size to something more compact.
  1. Don't be scared to play around with the other options!
    You can change the weight of the font, the style (normal or italic), the left/center/right/top/middle/bottom alignment, and ocolor!
⚠️
If you experience errors after changing the font, it's likely that the combination of font, weight and style that you chose is not valid: check here to see if you've used a valid combo.
  1. At this point, your preview slide should look something like like this:

Step 4.Creating the "About" slide

  1. Go back to Figma, right click on the "About" artboard and "Copy selection as link" (see the previous section if you forgot how to do this!).
  2. Return to FrameTrain, and click the "Add New Slide" button, then select the new slide
  1. Type in a title, like "About the Show"
😮
Without a title, you can't link a button to a slide!
  1. Paste in the Figma URL and click "Load". A preview of the slide should appear if you've done everything correctly
  1. Select the "Initial Slide" again, and configure the first button with the Target set to "About", add a caption "About the Show", and then click the checkbox to enable the button:
  1. Take a look at the Frame preview on the left and you should now see an "About the Show" button appear:
An "About the Show" button has now appeared
  1. Test the button by clicking it, and you should see the following:
  1. Congrats! But there's just a small problem... you're stuck here and can't get back to the initial slide! Select the "About the Show" button, then add a button to fix this:
  1. Now the Frame preview should look like this:

Step 5.Create the "Guest" slide

  1. Go to Figma, right click on the "Guest" artboard and click "Copy selection as link" (you should've gotten the hang of it by now, if not see the first section above!).
  2. Return to FrameTrain, add a new slide, and name it "About the Guest".
  3. Paste the Figma URL and click "Load".
  4. Go to the "Text Layers" tab and populate the various layers with whatever Guest details you like.
  1. Select the "Initial slide" again and add a new button pointing to the "Guest" slide, as well as a "Follow" button that goes to a URL of your choice:.
  1. The preview should now look like this 👇
  1. Click the "About the Guest" button and what do we see?
    Ooops! Looks like we need a "Back" button. Can you try adding this one yourself?

Step 6.Publishing, Testing and Casting!

  1. Click the "Publish" button on the top right.
💡
When you edit your Frame, your changes aren't visible to anybody else until you publish them. This matters most after you've already shared your Frame and need to make fixes or enhancements: you can safely work on your Frame without worrying about anybody seeing your work until you're ready!
  1. Now click the "URL" button right next to it. The link to your newly created Frame has been copied to the clipboard. You can now paste it anywhere you want.
  1. Go to the Warpcast Frames testing tool and paste in your URL, then click the refresh button.
  1. Test out your Frame — if there are issues, go back to FrameTrain and make your changes, then click "Publish" again.
  2. Go to Warpcast (or any other Farcaster client such as Supercast or Herocast), compose a cast and paste in the URL.

🥳🥳 WELL DONE!

The link has been copied!