Pratique du Shadowing: Tokens vs Variables in Tokens Studio for Figma | Variables Series - Apprendre l'anglais à l'oral avec la vidéo

Création de la leçon...
1
Hi designers and tokens peeps!
2
Sam A.M here on behalf of the Token Studio team to talk about variables.
3
In this video, you'll learn about the differences between Figma's variables and design tokens, as well as the features in the Token Studio plugin for Figma
4
that allow you to create variables that are synced to design tokens.
5
This is the first video in a series where I'll walk you through all things variables
6
in Token Studio step by step using a community file I've created for you so you can follow along.
7
But before we get into the hands-on stuff, I want to take a step back
8
and think about what is a design token and how is that different from a variable?
9
Well, it depends on who you ask.
10
So if I give you a second to think about it, what do you think a design token is?
11
Me personally, I define a design token as a design decision.
12
That's a pretty simple response.
13
If you want to go deeper, I could say it has a human readable name and it follows a specific format and we use it in code.
14
But I was really curious, what does the community think?
15
So I sent out a little survey and I asked them, what is a design token?
16
If someone new on your team asked you, what would you say?
17
Well most of us agree that a design decision is a part of what a design token is.
18
A lot of people also mentioned this concept of design to code, or collaboration between development and design, which is pretty awesome.
19
And a small percentage of people mentioned variable, which is not exactly right.
20
But we're going to go over that in a sec.
21
It looks like we're all kind of on the same page about what a design token means, and that it has something to do with a design decision, but the rest of it is a little bit fuzzy.
22
And I think that's understandable given how new of a concept design tokens are.
23
You may be thinking, how new is it?
24
The term design tokens originated at Salesforce.
25
If you head to the Token Studio website under Getting Started, we've got more details on the design tokens origin story that you can check out.
26
In 2019, a group of people got together to form the Design Tokens Community Group.
27
They've created a draft of what they propose the web standards for Design Tokens should be.
28
They host these specifications on the W3C Community and Business Groups pages.
29
So, when you hear us token nerds talking about the spec, or W3C, or WC3 because we mix it up all the time,
30
we're talking about this document.
31
I'll drop the links to the most recent draft of the spec
32
and their Twitter page in the description below below in case you want to check that out.
33
But if reading a long technical document isn't your thing, don't worry, I got you.
34
So how does the W3C spec define a design token?
35
Design tokens are a methodology for expressing design decisions in a platform agnostic way so they can be shared across different disciplines, tools, and technologies.
36
They help establish a common vocabulary across organizations.
37
So I wasn't totally wrong when I said a design token is a design decision.
38
There's just some other things to consider as well.
39
And it turns out the community has a pretty solid understanding of what a design token is, which is awesome.
40
And now that we know what a design token is, we can look at variables from Figma.
41
So like I mentioned before, a variable variable is not a design token.
42
And actually, if you look at the Figma documentation for variables, they say a variable is a representation of a design token.
43
And here it says a variable is a way to create design tokens.
44
Over here it says a variable is a way to implement design tokens.
45
So to simplify this, I'm going to group these things together and say a variable is not a design token.
46
A variable is a representation of a design token.
47
Just like a style or even a design property can be a representation or an expression of a design token in Figma.
48
Alright, before we get our hands dirty and start working with tokens, I want to talk about the different names for the same things between variables in Figma and Token Studio.
49
Because the difference between collections and modes and themes and theme groups and theme switching and mode switching is all very confusing.
50
I don't know about you, but I must have called a variable a variant at least a million times.
51
We already know that a design token can be represented in Figma as a variable.
52
What you might not know is a design token is identified by its name.
53
So it makes sense that the name of a design token will match the name of its variable.
54
Now, there are some specifics about how you name your tokens so that they are grouped properly, which helps in organizing your tokens or variables.
55
And there are some specs on what can and cannot be included in a token's name, as well as a whole debatable conversation about how to name your tokens.
56
So I'll cover naming tokens and variables in a future video.
57
In Figma, variables live in collections, whereas in Token Studio, design tokens live in token sets which are grouped into themes.
58
So a theme group is actually the same thing as a collection.
59
And this is because, if you'll recall, that tokens are supposed to be platform agnostic and use a common language.
60
It means under the hood, design tokens live in JSON files.
61
The Token Studio plugin is essentially a no-code way to write a JSON file full of design tokens tokens
62
that can be transformed into any programming language using code.
63
In fact, you can edit your tokens via the JSON editor from within the Token Studio plugin
64
if you're faster at editing code.
65
I am not.
66
You can also sync your JSON files with code using one of our integrated sync providers.
67
We have design tokens living in token sets, which are grouped into themes.
68
And those theme groups will create collections of variables.
69
Now, what about modes for say, different brands?
70
In this example, I'm managing four different brands.
71
They all have a different brand color, but that's about the only thing that's different.
72
It's a pretty simple example.
73
So in Token Studio, I would create a token set for each brand.
74
They would have the same tokens with the same names, like brand color, primary default,
75
different values to reflect each brand's unique color.
76
When we create a theme group for brand colors, and we create different themes within that group, I'm going to create brand A as a theme, brand B as a theme,
77
brand C as a theme, and so on.
78
They will all live in the brand colors theme group.
79
We'll use the Token Studio plugin to create variable collections, and it will automatically use Figma's modes feature to allow for the variables with the same names,
80
which match the design tokens with the same name, to live in a collection with the same name as the brand colors theme group.
81
These are organized into modes.
82
The name of each mode matches the name of the theme.
83
So, token names match variable names.
84
Theme group names match collection names and the names of themes match modes in Figma.
85
It's important to remember that variables in Figma are still in beta.
86
They don't have variables to match every token type that exists.
87
In fact, there are many, many more types of tokens than there are variables.
88
I'll go through each variable type and their matching token types in their own videos.
89
So to recap, We learned that a design token expresses a design decision in a common language that is platform agnostic.
90
And a variable is not a design token.
91
A variable is a representation of a design token in Figma.
92
Design tokens follow the W3C spec
93
and you can use the Token Studio plugin to create variables that are synced to design tokens.
94
In Token Studio, design tokens live in token sets, which are a no-code version of a JSON file.
95
Tokens living in token sets are grouped into themes, and those theme groups can be used to create variable collections in Figma,
96
with modes that match the themes in Token Studio.
97
So, while a variable is not a design token, they do have a lot of similarities.
98
If you want to learn more about creating and syncing design tokens to variables, to variables, be sure to check out the other videos in the variables series.

Why practice speaking with this video?

Practicing your speaking skills with this video on Figma's Tokens Studio is a fantastic way to enhance your English proficiency. The content provides a unique opportunity to engage with technical language while exploring the realm of design tokens and variables. By using the shadowing technique, you can mimic the speaker's intonation and rhythm, which aids in improving your accent and fluency. This video is structured as a conversation, making it ideal for shadowspeaks where you can repeat phrases to solidify your knowledge and pronunciation. Not only will you learn about design concepts, but you'll also enrich your vocabulary with terms relevant to the design community.

Grammar & Expressions in Context

In the video, the speaker uses several key grammatical structures that are beneficial for English learners:

  • Defining terms: The speaker frequently uses phrases like "a design token is" or "a variable is." This construction is useful for making definitions clear. Try practicing this structure to explain concepts in other areas.
  • Comparative constructions: Sentences such as "design tokens are different from variables" highlight comparisons. Learning how to effectively compare and contrast ideas can improve your descriptive abilities in discussions.
  • Direct questions: The speaker engages the audience with questions like, "What do you think a design token is?" Practice forming your own questions to engage listeners in conversation.
  • Transitions and flow: The use of phrases like "but before we get into…" and "now that we know…" helps manage the flow of information. Incorporating transition words in your speech will make your conversations more coherent.

Common Pronunciation Traps

While engaging with the video content, you may encounter some pronunciation challenges:

  • Design tokens: Ensure you emphasize the second syllable in "tokens" ([ˈtoʊ.kənz]) to pronounce it correctly.
  • Variable: The word "variable" can often be tricky. Pay attention to the pronunciation ([ˈvɛr.i.ə.bəl]), particularly the stress on the first syllable.
  • Community: The pronunciation of "community" ([kəˈmjun.ɪ.ti]) sometimes trips learners up due to its rhythm. Practicing it in context will help solidify your pronunciation.

Utilizing the information and techniques from this video will not only improve your understanding of technical concepts but also enhance your English speaking skills. Use these insights to learn English with YouTube, and effectively incorporate the shadow speak method into your language practice.

Qu'est-ce que la technique du Shadowing ?

Le Shadowing est une technique d'apprentissage des langues fondée sur la science, développée à l'origine pour la formation des interprètes professionnels. Le principe est simple mais puissant : vous écoutez de l'anglais natif et le répétez immédiatement à voix haute — comme une ombre suivant le locuteur avec un décalage de 1 à 2 secondes. Les recherches montrent une amélioration significative de la précision de la prononciation, de l'intonation, du rythme, des liaisons, de la compréhension orale et de la fluidité.