Layout & Design

Styling Frames in Framer (Fundamentals Lesson 16)

Styling Frames in Framer (Fundamentals Lesson 16)

Styling Frames in Framer (Fundamentals Lesson 16)

Joseph

·

10:48

·

28K views

·

About this lesson

Frames, whether visible or invisible, are the backbone of our layouts — but when when we apply some style properties, Frames also become a key player in visual design.

In today’s lesson, we’re looking at the style properties of Frames — and how powerful they are in shaping the appearance of our sites.

Learn more about image fills: https://youtu.be/0Dtzf-EBEoQ

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

https://www.youtube.com/watch?v=rH5iIutBTwg&t=18s Starting with a card frame and styles panel overview

https://www.youtube.com/watch?v=rH5iIutBTwg&t=60s Adding and customizing fills

https://www.youtube.com/watch?v=rH5iIutBTwg&t=149s Adding and customizing borders

https://www.youtube.com/watch?v=rH5iIutBTwg&t=236s Adjusting corner radius

https://www.youtube.com/watch?v=rH5iIutBTwg&t=272s Adding and customizing shadows

https://www.youtube.com/watch?v=rH5iIutBTwg&t=398s Adjusting opacity vs visibility

https://www.youtube.com/watch?v=rH5iIutBTwg&t=494s Understanding overflow settings

https://www.youtube.com/watch?v=rH5iIutBTwg&t=597s Using scroll overflow

https://www.youtube.com/watch?v=rH5iIutBTwg&t=657s Exploring advanced style properties

https://www.youtube.com/watch?v=rH5iIutBTwg&t=618s 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:00frames whether visible or invisible are0:03the backbone of our layouts but when we0:05apply some style properties frames also0:07become a key player in visual design in0:10today's lesson we're looking at the0:12style properties of frames and how0:14powerful they are in shaping the0:16appearance of our0:18[Music]0:20sites for this lesson we probably could0:22start with a completely blank empty0:24frame but there are some visual0:26properties that interact with the0:28content inside of a frame so we're0:30instead going to start with this card0:33that is a frame an invisible frame has0:35no visual properties applied to it0:36whatsoever and that frame has some0:38content inside some text boxes and some0:41icons and a button so with this parent0:43frame selected we're going to come down0:46on the properties panel a bit all the0:47way down to Styles now there are a bunch0:50of properties here in the style section0:52I'm not going to go through them in the0:53order that they appear I'm going to go0:55through them in a slightly different0:56order that I think makes a little more0:58sense for this lesson I'm going to start1:00with Phill because right now like I said1:02there are no visual properties applied1:04to this card whatsoever and the card is1:07essentially invisible so a fill is a1:09pretty good place to start I'll click1:11here to add a fill and we get our Color1:13Picker where we can choose at the very1:16top between a solid fill a gradient fill1:19a radial gradient fill a conic gradient1:22fill which goes around kind of like a1:24pin wheel and then last we have the1:27image fill now I'm not going to dig too1:29far into image fills because in a1:30previous lesson we unpacked images and1:32image fills and how all that stuff works1:34so instead I'll put a link in the1:36description so you can refer back to1:37that lesson if you just so happen to1:39miss it but one thing I do want to point1:41out here is no matter what kind of fill1:43you're using you'll notice it is behind1:46the content within the frame if you look1:48at the layer list it might look like the1:50card is above its children in the1:52stacking order but that's not really1:54what's going on the parent is sort of1:57wrapped around its children and what1:59that means is the fill goes behind2:02everything and you'll see in a moment2:03the Border actually goes in front of2:05everything and the content is sandwiched2:07in between cool so with that out of the2:09way I'm just going to go back to a2:11regular solid fill and I'm going to2:13leave it on white I think that's just2:15fine so that is the gist of fills and2:19since fills are an optional property2:21just as easily as I clicked to add the2:24fill there's also a little X icon over2:26here where I can click to remove the2:28fill altogether in the same goes for2:30borders and shadows they're optional we2:32start without them we can add them we2:34can remove them so let's do that for a2:36border I'm going to click to add a2:38border by default we get a black border2:40here and we have a width value that we2:42can play with to make the Border thicker2:44or thinner we do also have the option of2:47switching between editing the border for2:50all of the sides or splitting them apart2:52and editing the border for individual2:54sides the top right bottom and left if2:57we play with these values here you can2:59see that increasing one does not affect3:01the others whatsoever but if I switch3:03back to this mode we're back to that3:04single field where we control all four3:07borders at the same time and like I3:09mentioned before the border is on top of3:11everything so where the Border3:13intersects with content within its frame3:15it's actually going to cover that3:17content up you also may have noticed3:19that borders are positioned inside the3:21frame so by making the Border larger3:23you're not making the frame larger it's3:25not going to protrude outside the frame3:27rather than being Center aligned or3:28outside aligned they're inside aligned3:30always then last we can change the style3:33of the frame between solid dashed dotted3:36or a double line I'm going to leave this3:38on solid and the very last thing I want3:40to point out is the opacity of the3:43Border if we want to reduce the opacity3:45of the Border we actually go into the3:47color and we reduce the alpha of the3:49color so if you're looking for opacity3:51and you're wondering where that property3:52is that is mixed in with the Color3:55Picker here now that we've got a border3:57applied and it's really easy to see3:59those hard pointy Corners I want to show4:01you how to round those Corners if you4:03want to that is the radius property so4:06by increasing the radius it's by default4:08going to increase the corner radius of4:11all four corners at the same time but4:13again just like the Border we can choose4:15to split those values apart and we can4:17say you know make the top right more or4:20less round make the bottom right more or4:22less round etc etc and we can take full4:25control over the roundness of each4:27Corner independently cool now that we've4:29got a fill and a border and we played4:30with the corner radius I'm thinking it4:32would be a natural time to go over4:34Shadows so when we click to add a shadow4:37the first thing I want to point out is4:38there's another add button under Shadows4:40you can actually add more than one4:42Shadow to a frame you can stack them up4:44if you want to or you can combine an4:46inside Shadow with an outside shadow so4:48more on that right now if we head over4:50to the dialogue that appears we do get4:52to choose between an outside or inside4:56Shadow by default we have an outside4:58shadow it's kind of hard to see now but5:00if I increase the Y Dimension which is5:02going to move it up and down now you can5:04see it sticking out the bottom the Y5:07Dimension can also be a negative number5:08the x or y can be a negative number to5:11control its offset from the center then5:13using the blur property we can make the5:15shadow a bit softer and the spread5:17property will allow us to increase or5:20decrease the size of the Shadow to make5:22it look like the shadow is coming from5:23maybe a small light source that's5:25projecting super far outward or from a5:27larger light source that's kind of5:28wrapping around the5:30but if you want an even more realistic5:32Shadow rather than using the typical box5:34Shadow which is basically just the shape5:36of your layer blurred behind itself we5:39have the option of adding a realistic5:42Shadow instead now what a realistic5:44Shadow is going to do is automatically5:46stack several Shadows that give us a5:49more convincing effect if I bring the5:52diffusion all the way up and I bring the5:55focus all the way up you can see that5:57there are actual Several Hard Shadows5:59here that that are stacked on top of one6:00another by adjusting the diffusion we6:03adjust how quickly those Shadows Fall6:05Off and by adjusting the focus we can6:08make them more or less blurry so with6:11the diffusion and focus and kind of a6:12happy middle ground we do end up with a6:14shadow that's quite a bit more realistic6:16than a single typical box Shadow and if6:19you're not getting the subtlety that you6:21want from playing with the diffusion and6:23focus you may just want to reduce the6:24opacity of the whole thing that again6:27just like a border is going to be within6:29the Color Picker so here I can dial the6:32opacity up or down get myself kind of a6:34more subtle result here speaking of6:37opacity we've also got an opacity slider6:40for this whole frame and you'll notice6:42that when you bring the opacity down it6:44brings down the opacity of the visual6:46properties of this Frame and all of its6:49children because they're all kind of6:50bundled together they're all behaving as6:52one unit it's a container it's like a6:55group it all comes down in opacity6:57together but there's also a property6:58here called visible and some folks get7:01visibility and opacity a little bit7:04mixed up so let's clarify that if I7:06bring opacity all the way down to zero7:09yes this is no longer visible but it's7:12not the same as setting visibility to7:14none cuz you'll notice that there's7:16still a frame that appears on my canvas7:18and when I Mouse over these things these7:19things are still here visible makes them7:23disappear from the canvas it's like7:25they're not there and one of the ways in7:27which that can impact your design is if7:30for example I have several of these7:32cards let me duplicate this card real7:34quick with command D and uh I'm actually7:37going to select both of these and I'm7:39going to wrap them in a stack I'm going7:41to press option command return on my Mac7:44and I'm going to make this a horizontal7:45stack so now I have two of these cards7:47next to each other and just for good7:49measure I'm going to duplicate again so7:50we've got a stack of three cards now if7:53I select any one of these and I reduce7:56its opacity down to zero the lay out is7:59preserved the card's still there it's8:01just visually transparent anywhere in8:02the middle it's translucent all the way8:04up it's opaque but if I switch the8:06visibility to no now the card disappears8:09and the layout acts as though that card8:11never existed in the first place so8:13that's important when you're working8:15with Stacks grids anything with relative8:17layers when you switch the visibility of8:19something from yes to no it removes it8:22from the document flow it removes it8:24from the flow of the stack and8:26everything else behaves as though that8:28object doesn't exist8:30so that's the big difference between8:31visibility and opacity right there the8:34last property we haven't talked about8:35here is Overflow which by default is set8:38to Hidden and if I click away you can8:40see that those Shadows that I created8:41earlier are now cut off what happened8:45well that frame that I wrapped around8:46these cards to turn them into a stack8:48has the Overflow set to Hidden which8:51means anything that goes beyond the8:53boundary of that frame is going to get8:55clipped off so all we need to do is with8:58that parent frame SEL Ed just come down9:00here and switch the Overflow from hidden9:03to visible and now child elements can9:05protrude beyond the boundaries of that9:08parent frame now the third option for9:10overflow is scroll and I'm not going to9:13apply that to this Frame here instead9:15I'm going to grab the frame within this9:17card that has all these bullet points in9:19it and I'm going to switch the height9:21from fit to fixed so that it can't get9:23taller when I add more content to it now9:26I'm going to grab one of these bullet9:27points I'm going to duplicate it just so9:29that I can have more stuff in there than9:32fits now with the parent frame selected9:35that's containing those items I'm going9:37to scroll down here and I'm going to9:39switch the Overflow here from visible to9:42scroll and scroll is going to clip the9:44content kind of like hidden does but if9:46we go and preview this this is now a9:49scrollable container so whatever the9:51difference is between the size of the9:52frame itself and the content within the9:54frame become scrollable that simple one9:57last thing I want to point out is that9:59in addition to the default set of10:00properties that shows up here there is a10:02plus sign where you can access some more10:04advanced properties so we have blending10:06modes in here we can decide whether or10:08not an image is draggable we can add all10:11these great filters we can add a mask10:13there's a lot of cool stuff going on in10:15here so be sure to check these items out10:17too and that's it now you know how the10:20default style properties of a frame can10:22shape these otherwise inconspicuous10:24rectangles into core visual design10:27elements and you know where to find even10:29more more advanced visual properties10:30like blending modes filters and masks10:34that's it for this one I'll see you in10:35the next one
TeachesFrames

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.