Bridging the gap in between designers and developers — Design Tokens

閱讀時間約 18 分鐘
I find the color way too light, we need to adjust it.
Ok, no problem.
So we find the components fit the design and adjust it manually over and over again. Just before testing, we find there’s something to revamp. Oh..!
The scenario happens often when designers hand layouts over to the developers. Developers may encounter the same issues, tweaking the components and making them right in the positions repeatedly. This time-consuming way on making the design right is inefficient for both designers and developers. And might cause inconsistencies on designs.
Ok, so how do we make it better? Today we are going to introduce the concept of Design tokens, sharing the efficient way on making design and developing process more smoothly.

What is design tokens?

Design tokens is a code and common language in between designers and developers, it is a language for editing values like colours, fonts, and spacing. Creating a united code token, allowing components and design system managed in a rapid, efficient, and effective way in UI design.
For example, a color could be used in various products to reach its consistency. So when we change the color, we have to tweak the color one after another. It’s not an efficient way.
But once you apply the design tokens, what we need to do is to reference to the token content. Take Figma as example, upon establishing and creating design tokens, we can export JSON and edit them in design system, having them changed in consistency on diverse products and devices rapidly.
Design tokens may help developers go on a smooth way during the developing/ engineering process; that is to say, having design tokens take the raw values. It not only reduces mistakes while applying the color values but allowing people to apply IDE (integrated development environment) when creating design tokens, eliminating bugs and speeding up the design process.

How to create design tokens?

Currently there’s no single source of truth we can follow. Nonetheless, W3C Design Token Community Group shared an initial naming frameworks and recommendations in 2022 Figma schema. Aside from above mentioned resources, there’s design guideline on design tokens from Material Design 3 created by Google.

Design tokens framework

If we want to create a more comprehensive design tokens, we should apply the naming, values and its categories.
Of course you can add some descriptions on design tokens for collaborating with your colleagues for better understanding.
It could be applied on various objects/layers on the same name. We can then place them into categories, segment them into brands, types, and the way how we want to apply the layers.
Layers on the design tokens are subject to change/routes based on their categories. The framework is to create the unique name retrospectively.
There is a essential concept in design tokens, that is “Aliases”. The same value could be utilize on various components. By applying Aliases, we can adjust content for its corresponding component. You can find the image below, what you need to do is to change the direction.
The framework is way good on various modules. For example, we need to change the reference token in the components when designing dark mode, which not only makes the whole process much more smoothly, but more efficient on managing the design system.
In Material Design guided by Google, design tokens is segmented into reference, system, and component for managing hierarchy and usages on further extension.
We can place various design tokens into row of set, the same value could be utilize in various components. For example, title 1 and 2 apply the same font, so when we want to change the font, what we need to do is to change the content of the token.

Steps on naming Design tokens (Material Design as instance)

Step 1. Change value into the basic token — reference token
Reference token holds all the applicable options in design system, you might see global token in some cases. Having values changed into reference tokens helps us better manage types and values in the design system we utilize.
Step 2. Define the attribute on token — system token
System token is semantic token, which defines the actual attributes in design tokens. By naming in semantic way, we know the scenarios in design tokens. So while naming, it is better to avoid using words and values as the codes we might use. For example, technical wise, “type” contains different definitions, so it’s better to avoid using it while naming.
Step 3. deploy tokens to the components — component token
Wrap and limit the utilization on design tokens based on components. A system token could be used on several components. So what to do if we want to change one of the components? We can split the semantic tokens into segments and change them based on the needs.

Figma plugin tool — Figma tokens

“Figma tokens” plugin allows designers to manage colors, styles as well as attributes. We can not only use it for managing colors, styles, and attributes but as references to create frameworks, which ranges from reference, ratio to value.
Here we take spacing for example. We can define values in spacing in design tokens, and utilizing it in auto-layout.
We can also use reference design tokens, the value is in align with the math equation, you can see and create spacing {spacing.base}*2.
Once establishing design tokens, we can apply them to design layouts.
We can preview JSON with the plugin Figmatoken.
Plugin — Figma tokens allows us to export JSON for further usage in various Figma files. There’s various files being used in different platforms, the feature helps on maintaining the consistency. It is just way easy to manage the design system. (Advices from our colleague Mila ^-^)

Conclusion

It might take some effort to architect design tokens. But once created, it helps on managing design system in a more efficient way. Aside from changing the files and formats among which, it is a rapid way to update the whole project for developers, upgrade and enhance the process on developing. It also functions as bridge in between designers and developers, making system and process run in a smooth way.
We think we need not merely to realize the asthetics in design but also create the design system on its modulation, make them systematic on components in design system on Day1 as making ourselves — UI Designers competitive in the blue market. Hence, we encourage designers to create and immerse themselves in the process of creating design tokens; meanwhile, enjoy the fruitful results by single truth of clicks and changes.

Note

References we took for the article




Note: the article is written by Able intern Cheryl Fang, edited by Steven Yeh, and interpreted/ translated by Ching Hsu.
avatar-img
679會員
20內容數
Able Studio 以人為本,相信設計應該是人們使用的,而不是為設計而設計的,因此我們致力於創造美觀、易用、有意義的設計。我們希望能透過文章的分享,讓更多人認識到 UI/UX 的重要性,你的閱讀對我們來說將會是最大的支持。
留言0
查看全部
avatar-img
發表第一個留言支持創作者!
ABLE 的沙龍 的其他內容
UI design has brought us into a whole new stage as Vector Graphics Editors, VGE tools like Sketch(2010), Adobe XD(2016), and Figma(2016) were introduc
Charts is a common way to address information, it can articulately convey complicated information which cannot be illustrated by words, helping users
圖表是一種常見的傳遞資訊的方式,他可以很清晰地呈現無法單純用文字表達的複雜資訊,幫助使用者了解及使用,並且為你的介面增添個性。圖表可以應用於很多地方,像是蘋果的健康 App 就利用圖表來幫助我們了解自己的身體狀況,而天氣 App 則透過圖表傳遞天氣資訊,幫助我們規劃自己一整天的行程。 因為圖表很容易
Have you ever had the experience playing the games for 24–7 just to know how the plot goes and enjoys the excitement of playing the game? The reason w
你有沒有過這樣的經驗,玩遊戲的時候,總是會想一直玩下去,因為故事的結局或是精彩的遊戲過程而感到熱血沸騰,忍不住想和人分享,這是為什麼呢? 遊戲之所以好玩,是因為它能夠觸動我們的內心,並強烈的撼動我們的感情,進而留存在記憶裡。一個好的體驗也是如此,正因為內心有所觸動,所以讓人忍不住就想去嘗試,忍不住就
WHY WE DO 關於品牌、行銷、業務 品牌、行銷、業務,這三者充滿關聯性、相互串接,卻又各自保有重要之位。他們之間的連結在哪裡?又有哪些相異之處呢?我們或許能以保險業務員為例。在保險業中,第一線與顧客直接向顧客介紹商品的互動接觸者為「業務」,業務能夠以最直接的立場將產品與其資訊清楚地傳達給消費者
UI design has brought us into a whole new stage as Vector Graphics Editors, VGE tools like Sketch(2010), Adobe XD(2016), and Figma(2016) were introduc
Charts is a common way to address information, it can articulately convey complicated information which cannot be illustrated by words, helping users
圖表是一種常見的傳遞資訊的方式,他可以很清晰地呈現無法單純用文字表達的複雜資訊,幫助使用者了解及使用,並且為你的介面增添個性。圖表可以應用於很多地方,像是蘋果的健康 App 就利用圖表來幫助我們了解自己的身體狀況,而天氣 App 則透過圖表傳遞天氣資訊,幫助我們規劃自己一整天的行程。 因為圖表很容易
Have you ever had the experience playing the games for 24–7 just to know how the plot goes and enjoys the excitement of playing the game? The reason w
你有沒有過這樣的經驗,玩遊戲的時候,總是會想一直玩下去,因為故事的結局或是精彩的遊戲過程而感到熱血沸騰,忍不住想和人分享,這是為什麼呢? 遊戲之所以好玩,是因為它能夠觸動我們的內心,並強烈的撼動我們的感情,進而留存在記憶裡。一個好的體驗也是如此,正因為內心有所觸動,所以讓人忍不住就想去嘗試,忍不住就
WHY WE DO 關於品牌、行銷、業務 品牌、行銷、業務,這三者充滿關聯性、相互串接,卻又各自保有重要之位。他們之間的連結在哪裡?又有哪些相異之處呢?我們或許能以保險業務員為例。在保險業中,第一線與顧客直接向顧客介紹商品的互動接觸者為「業務」,業務能夠以最直接的立場將產品與其資訊清楚地傳達給消費者
你可能也想看
Google News 追蹤
Thumbnail
這個秋,Chill 嗨嗨!穿搭美美去賞楓,裝備款款去露營⋯⋯你的秋天怎麼過?秋日 To Do List 等你分享! 秋季全站徵文,我們準備了五個創作主題,參賽還有機會獲得「火烤兩用鍋」,一起來看看如何參加吧~
Thumbnail
11/20日NVDA即將公布最新一期的財報, 今天Sell Side的分析師, 開始調高目標價, 市場的股價也開始反應, 未來一週NVDA將重新回到美股市場的焦點, 今天我們要分析NVDA Sell Side怎麼看待這次NVDA的財報預測, 以及實際上Buy Side的倉位及操作, 從
Thumbnail
Hi 大家好,我是Ethan😊 相近大家都知道保濕是皮膚保養中最基本,也是最重要的一步。無論是在畫室裡長時間對著畫布,還是在旅途中面對各種氣候變化,保持皮膚的水分平衡對我來說至關重要。保濕化妝水不僅能迅速為皮膚補水,還能提升後續保養品的吸收效率。 曾經,我的保養程序簡單到只包括清潔和隨意上乳液
這一章介紹向量(vector)這個在物理、工程等領域非常重要的數學工具,以及如何用它來模擬一些物理現象。
Thumbnail
New York, NY - June 15, 2024 - (SeaPRwire) - Recently, the TE Group has launched PCMP, the solution for proactive health management. The Preventative
準時起床 看了一部好電影 嚴格來說 是一個電影解說 ~朝聖之路~ 女兒幫我按摩 我們一起做完空中腳踏車後 本來要關燈了 女鵝問:好像還有一件事 主動幫我按摩 心很暖 有房子住 有東西吃 凌晨起床 在電鍋放了早餐 家人睡醒就可以吃
Thumbnail
書店裡有一隻店貓,是隻可愛的貓。牠有些跋扈、但又惹人愛,時而橫衝直撞、感覺興奮。
Our homework is that use tenses we've learned to update something, right? Now, I know what I can use to practice. Have you watched the news about sex
Thumbnail
Never view Asia as a monolithic entity. Even with limited resources, it is essential to establish offices in two SEA countries simultaneously.
Thumbnail
滿潮時分,盛夏城鎮,孩子們看起來都很美好。可惜的是,陽光過後總是伴隨雷聲,思緒也跟著反轉。有沒有感到一絲困惑? 為何大海總是呼喚我的心? 彷彿花了一輩子的時間在奔跑,因為我感受到風暴將至,正在吞噬我的靈魂。
Thumbnail
作者: 無名               香港新中史學社 13/11/2018 大家還記得筆者在六月時發表的#泛民何能防內宄(鬼)>> 一文嗎?筆者在那篇文章提到所謂的 “內宄(鬼)” 根本來無影去無
Thumbnail
週六22:00-00:00 播出 (CST)。FM98.1 News98電台。大台北地區以外請利用線上收聽 www.news98.com.tw 點選「線上收聽」鏈結即可。亦可利用 hiChannel 收聽。
Thumbnail
這個秋,Chill 嗨嗨!穿搭美美去賞楓,裝備款款去露營⋯⋯你的秋天怎麼過?秋日 To Do List 等你分享! 秋季全站徵文,我們準備了五個創作主題,參賽還有機會獲得「火烤兩用鍋」,一起來看看如何參加吧~
Thumbnail
11/20日NVDA即將公布最新一期的財報, 今天Sell Side的分析師, 開始調高目標價, 市場的股價也開始反應, 未來一週NVDA將重新回到美股市場的焦點, 今天我們要分析NVDA Sell Side怎麼看待這次NVDA的財報預測, 以及實際上Buy Side的倉位及操作, 從
Thumbnail
Hi 大家好,我是Ethan😊 相近大家都知道保濕是皮膚保養中最基本,也是最重要的一步。無論是在畫室裡長時間對著畫布,還是在旅途中面對各種氣候變化,保持皮膚的水分平衡對我來說至關重要。保濕化妝水不僅能迅速為皮膚補水,還能提升後續保養品的吸收效率。 曾經,我的保養程序簡單到只包括清潔和隨意上乳液
這一章介紹向量(vector)這個在物理、工程等領域非常重要的數學工具,以及如何用它來模擬一些物理現象。
Thumbnail
New York, NY - June 15, 2024 - (SeaPRwire) - Recently, the TE Group has launched PCMP, the solution for proactive health management. The Preventative
準時起床 看了一部好電影 嚴格來說 是一個電影解說 ~朝聖之路~ 女兒幫我按摩 我們一起做完空中腳踏車後 本來要關燈了 女鵝問:好像還有一件事 主動幫我按摩 心很暖 有房子住 有東西吃 凌晨起床 在電鍋放了早餐 家人睡醒就可以吃
Thumbnail
書店裡有一隻店貓,是隻可愛的貓。牠有些跋扈、但又惹人愛,時而橫衝直撞、感覺興奮。
Our homework is that use tenses we've learned to update something, right? Now, I know what I can use to practice. Have you watched the news about sex
Thumbnail
Never view Asia as a monolithic entity. Even with limited resources, it is essential to establish offices in two SEA countries simultaneously.
Thumbnail
滿潮時分,盛夏城鎮,孩子們看起來都很美好。可惜的是,陽光過後總是伴隨雷聲,思緒也跟著反轉。有沒有感到一絲困惑? 為何大海總是呼喚我的心? 彷彿花了一輩子的時間在奔跑,因為我感受到風暴將至,正在吞噬我的靈魂。
Thumbnail
作者: 無名               香港新中史學社 13/11/2018 大家還記得筆者在六月時發表的#泛民何能防內宄(鬼)>> 一文嗎?筆者在那篇文章提到所謂的 “內宄(鬼)” 根本來無影去無
Thumbnail
週六22:00-00:00 播出 (CST)。FM98.1 News98電台。大台北地區以外請利用線上收聽 www.news98.com.tw 點選「線上收聽」鏈結即可。亦可利用 hiChannel 收聽。