跟读练习: Tokens vs Variables in Tokens Studio for Figma | Variables Series - 通过视频学习英语口语
正在创建课程...
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.
为什么通过这个视频练习口语?
在观看此视频时,您可以通过跟随讲解者的语调和节奏,进行有效的英语口语练习。视频中的信息不仅由设计师行业的实际案例构成,还包含了对设计概念的深入探讨,使得学习者能够在具体的上下文中练习口语。这种方法能够帮助您更好地理解如何在日常对话中使用专业术语。
语法与表达在上下文中
讲解者在视频中使用了几种重要的句型和表达方式,包括:
- 定义性说明:例如,“我把设计代币定义为一个设计决策。”这样的表达方式很适合在需要给出解释的场合使用。
- 疑问句的使用:视频中讲解者会问观众的问题,如“你认为设计代币是什么?”这样的疑问增强了互动性,并激励学习者思考。
- 对比说明:在解释设计代币和变量的区别时,讲解者使用了“变量不是设计代币。”这种结构明确地传达了对比的信息,有助于学习者理解复杂的概念。
常见发音陷阱
在视频中,有些词汇的发音可能会让学习者感到困惑。例如,讲解者提到的“design token”以及“variable”,其中“variable”的发音特别容易混淆,尤其是在快速对话中。此外,速度较快的对话可能会导致连音现象,让生疏的听者难以捕捉每个词。为了克服这一挑战,建议您在观看时重复练习,尝试模仿讲解者的发音和语调,利用shadow speak技术来加深记忆。
通过观看此类内容并尝试shadow speech,结合具体的语法和表达练习,您将能在真实的交流中更加自信地使用英语。无论是通过看YouTube学英语,还是在其他平台上学习,持续的实践是提升英语能力的关键。
什么是跟读法?
跟读法 (Shadowing) 是一种有科学依据的语言学习技巧,最初开发用于专业口译员的培训,并由多语言者Alexander Arguelles博士普及。这个方法简单而强大:您在听英语母语原声的同时立即大声重复——就像是一个延迟1-2秒紧跟说话者的影子。与被动听力或语法练习不同,跟读法强迫您的大脑和口腔肌肉同时处理并模仿真实的讲话模式。研究表明它能显着提高发音准确性,语调,节奏,连读,听力理解和口语流利度——使其成为雅思口语备考和真实英语交流最有效的方法之一。