Layout & Design

Text Properties in Framer (Fundamentals Lesson 17)

Text Properties in Framer (Fundamentals Lesson 17)

Text Properties in Framer (Fundamentals Lesson 17)

Joseph

·

12:36

·

37K views

·

About this lesson

Great typography is a key pillar of great design — from readability, to user experience, to brand perception there are more than a handful of reasons to give plenty of care to the way we present our text.

In this lesson, we’ll look at the properties available to us in Framer for making our text beautiful and functional.

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

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

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

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

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

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

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

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

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

https://www.youtube.com/watch?v=QJBz9S8JvtY&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:00great typography is a key pillar of0:02great design from readability to user0:05experience to Brand perception there are0:08more than a handful of reasons to give0:09plenty of care to the way we present our0:12text in this lesson we'll look at the0:14properties available to us in framer for0:16making our text beautiful and0:19[Music]0:20functional before we start styling text0:23let's do a quick recap of how we added0:25to the canvas in the first place to add0:27text to the canvas we can head up to the0:29toolbar at the top and select the text0:31tool or we can press the letter t on the0:34keyboard to switch to the text tool and0:36with the text tool active I can either0:38click to create an auto withth text box0:41which is great for headings and I'm0:43going to do just that and for our0:46heading I'm just going to type ship0:48sites with style and when I click away0:52you can see the bounding box around the0:53text is tightly snug down and again we0:55have these grow presets on the0:57properties panel where we can choose how0:59and if the text box is allowed to resize1:03and this first mode is what we see on1:04the canvas right now we have the text1:07box fitting the width and the height of1:09the text another way to achieve this if1:10you like keyboard shortcuts is just to1:12press shift a on the keyboard so if I go1:15to the third mode for example and I make1:18this text box much larger if I press1:20shift a boom switches to that mode that1:22fits both the width and the height of1:24the content in the text box1:27alternatively if I switch to the text1:28tool and click and drag it's going to1:31create a text box with a fixed width and1:33a fixed height which is perfect for1:34things like paragraphs and area text so1:37I'm actually going to paste in a little1:39block of text that I copied so I don't1:41have to type it all out and as cool as1:43it is to have an explicit width and1:44height it probably makes more sense most1:47of the time to allow the height of the1:49text box to grow and Shrink if there's1:51more or less text so I'm going to switch1:53to the middle of the three modes here1:55which is going to be a fixed width but1:57an automatic height okay now that we2:00have some text on the canvas let's talk2:02text properties I'm going to select my2:06top heading here and I'm going to head2:07down just a little bit on the properties2:10panel until we see the text section and2:13we'll go through these properties really2:15just from top to bottom and the first2:17thing we see here is a feature called2:19Styles which is a powerful feature for2:20making centralized reusable style2:22presets that we're going to learn about2:24in the next lesson so we're going to2:26skip that for now the next property we2:28see is the content of the text box2:30itself stripped of all its styling and2:32without having to deal with any layers2:33on the canvas we can edit or copy or2:37paste the text that is contained within2:39the text box we can also dynamically2:41fetch content from a third party API we2:44can populate content from the CMS and we2:46can also override variables when we get2:49to components but all of these things2:51are for another lesson let's not worry2:52about that stuff right now now on to the2:55creative stuff starting with fonts when2:57we click to change our font we see a2:58list of all of the web fonts available3:00for us to use in framer we also get a3:03nice preview of each type face directly3:05within the list itself to minimize3:07guesswork we've got a search bar at the3:09top so if you know the name of the font3:10that you're looking for you can just3:11start typing it and the list will filter3:13down and then we also have a drop down3:15here where we can filter the list down3:17to show all fonts which is what we're3:19looking at right now only web fonts that3:21are sourced from Google and font share3:23and built into framer custom fonts which3:26we have uploaded ourselves or you can3:28filter down to show only the gole gole3:29web fonts or only the font share fonts3:32and then variable we'll talk about here3:34in a moment but coming back to web3:36versus custom we have over a thousand3:39web fonts to choose from here but if we3:41do need to upload a custom font we can3:43go to custom and then at the bottom we3:45have an upload button here and when you3:47click upload you get to choose which3:49font file you want to upload and you3:51want to upload a web font if possible3:54ideally a wa 2 file because they're3:56optimized for the web they're around 30%3:59smaller and the original wa files so if4:00you have them both available to you go4:02with the wa 2 and when you've added your4:04custom font it'll be available to you4:06for all the documents in your workspace4:08but I'm going to go back and choose a4:10web font and for my headline here I'm4:13going to choose a font called Roboto4:15Flex also one last thing I want to point4:17out before I close this modal is at the4:19bottom there's a button that says select4:21all elements with this font which is4:23really handy if you want to make a4:24sweeping batch change to the fonts that4:26you're using on your site the rest of4:29these default Tex properties will4:30probably be familiar to you if you're4:32coming over from other design tools4:34depending on which font you have4:35selected you'll see the weights4:37available to you in that particular font4:40now in this case it looks like Roboto4:41Flex only has one weight that seems4:44strange you'll see why in a sec then we4:46have color where we get our normal Color4:48Picker but within the Color Picker we do4:50get to choose between having a solid4:52fill a linear gradient a radial gradient4:55or a conic gradient I'm going to leave4:57this on a solid fill for now and I'm4:59going to go with a dark gray but not5:01quite black then naturally we have the5:04size of our font which I'm definitely5:06going to turn up cuz this is meant to be5:08a great big heading so I'm going to set5:09this to about 50 and 50 what 50 pixels5:13we get to choose from the text being a5:16fixed pixel size or the second option is5:19to have the text fit the box that it's5:22within now when I set this to fit the5:24text size is defaulting to fit 100% of5:27the width of the container it's in and5:29we don't have an explicit width set here5:32so uh we've just got one FR by default5:34so it's filling the width of its parent5:37that's fine but I could also set this to5:39a fixed width or relative width just to5:41show you that as the Box gets bigger and5:43smaller the text gets bigger and smaller5:46as well so now the size is dictated by5:49the parent container I'm going to press5:51shift a to go back to fitting the width5:54and I'm going to come back down here and5:56instead of fit I'm going to go back to5:58pixels and again again I'm just going to6:00set this to a value of 50 cool so back6:03to a fixed size then we have letter6:05spacing which is the spacing between6:07each and every letter here also known as6:10tracking the default value for this is6:13also measured in pixels but pixels are6:15an absolute number and as the font size6:18gets bigger or smaller uh that value is6:22going to go from being practical to6:24impractical potentially so we also have6:26the option of switching from pixels to6:28M's and if you're not familiar with M's6:31they are a relative unit that is6:33relative to the font size so if I set6:36this to let's say 0.03 04 that's 004 of6:4138 whether the font size is big or small6:44the letter spacing is scaling6:46proportionally and the same thing goes6:48for line spacing if I select the text6:50below where I have two lines of text and6:52come back down here to line spacing line6:54spacing is set to M's by default because6:56you pretty much always want the spacing6:58between line of text to be in proportion7:01to the font size itself so I'm going to7:03increase this to 1.5 and what 1.5 means7:07in this context is multiply the font7:09size by a factor of 1.5 in other words7:13150% of the font size is now the line7:16spacing but if you want to you can7:19switch this to percentage base values7:20and type 150 and get the same result7:23150% 1.5 M same thing or of course7:28switching to pixels to set a fixed value7:30that doesn't change if the Tex size7:32changes I'm going to leave this on M's7:34though then we have your typical text7:36alignment left center right and full7:39justification I'm going to leave this7:42text on Center because it's kind of a7:44subheading and while we're here I'm also7:46going to knock down the brightness of7:47the color that I'm using here for this7:49subheading and now back to that Curious7:52Thing where enter has all of these7:54weights to choose from but again when I7:56switch to robotto flex it's only got one7:58weight regular8:00historically type faces on a computer8:02have consisted of families of separate8:04font files for different weights and8:06styles but nowadays some fonts called8:09variable fonts have adjustable axes that8:12give us precise control over things like8:15weight width slant x height and more8:19depending on how the font was designed8:21so back to the font picker when we click8:23to filter the list down one of our8:25filter options allows us to see only8:28variable fonts and I chose robotto Flex8:30on purpose it's a great example of a8:32font that has a lot of those adjustable8:34axes for us to play with and when you8:36have a variable font selected you'll see8:39this variable property appear on the8:41properties panel where you can click to8:42reveal the variable properties of the8:45font now again this is going to depend8:46on the font so depending on the font you8:48choose you may only have the option to8:50play with the weight you may only have8:51the option to play with the weight and8:53the slant it depends on how they design8:55the font so again this is a great8:57example of a font that has a ton of8:58things for us to play with like the9:00optical size of the font that will make9:02it more or less readable at smaller9:04sizes by adjusting the weight and some9:06of the details of the font the9:08proportions of the font are actually9:09changing as I play with this here so9:11it's pretty wild along with the weight9:14itself which I can increase make this9:16look more like a heading and then we9:18have things like the grade which is9:20similar to the weight but it's not9:21actually changing the spacing between9:23the characters we have the width of the9:25characters we can stress them out or9:26make them more condensed we have the9:28slant so we can achieve kind of an9:30italic style but to just the degree that9:33we want it we don't need to go any more9:35or less slanted than we want to then we9:37have all these additional parameters9:39down here with Roboto Flex like how tall9:41the uppercase letters are how tall the9:44lowercase letters are we can bring down9:45the x height of the font and there's9:47some really interesting details here9:49like how the dots float above the eyes9:52they move in a very specific way that9:55was designed into this font and as you9:58might imagine all of this stuff can be9:59applied to a range of texts as well so10:01if I select a small range here I can10:03play with all this stuff to emphasize or10:05deemphasize a specific range of text and10:09if you've jumped ahead and played with10:10animations you'll find that each axis of10:12a variable font is actually an10:14animatable property so you can do some10:15pretty cool stuff with that but again10:17that's for another lesson to take our10:19font customization even further some10:21fonts are in a format called open type10:24and can contain features like alternate10:26characters ligatures tabular numbers10:28fractions10:29and all kinds of other typographic10:31capabilities when you select a font with10:33open type features like inter for10:36example which I'm using down here on my10:37subheading you'll find open type on the10:40properties panel where you can click to10:41bring up this modal now again just like10:43variable fonts what you see in this10:45model depends on the font and how the10:47font was designed but to get into the10:49head of the font designer and see what10:51options are available to you you can10:53actually just hover your cursor over any10:55one of these features and you get a10:57little preview at the top of what it10:59actually does I'm actually going to zoom11:01in on the canvas and let's take a really11:03close look at the letter A here we11:05actually have a character variant with11:07an enter called alternative a and if I11:10turn that on watch the a boom it's a11:13whole different letter form for the same11:15letter and in the future if I know the11:17name of the open type feature that I'm11:18looking for that I want to enable I can11:20also just search for it here in the11:22search bar but this is a great place to11:24kind of poke around and discover what11:26your favorite fonts are capable of and a11:28lot of fonts are both variable and11:30support open type features which gives11:32you a ton of customization options11:35within a single font so far we've only11:38covered the text properties that show up11:40by default but you'll find even more by11:42clicking on the plus icon next to text11:45like Shadows stroke paragraph spacing11:49transforms like title case or all11:51uppercase decorations like underline and11:54strikethrough and my favorite called11:56balance which allows multiple lines of11:58text to have their lines broken in such12:01a way that each line is roughly the same12:03width which can make headlines more12:04readable and Visually appealing and12:07there you have it now you know how to12:09insert and style text in framer with12:11over a thousand web fonts built right in12:14many of which have support for variable12:16and open type features that give you an12:18insane amount of control over your12:21typography that's it for this one I'll12:23see you in the next one
TeachesTypography

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.