Layout & Design, Plugins

Importing from Figma and the Web to Framer (Fundamentals Lesson 14)

Importing from Figma and the Web to Framer (Fundamentals Lesson 14)

Importing from Figma and the Web to Framer (Fundamentals Lesson 14)

Joseph

·

12:55

·

71K views

·

About this lesson

In this lesson, we’re going to cover two key tools that can help you move your existing design assets into Framer: the Figma plugin and the HTML browser extension.

Whether you’re grabbing pieces of a live site or entire sections from Figma, these tools make it easy to take the hard work you’ve already put in, and quickly move it on over to Framer.

Let’s take a look at how each of these tools works.

https://www.youtube.com/watch?v=lMsNh4uzinU&t=0s Intro

https://www.youtube.com/watch?v=lMsNh4uzinU&t=20s Installing the Figma plugin

https://www.youtube.com/watch?v=lMsNh4uzinU&t=96s Selecting and copying layers from Figma

https://www.youtube.com/watch?v=lMsNh4uzinU&t=181s Pasting into Framer and setting up layout

https://www.youtube.com/watch?v=lMsNh4uzinU&t=245s Importing larger sections from Figma

https://www.youtube.com/watch?v=lMsNh4uzinU&t=359s Checking responsiveness and font considerations

https://www.youtube.com/watch?v=lMsNh4uzinU&t=426s Installing the Framer browser extension

https://www.youtube.com/watch?v=lMsNh4uzinU&t=502s Selecting and copying elements from a live website

https://www.youtube.com/watch?v=lMsNh4uzinU&t=580s Pasting the footer into Framer and adjusting layout

https://www.youtube.com/watch?v=lMsNh4uzinU&t=671s Resizing and refining responsiveness

https://www.youtube.com/watch?v=lMsNh4uzinU&t=717s Responsible use and site protection

https://www.youtube.com/watch?v=lMsNh4uzinU&t=750s Wrap up

🌞 Start for free: https://framer.link/yt

📚 Learn more at: https://framer.link/yt-academy

💎 Join the Community: https://framer.link/yt-community

🎉 Follow on X: https://framer.link/yt-x

0:00in this lesson we're going to cover two0:01key tools that can help you move your0:03existing design assets into framer our0:06figma plug-in and our browser extension0:09whether you're grabbing pieces of a live0:10site or entire sections from figma these0:13tools make it easy to take the hard work0:15you've already put in and quickly move0:17it on over to framer let's take a look0:19at how each of these tools0:22[Music]0:24Works let's start with how the figma0:26plugin works here I've got framer open0:29and I've also got open so to prevent any0:31confusion when I switch over to figma I0:34have changed my desktop wallpaper0:36slightly to be purple so it's a little0:38easier to tell figma apart from framer0:41as I'm swiping back and forth but here I0:43am in figma and the first thing we want0:44to do is get the plug-in installed so to0:47speak so I'm going to head down to the0:49little toolbar and click on the actions0:52icon you can also press command K on a0:54Mac or control K on a PC at any time to0:57bring this menu up and I'm going to go0:58to the plugins and widgets Tab and here1:01I'm just going to search for framer and1:04the first thing that should come up is1:06figma to HTML with framer that's our1:08plugin this menu that appears gives us a1:11brief description and the option to run1:13the Plug-In or save the plugin I'm going1:16to save the plugin so that it's handy1:17for us to get back to later on because1:20this isn't going to be a one shot deal1:22we're going to go back and run the1:23plugin each time we want to bring1:25something over from figma to framer so1:27I'm going to click save and now at1:29anytime on the all tab I'm going to find1:32figma to HTML with framer here and1:34essentially all we need to do now is run1:37the plug-in but while we have layers1:39selected that we'd like to bring over to1:41framer so essentially instead of hitting1:43copy to copy layers from figma we're1:45going to instead select them and run the1:47plug-in the plugin replaces the copy or1:51command C or control C function that you1:53would normally do to copy things from1:54point A to point B so like I said we got1:57to get something selected first so I'm1:59going to start small it's always helpful2:01to start kind of bite-sized because not2:04everything comes over 100% perfectly2:07there are some discrepancies in terms of2:09what's supported by figma versus what is2:11supported uh by framer in terms of the2:14overall feature set style properties2:16components Etc so good to start small2:19I'm going to grab the navbar and if we2:21look at the layer list the hierarchy2:23here is really simple we have the2:24desktop which represents this whole uh2:27sort of breakpoint the page the viewport2:30um I've already got that going on over2:32in framer so I don't need to bring that2:34over I've already got my main parent2:37frame it already has a white background2:39so I don't need to bring that over I'm2:40going to start with its immediate child2:42layers so starting with the navbar with2:45this selected like I said I'm going to2:47come down here and I'm going to run the2:49figma to HTML with framer plugin and2:52that effectively copies my selection to2:55the clipboard so now that I've copied2:57the nav bar I can head over here to2:59framer and I can just hit paste we don't3:01have to run a plug-in or anything like3:03that I'm just going to press command V3:04on my Mac for paste and it has now3:07imported those layers in fact the autol3:10layout properties from figma came with3:12it so I've got a semi- responsive Navar3:15here right out of the gate easy as that3:18and if we look over on the properties3:20panel the width is automatically set to3:22100% because the width was set to fill3:24over in figma so that came over that's3:27really handy but one thing that I do3:29want to do before I add more stuff is I3:31want to take my entire desktop3:33breakpoint and I want to add a layout to3:36it for a couple of reasons one I want3:38each section to automatically flow from3:41top to bottom so starting with adding a3:43layout I've established a stack so now3:47that this is a stack theoretically each3:49section that I paste in is going to flow3:51from top to bottom because it is a3:53vertical stack and it's set to3:55distribute from the start which is the3:57top uh of a vertical stack the other4:00thing I want to do is change the height4:01from 1080 which is eventually going to4:04be too small to fit content so now that4:08I have it set to fit content it's kind4:09of clamped down vertically to that4:12navbar but when I paste in the next4:14section it will expand to make room so4:16let's do exactly that I'm going to head4:18back over to figma I'm going to grab4:20this main section here that's got quite4:22a bit of stuff going on I've got a few4:25text layers that are wrapped in a frame4:27I've got an image and I've got a little4:29stack of features that are comprised of4:33several text boxes with icons Etc so4:36pretty typical but a pretty complex set4:38of layout elements that I have selected4:40here by selecting this whole parent4:42frame so now it's time to run the plugin4:44again and a handy little shortcut to run4:46the previous plugin again is option4:49command P if you're on a Mac and that4:52should be alt control P if you're on a4:54PC so by hitting that shortcut I have4:56run the plugin again you could always4:57manually go back down here and click on4:59the plugin to run it again but that5:01shortcut is probably something that5:02you're going to hit over and over and5:04over again so worthwhile to commit that5:06to memory so now that I've copied these5:08layers to the clipboard I'm going to5:10head back over to framer and here all5:13I'm going to do is hit paste but before5:15I hit paste I want to make sure I'm5:17pasting into the correct frame so right5:20now I have the desktop breakpoint5:21selected that's good that's what I want5:24because I want to paste this into the5:25desktop breakpoint I don't want to paste5:27this into the Navar and make it a child5:29of the nav bar so desktop break points5:31selected all good here command V to5:34paste and there we have it here is our5:36section it came right over since we have5:39our desktop breakpoint set to fit the5:41height it automatically got taller so5:43everything fits everything fits really5:45nicely if we look over on the properties5:47panel though we can see that this5:48section is set to a fixed width we don't5:51want that so I am going to change that5:53from fixed to fill so that that always5:56fills the width as the browser gets5:58bigger and smaller but to make this6:00properly responsive we might have quite6:03a bit of work to do let's actually6:04preview see what we're up against by6:06going into the preview window and making6:08this a little more narrow you can see6:10here that not everything is responding6:12we have a little bit of that auto layout6:15going on from figma that's automatically6:17keeping the links on the right and the6:18logo on the left uh but in the middle6:20here we've got our text and our image6:22not really responding and down here6:24we've got some issues but in an upcoming6:27chapter of this course we're going to6:28get into responsive design break points6:31making sure that everything's fluid and6:32we're going to use this exact design as6:35our guinea pig to go step by step6:37through that process so we're not going6:38to fuss with all that now just know that6:40you might have to take some steps to6:42make your design perfectly responsive in6:43framer another thing I want to point out6:45is that when it comes to text if you've6:48used a custom font in your figma6:49document a font that's stored locally on6:51your computer you may have issues when6:53you publish it to the web because other6:54folks don't have that same font on their6:56computer so I highly recommend combing6:58through and replacing any of those local7:00fonts with Google fonts or fonts that7:02are available here in framer so that way7:04they show up on the web if I scroll down7:06to the bottom of this page you could see7:08that we don't have a footer let's say7:10hypothetically that the figma file7:12didn't have a footer which it didn't and7:14that's because this is a new page for an7:16existing website and the website already7:18has a footer but I still need to get it7:20in here so this is exactly where the7:23framer browser extension comes in so if7:26I head over to Chrome I haven't7:27installed the extension yet so we can do7:29it here together together I'm here on7:30the Chrome web store that's where you'll7:32find the framer browser extension I'm7:34just going to do a search for framer and7:38you'll find HTML to framer that's the7:40one then here I can click add to Chrome7:43and then I get a little modal to confirm7:45I would like to add the extension and7:47that should be a done deal since this is7:50a Chrome extension it of course works7:51with chrome but if you're using Arc or7:54Microsoft Edge it works with both of7:56those as well because they're both built7:57on chromium so now now that I've got7:59this plugin installed the next thing I8:01want to do is open the little plugins8:03drop down and I'm going to pin it8:04because again this is something I'm8:06going to run over and over again each8:08time I need to grab something from a8:10live website cool now that I've got my8:13little plug-in icon on the toolbar I'm8:15going to head over to the live website8:17that you can visit yourself if you want8:19to test this plugin out and I'm going to8:20scroll all the way down and find the8:22footer and here that is now the browser8:24extension is a little bit reversed8:26compared to the figma plugin since we8:28can't select layers on a live website we8:31instead run the plug-in first then8:33select what we want to bring over so I'm8:35going to run the plug-in and with the8:37plugin running we can Mouse over8:39different elements that are on the8:41canvas and this is basically the same8:43kind of direct selection mechanics that8:45you get on the canvas in framer it'll8:47drill down the hierarchy to grab the8:50bottommost element in the hierarchy so8:51you can directly grab text layers you8:54can grab images Graphics svgs Etc you8:58just have to make sure you're hovering8:59on the right spot and even when you are9:01hovered on the right spot this isn't9:03including the parent frame that has that9:05black background so what we can do is9:07press the Escape key to go up a level in9:09the hierarchy then we can click to copy9:12that to the clipboard and you can press9:13the Escape key multiple times to go up9:15and up and up the hierarchy as high as9:17you need to go you can also hold the9:19shift key if you want to select multiple9:21elements at once but I do recommend9:23doing this in little bits it's just that9:25much more manageable so I'm going to9:27click to copy this footer then I'm going9:29to slide back over to our framer9:31document and again before I hit paste9:33I'm going to make sure I have the break9:34points selected so I'm pasting into the9:36right parent frame and boom there we go9:39the one thing that happened here that9:41might have been a little bit unexpected9:42is that this nav bar came in at 17509:46pixels wide uh which means the breako9:48actually expanded to 1750 pixels wide to9:51make room for it so why the heck did9:54that happen that's because my browser is9:56that wide so you may want to make your9:58browser with window smaller before you10:01copy and bring things over because it's10:02going to bring them over at the size10:04that they appear so just a heads up on10:07that back over to framer it's an easy10:09fix and a good way to pressure test how10:10this layout came over because we want to10:12make sure that it expands and contracts10:15successfully again we're going to get10:16into much greater detail in the future10:19chapter where we dig into responsive10:20design but just so that we can collapse10:23this without things going haywire I'm10:25going to hold the option key and grab10:27all of these little nav elements and10:29then I'm going to press command return10:31or control enter on a PC to wrap those10:34in a frame then I'm going to do the same10:36on the other side hold the option or ALT10:38key grab all these elements and command10:41return or control enter on a PC to wrap10:44those in a frame and now that each of10:46these are wrapped in their own frame10:48I'll grab the parent frame add a layout10:50to it of course defaults to a horizontal10:52stack layout because these things are10:54side by side but I'm going to switch the10:56distribution from Center to space10:58between10:59so that way they get spread all the way11:01out the one on the left goes all the way11:03to the left the one on the right goes11:04all the way to the right and we can11:06solve the Rest by clamping down the11:08height with fit content and then adding11:12padding all around I'll do 80 pixels11:14here so that way these things are11:16dynamically pushed away from the edge11:18and pushed out to the sides which means11:19if this gets smaller they should stay11:21pushed out to the sides but with that 8011:24pixels of padding so now I can grab the11:26desktop break point and I should be able11:28to set this right back to 1,200 and we11:31can see the footer is still a little bit11:32messed up that is because its width is11:34fixed so I'm just going to change that11:36from a fixed width to instead fill the11:39width of its parent which is the11:40breakpoint itself so there we have it it11:43squashed down pretty nicely again11:45there's going to be more to it to make11:47this perfectly responsive especially11:49getting down to those narrow break11:50points like mobile devices but we're11:52going to get to that in chapter 5 one11:55last little thing since you can grab11:57things from live websites you canex11:59technically take things that you don't12:01have the right to use we created this12:03tool so that you can migrate your own12:05websites or websites on behalf of12:07clients with their permission so use it12:10responsibly please but one little trick12:12and framer is if you do go to the12:14settings tab for your sites we have the12:16option to opt out of the HTML to framer12:19Chrome extension so with that turned on12:21others will be blocked from grabbing12:23stuff from your site using the browser12:25extension now you know how quick and12:27easy it is to bring your existing design12:29work over from figma and from live12:32websites things will always need a12:34little tweaking but with this lesson12:35combined with what you've already12:36learned in the course you'll have what12:38you need to tidy up your layers and your12:40layouts that's it for this one I'll see12:43you in the next one
TeachesPlugins

Watch on YouTube ↗

More in this topic

8 Framer shortcuts you're probably sleeping on4:19
8 Framer shortcuts you're probably sleeping on
Layout & Design3K views · 2 months ago
Framer Update: Stack Sorting and Bento Grids2:16
Framer Update: Stack Sorting and Bento Grids
Framer Update7K views · 2 months ago
Sharing Vector Sets Across Projects (Vectors Lesson 7)3:41
Sharing Vector Sets Across Projects (Vectors Lesson 7)
Layout & Design1K views · 3 months ago
Connecting Vector Sets to the Framer CMS (Vectors Lesson 6)3:38
Connecting Vector Sets to the Framer CMS (Vectors Lesson 6)
Layout & Design2K views · 3 months ago
Animating Vectors in Framer (Vectors Lesson 5)4:25
Animating Vectors in Framer (Vectors Lesson 5)
Layout & Design4K views · 3 months ago
Customizing Vectors with Variables in Framer (Vectors Lesson 4)4:59
Customizing Vectors with Variables in Framer (Vectors Lesson 4)
Layout & Design3K views · 3 months ago
Replace component instances site-wide in Framer1:39
Replace component instances site-wide in Framer
Layout & Design4K views · 4 months ago
Creating and Organizing Vector Sets in Framer (Vectors Lesson 3)6:58
Creating and Organizing Vector Sets in Framer (Vectors Lesson 3)
Layout & Design3K views · 4 months ago

Create a free website with Framer, the website builder loved by startups, designers and agencies.