Responsive Typography With Variables | Figma Tutorial

DesignWithArash
17 Apr 202411:09

Summary

TLDRIn this tutorial, the presenter introduces Figma's new feature that enables responsive text through the use of typography variables. They demonstrate how to create and organize local variables for typeface, weight, and font size, and then connect these to text styles for dynamic adjustments. The video also showcases changing typefaces and creating responsive designs for different devices, like desktops and mobiles, by adjusting the variables accordingly. Viewers are guided through the process with practical examples, making it easy to implement these features in their own projects.

Takeaways

  • πŸ“ Figma has introduced a new feature allowing for responsive text through the use of variables for typography.
  • 🎨 Users can now connect text style properties to variables, including typeface, weight, font size, line height, letter spacing, and paragraph spacing.
  • πŸ” The process begins by creating local variables organized into collections and groups for typeface family, weight, and font size.
  • πŸ“š String variables are used to define typeface names, while number variables are used for defining font sizes.
  • πŸ”‘ Variables can be duplicated to create different styles, allowing for the use of multiple typefaces within a project.
  • πŸ”„ Users can modify text styles by changing the values of their connected variables, which updates all associated text layers.
  • πŸ“² The script demonstrates how to create responsive font sizes for different devices, such as desktop, tablet, and mobile.
  • πŸ“± Responsive design is achieved by setting different font sizes for each device mode, which can be easily switched in Figma.
  • πŸ”  Changing the typeface for different modes or devices is also possible, showcasing the flexibility of the new feature.
  • πŸ› οΈ The tutorial provides a step-by-step guide on how to implement these new features, from creating variables to connecting them to text styles.
  • πŸ‘ The video encourages viewers to like and subscribe for more design tutorials, highlighting the educational value of the content.

Q & A

  • What is the main feature of the new Figma update discussed in the video?

    -The main feature of the new Figma update is the ability to make text responsive using variables for typography.

  • Why was using text styles not possible with variables before the update?

    -Before the update, text styles could not be connected to variables, which limited the customization and responsiveness of typography in Figma projects.

  • What are the different typography properties that can now be connected to variables in Figma?

    -The different typography properties that can now be connected to variables include typeface, weight, font size, line height, letter spacing, and paragraph spacing.

  • How does the video demonstrate creating a new collection for typography variables?

    -The video demonstrates creating a new collection by going to local variables, naming it 'typography', and then creating groups for typeface family, weight, and font size to organize the variables.

  • What type of variable is created for the typeface family, and why?

    -A string variable is created for the typeface family because it is used to define the typeface name, which is a textual value.

  • How does the video guide the process of connecting variables to text styles?

    -The video guides the process by showing how to edit text styles, and then connect the typeface, weight, and font size to the corresponding variables created in the 'typography' collection.

  • What is the advantage of using multiple typeface families in variables as shown in the video?

    -Using multiple typeface families in variables allows for greater flexibility and easier management of different fonts across various text styles within a project.

  • How can the weight of the text be adjusted using variables in Figma, as per the video?

    -The weight of the text can be adjusted by creating string variables for different weights like 'regular', 'medium', 'semi bold', and 'bold', and then connecting these variables to the respective text styles.

  • What does the video suggest for organizing font size variables?

    -The video suggests creating number variables for different font sizes and organizing them into a group named 'size' for better management.

  • How can the responsiveness of text be achieved for different devices as shown in the video?

    -The responsiveness of text can be achieved by creating different modes like 'desktop' and 'mobile' within the size group, and setting different font sizes for each mode to adapt to various device screen sizes.

  • What is the benefit of being able to change the typeface and weight in different modes as demonstrated in the video?

    -The benefit is that it allows designers to create a more tailored and optimized user experience for different devices, ensuring that typography is appropriately scaled and styled for each mode.

Outlines

00:00

πŸ“ Introduction to Figma's Responsive Text Update

The video introduces a new update in Figma that allows for responsive text through the use of variables in typography. The host demonstrates how to utilize this feature by creating variables for font size, weight, line height, and other typography properties. They explain the process of creating local variables, organizing them into groups for typeface, weight, and font size, and then connecting these variables to the text styles in a project. The video promises to show how to make text responsive and change typography properties dynamically.

05:02

πŸ”§ Setting Up Typography Variables in Figma

This paragraph details the process of setting up typography variables within Figma. The host guides viewers through creating a 'typography' collection with groups for typeface family, weight, and font size. For each group, string variables for typeface names and weight, as well as number variables for font sizes, are created. The explanation includes how to duplicate variables for different weights and font sizes, ensuring that they are named correctly to match the text styles they will be connected to. The host also shows how to connect these newly created variables to the text styles' properties, enabling dynamic changes to typography across the project.

10:04

πŸ“± Making Text Responsive for Different Devices

The host explains how to make text responsive for various devices by creating different modes within the 'size' group of local variables. They demonstrate changing font sizes for desktop and mobile views, showing how the text scales down when switching to a mobile frame in Figma. The video also touches on the ability to change typefaces for different modes, such as using one typeface for desktop and another for mobile. The host emphasizes the ease and speed of making these adjustments, highlighting the flexibility and efficiency of Figma's new responsive text feature.

πŸŽ‰ Conclusion and Call to Action

In the concluding paragraph, the host wraps up the tutorial by summarizing the key points covered in the video. They invite viewers to apply the techniques learned to their own projects and encourage them to like and subscribe for more design tutorials. The host expresses gratitude for watching and looks forward to connecting with the audience in future videos, emphasizing the value of the new responsive text feature in enhancing design workflows within Figma.

Mindmap

Keywords

πŸ’‘Responsive Text

Responsive text in design means that text adjusts dynamically to different screen sizes and devices. In the video, the update allows text to adapt its size, weight, and other properties for better readability and aesthetics across various devices, like desktops and mobile phones.

πŸ’‘Variables

Variables in Figma are placeholders that store values which can be reused and changed globally. The video explains how Figma's new feature lets users create variables for typography, allowing for consistent and easily adjustable text styles across a project.

πŸ’‘Typography

Typography refers to the style, arrangement, and appearance of text. The video focuses on new Figma features that enhance typography by allowing variables for font family, weight, size, and other properties, making text styles more flexible and responsive.

πŸ’‘Text Styles

Text styles in Figma are predefined styles for text that can be reused throughout a project. The video shows how users can now link these styles to variables, making it easier to manage and update text properties consistently across different elements.

πŸ’‘Font Family

Font family refers to a set of fonts that share a common design but vary in attributes like weight and style. The video demonstrates how to create variables for different font families (e.g., display and text) and apply them to text styles to streamline font management.

πŸ’‘Weight

Weight in typography describes the thickness of the characters in a font, such as regular, bold, or semi-bold. The video explains how to create string variables for different weights and apply them to text styles, allowing for easy adjustments and consistency.

πŸ’‘Font Size

Font size is the size of the characters in a text, typically measured in points. The video shows how to create number variables for different font sizes and link them to text styles, enabling responsive adjustments across various devices.

πŸ’‘Local Variables

Local variables in Figma are specific to a project and can be used to store values for properties like font size, weight, and family. The video guides users on creating and organizing local variables for typography to make text management more efficient.

πŸ’‘Modes

Modes in Figma allow different sets of variable values for different contexts, such as desktop and mobile views. The video illustrates how to create and switch between modes to ensure text styles are responsive and appropriate for various devices.

πŸ’‘Collection

A collection in Figma is a group of related variables organized together. The video describes creating a typography collection to group variables for font family, weight, and size, making it easier to manage and apply these settings across a project.

Highlights

Figma has released an update enabling responsive text through the use of typography variables.

The update allows connection of variables to typeface, weight, font size, line height, letter spacing, and paragraph spacing.

A demonstration of creating local variables for typography is provided, including organizing them into groups.

Creating string variables for typeface families and defining names such as 'Plus Jakarta Sans'.

The ability to use multiple typefaces by creating additional variables.

Creating weight variables using string variables with aliases like 'regular', 'medium', 'semi bold', and 'bold'.

Creating font size variables as number variables with different sizes like 'SM', 'MD', 'LG', 'XL', '2XL', and '3XL'.

Connecting the created variables to text style properties in Figma.

Demonstration of changing font size dynamically by adjusting the value in local variables.

Introduction to creating responsive font sizes for different devices such as desktop, tablet, and mobile.

How to modify the typeface of text across different text styles by changing the value of a single variable.

The process of making text styles responsive by adjusting font sizes for different device modes.

An example of how to switch between different typefaces for desktop and mobile modes.

The ease and speed of adjusting text properties for responsive design in Figma.

A call to action for viewers to like and subscribe for more design tutorials.

Transcripts

play00:00

figma has finally released a new

play00:02

exciting update which enables us to make

play00:04

our text responsive and that is

play00:07

variables for typography in today's

play00:09

video I'm going to show you everything

play00:10

you need to know about this new feature

play00:13

and you learn how to make your text

play00:15

responsive using variables let's dive in

play00:18

all right here is one of my projects and

play00:20

usually for my projects I use text stle

play00:23

because up until now I couldn't use

play00:25

variables for my font sizes but that's

play00:28

no longer a limitation here as you can

play00:30

see I have these textiles I have three

play00:33

display textiles and I have three text

play00:36

textiles you may use a different naming

play00:38

convention it doesn't matter what

play00:40

matters is the process I'm going to show

play00:42

you so here for this hero section I used

play00:45

my text Styles as you can see each of

play00:47

these text layers is connected to one of

play00:49

my text Styles however if I go ahead and

play00:53

show you the properties of my text

play00:55

Styles you can see that they are not

play00:57

connected to any variables but we are

play00:59

going to change we are going to create a

play01:01

few variables that we could connect to

play01:03

all these properties the new figma

play01:05

update allows you to connect variables

play01:08

to your type face here also you could

play01:10

connect your variables to the weight to

play01:13

font size which is so exciting I know

play01:16

you've been waiting for this feature to

play01:18

line height to letter spacing and

play01:20

paragraph spacing so basically you can

play01:22

connect your variables to all of these

play01:24

typography properties but in this video

play01:27

I'm just going to show you how you can

play01:28

connect a variable to your type face to

play01:32

the weight and to the font size so if

play01:34

you're ready let's get it started first

play01:36

of all I'm going to head over to local

play01:38

variables and I'm going to create a new

play01:41

collection here and I'm going to name it

play01:44

typography inside this typography

play01:46

collection we need to create a few

play01:47

groups to keep everything organized okay

play01:50

we need one group for our type face

play01:52

family we need another group for our

play01:54

weight and another group for the font

play01:57

size okay let's start with our type face

play02:00

family here I'm going to click on create

play02:02

variable and I'm going to create a

play02:03

string variable because actually we are

play02:05

going to Define our type face name here

play02:08

so here to create our group I'm going to

play02:10

type type

play02:12

face

play02:14

slasham slash display because as I

play02:18

showed you here I have two font families

play02:20

here display and text you may name it

play02:22

heading body Etc it doesn't matter so

play02:26

here I created this type face group and

play02:28

inside I have this family group all

play02:31

right okay for the name I'm going to

play02:33

leave it as display but here we need to

play02:35

define the type face name all right for

play02:37

this project I'm going to use the plus

play02:39

Jakarta Sans type face so I'm just going

play02:42

to type plus Jakarta Sans make sure to

play02:46

double check the spelling it's so

play02:47

important now I'm going to go to the

play02:49

family group here and I'm going to right

play02:51

click here duplicate this variable and

play02:54

this time I'm going to type text and the

play02:57

value is going to be the same because

play02:58

I'm going to use the same type face for

play03:01

all my text Styles however I created

play03:03

this additional variable to show you how

play03:05

you can use multiple type faces when you

play03:08

are using variables so you'll find out

play03:11

why I created this one by the end of

play03:13

this video all right our family

play03:15

variables are ready now let's move on to

play03:17

our weight variables okay I'm going to

play03:19

go to type face and I'm going to create

play03:22

again a string variable for the weight

play03:24

property you can either use a string

play03:27

variable or a number variable what do I

play03:29

mean by that if I head over to my text

play03:31

Styles here as you can see I've used

play03:34

four different weights regular medium

play03:37

semi bold and bold each of these weights

play03:40

has a unique number value as well for

play03:42

example 800 500 200 okay you can either

play03:46

use those number values or you can use

play03:49

their aliases like regular medium semi

play03:51

bold and bold if you don't use many many

play03:54

different weights in your projects I

play03:56

highly recommend to stick with these

play03:57

names it's going to be much easier for

play03:59

for you to keep everything organized

play04:01

okay so here I'm going to create a

play04:03

string variable and I'm going to name it

play04:05

regular and the value is going to be

play04:08

regular as well now we need to create

play04:09

another group so I'm just going to right

play04:11

click on it hit new group with selection

play04:14

and I'm just going to call it weight

play04:16

like that now I'm going to duplicate

play04:18

this one and I'm going to name it medium

play04:21

copy it and paste it here again the

play04:24

spelling matters otherwise figma cannot

play04:26

connect it to the proper weight of your

play04:28

type face okay so keep that in mind I'm

play04:31

going to duplicate it this one is going

play04:33

to be semi Bold and the last one is

play04:36

going to be bold all right great our

play04:38

weight group is also done now it's time

play04:41

to create our font size variables I'm

play04:43

going to go to type face and I'm going

play04:45

to create a number variable and here I'm

play04:48

going to type SM I'm going to duplicate

play04:50

it this one is going to be MD let's

play04:53

duplicate it this one is going to be LG

play04:57

duplicate this one is going to be X x

play04:59

large duplicate it this one is going to

play05:02

be 2x large and finally we need to have

play05:06

3x large okay I just created six number

play05:09

variables why because here I have six

play05:12

different font sizes all right what

play05:14

about the values for the small one I'm

play05:17

going to type 14 as you can see the font

play05:19

size of my text style is 14 the next one

play05:23

is going to be 16 the next one is going

play05:25

to be 20 next one is going to be 30 30

play05:29

six and finally 60 all right great now

play05:33

I'm going to hold down the shift key on

play05:35

my keyboard and select all these

play05:37

variables right click on one of them and

play05:39

hit new group with selection and just

play05:42

name it

play05:44

size perfect now it's time to go ahead

play05:47

and connect these variables to the

play05:50

properties of our text Styles okay so

play05:53

what I'm going to do here is head over

play05:55

to my text Styles and from here I'm

play05:57

going to click on this little icon edit

play06:00

style and I'm going to start by

play06:01

connecting my type face to my type face

play06:04

variable okay so I'm just going to click

play06:06

here click on this icon and from here

play06:09

I'm going to choose type face family

play06:12

display then the weight should be

play06:14

connected to regular and the font size

play06:17

should be connected to 3XL just like

play06:20

that now I'm going to go ahead and

play06:22

repeat the same thing for every single

play06:24

one of these text Styles and I'm going

play06:25

to fast forward this process okay all

play06:28

right for my text family I'm I'm going

play06:29

to show you something here we need to

play06:32

set the type face to text instead of

play06:36

display okay it's so important because

play06:38

as I said I'm going to show you how you

play06:40

can modify that later all right it's

play06:42

done I've just connected all the

play06:43

variables we created to my text Styles

play06:46

properties so now let's say I want to

play06:48

change the font size of this headline

play06:50

okay what I can do is go to local

play06:53

variables I can go to size and I can

play06:56

just change this one 3XL okay okay I'm

play07:00

going to change it to let's say 72 for

play07:03

now and as you can see it's immediately

play07:05

changed however the interesting part is

play07:08

yet to come I'm going to show you how

play07:09

you can create responsive font sizes for

play07:12

different devices for example for

play07:14

desktop tablet and mobile okay because

play07:16

usually for different devices we use

play07:19

different font sizes as well for example

play07:21

on mobile devices we may use smaller

play07:24

titles but before I show you that I'm

play07:26

going to show you how you can change the

play07:27

type face of your text here here we used

play07:30

one type face for all our text Styles

play07:33

right for the display and text family

play07:36

but now let's say you decide to change

play07:37

the type face for your text family okay

play07:40

for the description for smaller text

play07:43

layers in that case since we used two

play07:45

different families for our text Styles

play07:48

we can simply head over to our text

play07:50

variable instead of display and simply

play07:53

change its value okay let's say you want

play07:55

to use the inter type face instead of

play07:57

this plus charta sand face so I'm just

play08:00

going to type enter and just look what

play08:04

happens when I press enter did you see

play08:06

that now all these three text styles are

play08:09

using this inter type face now let's say

play08:11

you want to change the heading type face

play08:13

as well I can simply change it to enter

play08:16

or any other type face there we go it's

play08:19

interesting isn't it all right now it's

play08:21

time to actually show you how you can

play08:23

make these text Styles responsive if I

play08:25

go to the size group here I can create

play08:28

another mod

play08:29

right next to this one and I'm going to

play08:31

name it mobile and I'm going to name

play08:33

this one desktop I'm not going to change

play08:35

these three small font sizes but let's

play08:38

change these three display font sizes

play08:40

for example this one could be changed to

play08:43

40 instead of 60 this one could be

play08:47

changed to 30 and this one could be

play08:50

changed to 24 now let me show you how it

play08:53

works here we have the desktop version

play08:55

of this project okay I haven't designed

play08:57

the mobile version of it but I'm going

play08:59

to to show you how it works if I select

play09:01

this desktop frame and I head over to

play09:03

the layer section I'll see this Icon by

play09:06

default it set to Auto okay I'm going to

play09:08

set it to desktop and nothing changed

play09:11

that's fine because we are in the

play09:12

desktop mode and figma is using all the

play09:15

values of the desktop mode for this

play09:18

desktop version now I'm going to hit a

play09:20

on my keyboard and I'm going to pick one

play09:22

of these phone frames like this one and

play09:25

let's say you want to take this

play09:27

container I'm going to copy it paste it

play09:29

inside this one and you want to design

play09:31

the mobile version of this project okay

play09:34

I'm going to make this container a bit

play09:35

smaller like this if I select this

play09:38

headline you can see that it's still

play09:40

using display XL Bold and the font size

play09:43

is still 60 but look what happens if I

play09:46

select this phone frame head over to

play09:48

layer and just connect it to our mobile

play09:51

mode like that all these text layers

play09:54

have been scaled down because now if I

play09:56

select one of these text layers it's

play09:58

still using display Excel bold however

play10:01

since we are in the mobile mode it's

play10:04

using the smaller value that we just set

play10:07

here in our local variables okay so

play10:10

right now it's using 40 for the title

play10:13

and these are intact because we didn't

play10:15

change them for the mobile mode now I

play10:17

can go ahead and adjust all the padding

play10:20

and just make the container a bit

play10:21

smaller like this and align everything

play10:25

like that it's so quick isn't it you can

play10:27

also change the type face in different

play10:29

modes although it's not recommended I'm

play10:32

just going to show you as an example

play10:34

here if I go to type Bas as you can see

play10:37

now I have two modes desktop mobile and

play10:39

let's say for mobile I'm going to use a

play10:41

different type face okay so here I'm

play10:44

just going to change the type face to

play10:46

plus Jakarta sense and just look what

play10:48

happens now now we are using the inter

play10:51

type face on the desktop version and the

play10:54

plus Jakarta Sense on the mobile version

play10:56

it's so interesting isn't it thank you

play10:58

so much for for watching this video if

play11:00

you found it helpful please hit the like

play11:02

button and subscribe to my channel for

play11:04

More Design tutorials have a great day

play11:07

and see you next time

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Figma UpdateResponsive DesignTypography VariablesText StylesVariable FontDynamic TypingDesign TutorialUI DesignVariable WeightsMobile TypographyDesign Automation