Bridging the gap in between designers and developers — Design Tokens

更新 發佈閱讀 19 分鐘
raw-image
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.

raw-image

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.

raw-image

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.

raw-image

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.

raw-image

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.

raw-image

Of course you can add some descriptions on design tokens for collaborating with your colleagues for better understanding.

raw-image
raw-image

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.

raw-image

Layers on the design tokens are subject to change/routes based on their categories. The framework is to create the unique name retrospectively.

raw-image

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.

raw-image

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.

raw-image
raw-image

In Material Design guided by Google, design tokens is segmented into reference, system, and component for managing hierarchy and usages on further extension.

raw-image

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.

raw-image

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.

raw-image

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.

raw-image

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.

raw-image

Figma plugin tool — Figma tokens

raw-image

“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.

raw-image

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.

raw-image

Once establishing design tokens, we can apply them to design layouts.

raw-image

We can preview JSON with the plugin Figmatoken.

raw-image

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

Figma Tokens | Figma Community
Figma Community plugin - Gives you the ability to use Design Tokens that can be used for a whole range of design…www.figma.com

Design Tokens
Design tokens are the visual design atoms of the design system - specifically, they are named entities that store…www.lightningdesignsystem.com

Design tokens - Material Design 3
Tokens store style values like colors and fonts so the same values are used across designs, code, tools, and platforms.m3.material.io

UI 设计 Design Token 系列教学 02:Token 的 3 个层级 新像素_哔哩哔哩_bilibili
本期视频文档:https://www.yuque.com/docs/share/d61b026a-8981-4909-a5b0-bda0bf0b35e0?#Design Token…www.bilibili.com

Note: the article is written by Able intern Cheryl Fang, edited by Steven Yeh, and interpreted/ translated by Ching Hsu.

留言
avatar-img
留言分享你的想法!
avatar-img
ABLE 的沙龍
678會員
20內容數
Able Studio 以人為本,相信設計應該是人們使用的,而不是為設計而設計的,因此我們致力於創造美觀、易用、有意義的設計。我們希望能透過文章的分享,讓更多人認識到 UI/UX 的重要性,你的閱讀對我們來說將會是最大的支持。
ABLE 的沙龍的其他內容
2022/12/15
How people perceive information has improved with the common usage of Internet under the rapid development in the digital age. People read and get inf
Thumbnail
2022/12/15
How people perceive information has improved with the common usage of Internet under the rapid development in the digital age. People read and get inf
Thumbnail
2022/11/14
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
Thumbnail
2022/11/14
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
Thumbnail
2022/10/24
Charts is a common way to address information, it can articulately convey complicated information which cannot be illustrated by words, helping users
Thumbnail
2022/10/24
Charts is a common way to address information, it can articulately convey complicated information which cannot be illustrated by words, helping users
Thumbnail
看更多
你可能也想看
Thumbnail
透過蝦皮分潤計畫,輕鬆賺取零用金!本文分享5-6月實測心得,包含數據流程、實際收入、平臺優點及注意事項,並推薦高分潤商品,教你如何運用空閒時間創造被動收入。
Thumbnail
透過蝦皮分潤計畫,輕鬆賺取零用金!本文分享5-6月實測心得,包含數據流程、實際收入、平臺優點及注意事項,並推薦高分潤商品,教你如何運用空閒時間創造被動收入。
Thumbnail
單身的人有些會養寵物,而我養植物。畢竟寵物離世會傷心,植物沒養好再接再厲就好了~(笑)
Thumbnail
單身的人有些會養寵物,而我養植物。畢竟寵物離世會傷心,植物沒養好再接再厲就好了~(笑)
Thumbnail
不知你有沒有過這種經驗?衛生紙只剩最後一包、洗衣精倒不出來,或電池突然沒電。這次一次補貨,從電池、衛生紙到洗衣精,還順便分享使用心得。更棒的是,搭配蝦皮分潤計畫,愛用品不僅自己用得安心,分享給朋友還能賺回饋。立即使用推薦碼 X5Q344E,輕鬆上手,隨時隨地賺取分潤!
Thumbnail
不知你有沒有過這種經驗?衛生紙只剩最後一包、洗衣精倒不出來,或電池突然沒電。這次一次補貨,從電池、衛生紙到洗衣精,還順便分享使用心得。更棒的是,搭配蝦皮分潤計畫,愛用品不僅自己用得安心,分享給朋友還能賺回饋。立即使用推薦碼 X5Q344E,輕鬆上手,隨時隨地賺取分潤!
Thumbnail
身為一個典型的社畜,上班時間被會議、進度、KPI 塞得滿滿,下班後只想要找一個能夠安靜喘口氣的小角落。對我來說,畫畫就是那個屬於自己的小樹洞。無論是胡亂塗鴉,還是慢慢描繪喜歡的插畫人物,那個專注在筆觸和色彩的過程,就像在幫心靈按摩一樣,讓緊繃的神經慢慢鬆開。
Thumbnail
身為一個典型的社畜,上班時間被會議、進度、KPI 塞得滿滿,下班後只想要找一個能夠安靜喘口氣的小角落。對我來說,畫畫就是那個屬於自己的小樹洞。無論是胡亂塗鴉,還是慢慢描繪喜歡的插畫人物,那個專注在筆觸和色彩的過程,就像在幫心靈按摩一樣,讓緊繃的神經慢慢鬆開。
Thumbnail
程式設計中不可或缺的一部分 介面是使用者與程式互動的媒介,因此介面的設計會影響使用者的體驗和感受。一個清晰明白、易懂的介面,可以讓使用者輕鬆地使用程式,並獲得良好的使用體驗。 需要與程式設計師密切溝通 設計師需要了解程式的功能和需求,並根據使用者的習慣和需求進行設計。設計師和程式設計師之間的溝
Thumbnail
程式設計中不可或缺的一部分 介面是使用者與程式互動的媒介,因此介面的設計會影響使用者的體驗和感受。一個清晰明白、易懂的介面,可以讓使用者輕鬆地使用程式,並獲得良好的使用體驗。 需要與程式設計師密切溝通 設計師需要了解程式的功能和需求,並根據使用者的習慣和需求進行設計。設計師和程式設計師之間的溝
Thumbnail
在之前【如何進行設計交付?做自己看得懂的檢核表、不要害怕看網頁原始碼…】那篇文中有提到,交付時可製作一份交付Checklist,這個概念也可以套用在設計過程中! 最近發現一個超實用的工具「Checklist Design」,Checklist Design 提供各種UI設計的確認清單,包括一些你可
Thumbnail
在之前【如何進行設計交付?做自己看得懂的檢核表、不要害怕看網頁原始碼…】那篇文中有提到,交付時可製作一份交付Checklist,這個概念也可以套用在設計過程中! 最近發現一個超實用的工具「Checklist Design」,Checklist Design 提供各種UI設計的確認清單,包括一些你可
Thumbnail
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 ag
Thumbnail
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 ag
Thumbnail
我覺得這個顏色太淺了,可能需要調整一下~ 好的,沒問題! 於是你在設計系統中開始尋找使用到這個顏色的所有元件,然後一個一個修改,改完一個檔案還有另一個,好不容易改完了卻在測試的時候發現還有幾個地方沒有改到⋯⋯天阿~瘋掉!!! 這樣令人抓狂的場景不只有在設計的時候會發生,當我們交付設計稿之後的開發階段
Thumbnail
我覺得這個顏色太淺了,可能需要調整一下~ 好的,沒問題! 於是你在設計系統中開始尋找使用到這個顏色的所有元件,然後一個一個修改,改完一個檔案還有另一個,好不容易改完了卻在測試的時候發現還有幾個地方沒有改到⋯⋯天阿~瘋掉!!! 這樣令人抓狂的場景不只有在設計的時候會發生,當我們交付設計稿之後的開發階段
Thumbnail
雖然知道可以透過 HTML 的 red, white, black 等顏色單字而非色票 (color code) 來使用顏色,一直以來開發上都是在找好適合的顏色後,使用 Sass 將色票紀錄到變數再做使用,不過最近接觸到 w3schools 的 HTML Color Names 才知道有將近...
Thumbnail
雖然知道可以透過 HTML 的 red, white, black 等顏色單字而非色票 (color code) 來使用顏色,一直以來開發上都是在找好適合的顏色後,使用 Sass 將色票紀錄到變數再做使用,不過最近接觸到 w3schools 的 HTML Color Names 才知道有將近...
Thumbnail
對於剛入門的新手來說,有一些細節概念或許不是那麼清楚的,例如說什麼時候應該做出怎麼樣的調整,來進入下一步調整?
Thumbnail
對於剛入門的新手來說,有一些細節概念或許不是那麼清楚的,例如說什麼時候應該做出怎麼樣的調整,來進入下一步調整?
Thumbnail
此版本的目標畫面成果是: *金色名字。 *金色社交按鈕圖示,點擊按鈕另開對應的網頁或著顯示comming soon。 *名字和按鈕在網頁中央,如果網頁寬度不夠會換行,夠就不換行。
Thumbnail
此版本的目標畫面成果是: *金色名字。 *金色社交按鈕圖示,點擊按鈕另開對應的網頁或著顯示comming soon。 *名字和按鈕在網頁中央,如果網頁寬度不夠會換行,夠就不換行。
Thumbnail
與HTML不同,CSS是專門修改網頁內容「樣式」的程式語言,也就是說你沒有辦法透過CSS去新增網頁的文字或是圖片等相關的內容,但你可以透過HTML新增網頁內容後,再使用CSS去修改他的樣式,例如⋯⋯
Thumbnail
與HTML不同,CSS是專門修改網頁內容「樣式」的程式語言,也就是說你沒有辦法透過CSS去新增網頁的文字或是圖片等相關的內容,但你可以透過HTML新增網頁內容後,再使用CSS去修改他的樣式,例如⋯⋯
追蹤感興趣的內容從 Google News 追蹤更多 vocus 的最新精選內容追蹤 Google News