SlideShare a Scribd company logo
1 of 43
Download to read offline
Understanding design tokens
From UX tool to production
Débora Barreto Ornellas
Application Engineer at the LEGO Group
©2022 The LEGO Group | All Rights Reserved
SCENE 1: A normal day in the office
©2022 The LEGO Group. Page 1
The primary
button color
is #00A3DA.
Designer
Cool, I’ll add it
to a variable.
Developer A
I’m in a hurry, I’ll
hardcode the
color…
Developer B
SCENE 2: The update
©2022 The LEGO Group. Page 2
We’re changing our
branding. New color
is #008CBE
Designer
Ok, I’ll change
the variable. that
should do it...
Right?
Developer A
Oh no!
Developer B has changed
teams.
SCENE 3: The result
The design
looks
inconsistent…
This is not fun!
I have no idea how
many places are
using the wrong
color!
Designer Developer A
Now I must look for
all hardcoded values.
©2022 The LEGO Group. Page 3
What are the main goals of this talk?
Understand the design
tokens lifecycle
See a demo of a tokens
playground
Learn from a team that
has them in production
©2020 The LEGO Group. Page 4
A quick intro about myself
Hi, I’m Débora Ornellas! J
Full-stack application engineer at the LEGO Group since
February 2022.
3+ years experience as a software developer.
Brazilian 🇧🇷 living in London 🇬🇧
GitHub/LinkedIn: deboraornellas
©2022 The LEGO Group. Page 5
A quick intro about the LEGO Group
One of the world's leading manufacturers of play
materials.
1000+ employees in Digital Technology
Offices in London 🇬🇧, Billund 🇩🇰 and Copenhagen 🇩🇰
We’re hiring! 😊
(And paying for relocation if needed)
Page 6
©2022 The LEGO Group.
Page 7
What problem
do we want to solve?
©2022 The LEGO Group.
How can we improve design and developer
collaboration on teams and reduce repetitive work,
while still allowing frequent design iterations?
The problem we want to solve…as a question
©2022 The LEGO Group. Page 8
What are
design tokens?
And how can they help us?
©2022 The LEGO Group.
What are design tokens?
Key-value pairs for style properties
©2022 The LEGO Group. Page 10
Colors
Spacing
Typography
Sizes
Breakpoints
font-size-150 0.75rem
color-blue-100 #8cc9f5
breakpoint-x-large 100rem
2.5rem
spacing-500
Tokens and Aliasing
©2022 The LEGO Group. Page 11
font-size-150 0.75rem
color-blue-100 #8cc9f5
breakpoint-x-large 100rem
2.5rem
spacing-500
font-size-small
color-primary
max-width-desktop
margin-large
button-font-size
button-default-color
banner-width
top-header-margin
Aliasing:
Tokens and Aliasing
©2022 The LEGO Group. Page 12
font-size-150 0.75rem
color-blue-100 #8cc9f5
breakpoint-x-large 100rem
2.5rem
spacing-500
font-size-small
color-primary
max-width-desktop
margin-large
button-font-size
button-default-color
banner-width
top-header-margin
Aliasing:
font-size-200 1rem
font-size-medium
Designer & developer responsibilities
Page 14
©2022 The LEGO Group.
Page 15
A starter kit on
design tokens
Understanding with practice
©2022 The LEGO Group.
What do we need to get started?
©2022 The LEGO Group. Page 16
Tokens
Plugin
Code repository Webpage
Tokens as
JSON
Tokens as CSS,
JS, TS variables
UX Tool
Manual
token edit
The basic pipeline, from UX tool to the browser
Design-tokens-starter-kit repo
©2022 The LEGO Group. Page 17
What do we need to get started?
©2022 The LEGO Group. Page 18
Tokens Studio
Plugin
(free tier)
design-tokens-starter-kit
(figma-sync branch)
Local
environment
Figma
(free account)
Our starter kit pipeline, from UX tool to the browser
style-dictionary
(open-source)
Manual
token edit
Tokens as
JSON
Tokens as
JSON
CSS, JS, TS
variables
What will we be seeing in the demo?
©2022 The LEGO Group. Page 19
Tokens Studio
Plugin
(free tier)
Local
environment
Figma
(free account)
Our starter kit pipeline, from UX tool to the browser
Manual
token edit
Tokens as
JSON
Tokens as
JSON
CSS, JS, TS
variables
Warning:
Some “magic”
will happen here J
Demo time!
Let’s see tokens in action!
©2020 The LEGO Group.
Page 21
How is LEGO.com
using design tokens?
The learnings and challenges
©2022 The LEGO Group.
Why we migrated to design tokens
©2020 The LEGO Group. Page 22
A need for a centralized design system
Design-owned source of truth
Brand consistency
How it works for us
©2022 The LEGO Group. Page 23
Global design
tokens
Domain
component
library
Domain
component
library
Domain
component
library
Domain squad
Domain squad
Domain squad
Domain squad
Domain squad
Domain squad
Domain squad
Domain squad
Domain squad
Design
systems team
Domain alias
tokens
Domain alias
tokens
Domain alias
tokens
The LEGO.com design tokens pipeline
©2022 The LEGO Group. Page 24
1 2 3 4
Figma design-systems Component
library
App monorepo
Skrøll: A LEGO.com component library, built with tokens
©2022 The LEGO Group. Page 25
How are we using it at LEGO.com
©2022 The LEGO Group. Page 26
Responsive
font-size, line-
height
All colours
(default,
active, hover,
focused)
Padding,
margin, max-
width Icon size,
color
Challenges
and learnings
©2022 The LEGO Group.
Naming is hard!
©2022 The LEGO Group. Page 28
CHALLENGES:
• Keeping token names coherent though time
• Scaling the system without breaking what’s there
#1
color-blue-light: #ADD8E6 color-core-blue-light: #ADD8E6
color-blue-light: #0CCDCF
color-blue-light: #ADD8E6
BREAKING CHANGE!
NOT A BREAKING CHANGE!
Naming is hard!
©2022 The LEGO Group. Page 29
CHALLENGES:
• Keeping token names coherent though time
• Scaling the system without breaking what’s there
LEARNINGS:
• Alias everywhere! Avoid consuming global tokens in the code
• Consider scalability from the start
• Apply breaking changes sooner rather than later
#1
Versioning is hard!
©2022 The LEGO Group. Page 30
CHALLENGES:
• Ensuring consistency among consuming teams
• Deciding when and how to release
LEARNINGS:
• Controlling the version for everyone works for us
• Semantic versioning can be painful, but it’s worth it
#2
Communication is hard!
©2022 The LEGO Group. Page 31
CHALLENGES:
• Dev/design misalignment
• Handling questions and requests from users
• Convincing & advocating
LEARNINGS:
• Pairing sessions!
• Sign-off before changes
• Open communication channels with users
#3
Recap & conclusion
©2022 The LEGO Group.
Recap & conclusion
Page 33
Design tokens are key-value pairs of design
properties, created in an UX tool and synced into a
code repository.
Their aim is to ensure consistency & save time for
both designers and developers when updating a
design system.
©2020 The LEGO Group.
Recap & conclusion
Page 34
With tokens, developers and designers gain more
clarity and control over their domains.
The main challenges are: communication, token
naming and versioning.
Tip: agree on strategies to mitigate these as early as
possible.
©2020 The LEGO Group.
Resources
Page 35
©2022 The LEGO Group.
Scan this QR code to see a list of design tokens
resources (including the starter kit repo)!
Page 36
Thank you!
©2022 The LEGO Group.
Figma Tokens
Page 37
©2022 The LEGO Group.
The app
Page 38
©2022 The LEGO Group.
The app
Page 39
©2022 The LEGO Group.
The app
Page 40
©2022 The LEGO Group.
Figma Tokens
Page 41
©2022 The LEGO Group.
Token-transformer | style-dictionary
Page 42
©2022 The LEGO Group.
After running yarn figma-sync
Page 43
©2022 The LEGO Group.
Before

More Related Content

What's hot

Design system presentation - How to sell it internally
Design system presentation - How to sell it internallyDesign system presentation - How to sell it internally
Design system presentation - How to sell it internallyEugene Kardash
 
A design system. A year in review.
A design system. A year in review.A design system. A year in review.
A design system. A year in review.James Ferguson
 
Design Systems: Enterprise UX Evolution
Design Systems: Enterprise UX EvolutionDesign Systems: Enterprise UX Evolution
Design Systems: Enterprise UX EvolutionAnne Grundhoefer
 
Easy UX Process Steps Must follow by every UX Designer
Easy UX Process Steps Must follow by every UX Designer Easy UX Process Steps Must follow by every UX Designer
Easy UX Process Steps Must follow by every UX Designer Think 360 Studio
 
Design Systems (english) #UXcamHH
Design Systems (english) #UXcamHHDesign Systems (english) #UXcamHH
Design Systems (english) #UXcamHHBenno Lœwenberg
 
Evolving your Design System: People, Product, and Process
Evolving your Design System: People, Product, and ProcessEvolving your Design System: People, Product, and Process
Evolving your Design System: People, Product, and Processuxpin
 
Scopic UX Design Test Task.pdf
Scopic UX Design Test Task.pdfScopic UX Design Test Task.pdf
Scopic UX Design Test Task.pdfAtiqur Rahaman
 
Design System - Fail, Learn, Build, Test
Design System - Fail, Learn, Build, TestDesign System - Fail, Learn, Build, Test
Design System - Fail, Learn, Build, TestPaya Do
 
What is UI/UX and the Difference
What is UI/UX and the DifferenceWhat is UI/UX and the Difference
What is UI/UX and the DifferenceVibloo
 
Creating and maintaining a design system for 130 teams - Bethany Sonefeld
Creating and maintaining a design system for 130 teams - Bethany SonefeldCreating and maintaining a design system for 130 teams - Bethany Sonefeld
Creating and maintaining a design system for 130 teams - Bethany Sonefelduxpin
 
Operating in Context (Doug Powell at DesignOps Summit 2018)
Operating in Context (Doug Powell at DesignOps Summit 2018)Operating in Context (Doug Powell at DesignOps Summit 2018)
Operating in Context (Doug Powell at DesignOps Summit 2018)Rosenfeld Media
 
Design System in Figma A to Z.pdf
Design System in Figma A to Z.pdfDesign System in Figma A to Z.pdf
Design System in Figma A to Z.pdfAtiqur Rahaman
 
DesignOps supports design teams (Interaction'23)
DesignOps supports design teams (Interaction'23)DesignOps supports design teams (Interaction'23)
DesignOps supports design teams (Interaction'23)Peter Boersma
 
Design Systems at Scale
Design Systems at ScaleDesign Systems at Scale
Design Systems at ScaleSarah Federman
 
Design Systems For Enterprise
Design Systems For EnterpriseDesign Systems For Enterprise
Design Systems For EnterpriseLaura Van Doore
 
A UI and UX training presentation
A UI and UX training presentationA UI and UX training presentation
A UI and UX training presentationaayush_jain_87
 
Building a Mature Design System
Building a Mature Design SystemBuilding a Mature Design System
Building a Mature Design SystemDrew Burdick
 

What's hot (20)

Design Systems
Design SystemsDesign Systems
Design Systems
 
Design System
Design SystemDesign System
Design System
 
Design system presentation - How to sell it internally
Design system presentation - How to sell it internallyDesign system presentation - How to sell it internally
Design system presentation - How to sell it internally
 
A design system. A year in review.
A design system. A year in review.A design system. A year in review.
A design system. A year in review.
 
Design Systems: Enterprise UX Evolution
Design Systems: Enterprise UX EvolutionDesign Systems: Enterprise UX Evolution
Design Systems: Enterprise UX Evolution
 
Easy UX Process Steps Must follow by every UX Designer
Easy UX Process Steps Must follow by every UX Designer Easy UX Process Steps Must follow by every UX Designer
Easy UX Process Steps Must follow by every UX Designer
 
Design Systems (english) #UXcamHH
Design Systems (english) #UXcamHHDesign Systems (english) #UXcamHH
Design Systems (english) #UXcamHH
 
Evolving your Design System: People, Product, and Process
Evolving your Design System: People, Product, and ProcessEvolving your Design System: People, Product, and Process
Evolving your Design System: People, Product, and Process
 
Design System 101
Design System 101Design System 101
Design System 101
 
Scopic UX Design Test Task.pdf
Scopic UX Design Test Task.pdfScopic UX Design Test Task.pdf
Scopic UX Design Test Task.pdf
 
Design System - Fail, Learn, Build, Test
Design System - Fail, Learn, Build, TestDesign System - Fail, Learn, Build, Test
Design System - Fail, Learn, Build, Test
 
What is UI/UX and the Difference
What is UI/UX and the DifferenceWhat is UI/UX and the Difference
What is UI/UX and the Difference
 
Creating and maintaining a design system for 130 teams - Bethany Sonefeld
Creating and maintaining a design system for 130 teams - Bethany SonefeldCreating and maintaining a design system for 130 teams - Bethany Sonefeld
Creating and maintaining a design system for 130 teams - Bethany Sonefeld
 
Operating in Context (Doug Powell at DesignOps Summit 2018)
Operating in Context (Doug Powell at DesignOps Summit 2018)Operating in Context (Doug Powell at DesignOps Summit 2018)
Operating in Context (Doug Powell at DesignOps Summit 2018)
 
Design System in Figma A to Z.pdf
Design System in Figma A to Z.pdfDesign System in Figma A to Z.pdf
Design System in Figma A to Z.pdf
 
DesignOps supports design teams (Interaction'23)
DesignOps supports design teams (Interaction'23)DesignOps supports design teams (Interaction'23)
DesignOps supports design teams (Interaction'23)
 
Design Systems at Scale
Design Systems at ScaleDesign Systems at Scale
Design Systems at Scale
 
Design Systems For Enterprise
Design Systems For EnterpriseDesign Systems For Enterprise
Design Systems For Enterprise
 
A UI and UX training presentation
A UI and UX training presentationA UI and UX training presentation
A UI and UX training presentation
 
Building a Mature Design System
Building a Mature Design SystemBuilding a Mature Design System
Building a Mature Design System
 

Similar to Understanding Design Tokens, from UX tool to production - Débora Barreto Ornellas

Shut Up and Take My Money: LEGO Does Crowdsourcing
Shut Up and Take My Money: LEGO Does CrowdsourcingShut Up and Take My Money: LEGO Does Crowdsourcing
Shut Up and Take My Money: LEGO Does CrowdsourcingTim Courtney
 
Android design lecture #1
Android design   lecture #1Android design   lecture #1
Android design lecture #1Vitali Pekelis
 
Final lego process book
Final lego process bookFinal lego process book
Final lego process bookEmily Pun
 
CEGD Call For Demonstrations (CFD)- Overview
CEGD Call For Demonstrations (CFD)- Overview CEGD Call For Demonstrations (CFD)- Overview
CEGD Call For Demonstrations (CFD)- Overview CEGD
 
The Mental Leaps — More, Faster, Better, Happier & More Innovative!
The Mental Leaps — More, Faster, Better, Happier & More Innovative!The Mental Leaps — More, Faster, Better, Happier & More Innovative!
The Mental Leaps — More, Faster, Better, Happier & More Innovative!Erik Schön
 
Bradfield, Chris - Godot engine game development projects_ build five cross-p...
Bradfield, Chris - Godot engine game development projects_ build five cross-p...Bradfield, Chris - Godot engine game development projects_ build five cross-p...
Bradfield, Chris - Godot engine game development projects_ build five cross-p...Francisco S. Barralaga
 
When we design together
When we design togetherWhen we design together
When we design togetherThoughtworks
 
Better Digital Products with Micro Frontends and Modyo
Better Digital Products with Micro Frontends and ModyoBetter Digital Products with Micro Frontends and Modyo
Better Digital Products with Micro Frontends and ModyoEmma Parsons
 
VWO Front-End Development Webinar.pptx
VWO Front-End Development Webinar.pptxVWO Front-End Development Webinar.pptx
VWO Front-End Development Webinar.pptxVWO
 
VWO Front-End Development in experimentation
VWO Front-End Development in experimentationVWO Front-End Development in experimentation
VWO Front-End Development in experimentationVWO
 
InfoSession2022_merged.pdf
InfoSession2022_merged.pdfInfoSession2022_merged.pdf
InfoSession2022_merged.pdfKINGSHUKGHOSH20
 
Google Developer Student Clubs 2022 Solution Challenge
Google Developer Student Clubs 2022 Solution ChallengeGoogle Developer Student Clubs 2022 Solution Challenge
Google Developer Student Clubs 2022 Solution ChallengeDSCVSSUT
 
ddw NCC education assingment l4dc
 ddw NCC education assingment l4dc ddw NCC education assingment l4dc
ddw NCC education assingment l4dcDavid Parker
 
A modern architecturereview–usingcodereviewtools-ver-3.5
A modern architecturereview–usingcodereviewtools-ver-3.5A modern architecturereview–usingcodereviewtools-ver-3.5
A modern architecturereview–usingcodereviewtools-ver-3.5SSW
 
Layer Hack Launch Event
Layer Hack Launch EventLayer Hack Launch Event
Layer Hack Launch EventTinaBregovi
 
Designing and developing products for multiple platforms
Designing and developing products for multiple platformsDesigning and developing products for multiple platforms
Designing and developing products for multiple platformsDesignit
 
Model Driven Architectures
Model Driven ArchitecturesModel Driven Architectures
Model Driven ArchitecturesLalit Kale
 
A11yTC MeetUp: Role-based Analysis of WCAG 2.2
A11yTC MeetUp: Role-based Analysis of WCAG 2.2A11yTC MeetUp: Role-based Analysis of WCAG 2.2
A11yTC MeetUp: Role-based Analysis of WCAG 2.2Bill Tyler
 
Product Owner Challenge game
Product Owner Challenge game Product Owner Challenge game
Product Owner Challenge game Michael Tarnowski
 
BitDegree Public
BitDegree PublicBitDegree Public
BitDegree PublicYu-kai Chou
 

Similar to Understanding Design Tokens, from UX tool to production - Débora Barreto Ornellas (20)

Shut Up and Take My Money: LEGO Does Crowdsourcing
Shut Up and Take My Money: LEGO Does CrowdsourcingShut Up and Take My Money: LEGO Does Crowdsourcing
Shut Up and Take My Money: LEGO Does Crowdsourcing
 
Android design lecture #1
Android design   lecture #1Android design   lecture #1
Android design lecture #1
 
Final lego process book
Final lego process bookFinal lego process book
Final lego process book
 
CEGD Call For Demonstrations (CFD)- Overview
CEGD Call For Demonstrations (CFD)- Overview CEGD Call For Demonstrations (CFD)- Overview
CEGD Call For Demonstrations (CFD)- Overview
 
The Mental Leaps — More, Faster, Better, Happier & More Innovative!
The Mental Leaps — More, Faster, Better, Happier & More Innovative!The Mental Leaps — More, Faster, Better, Happier & More Innovative!
The Mental Leaps — More, Faster, Better, Happier & More Innovative!
 
Bradfield, Chris - Godot engine game development projects_ build five cross-p...
Bradfield, Chris - Godot engine game development projects_ build five cross-p...Bradfield, Chris - Godot engine game development projects_ build five cross-p...
Bradfield, Chris - Godot engine game development projects_ build five cross-p...
 
When we design together
When we design togetherWhen we design together
When we design together
 
Better Digital Products with Micro Frontends and Modyo
Better Digital Products with Micro Frontends and ModyoBetter Digital Products with Micro Frontends and Modyo
Better Digital Products with Micro Frontends and Modyo
 
VWO Front-End Development Webinar.pptx
VWO Front-End Development Webinar.pptxVWO Front-End Development Webinar.pptx
VWO Front-End Development Webinar.pptx
 
VWO Front-End Development in experimentation
VWO Front-End Development in experimentationVWO Front-End Development in experimentation
VWO Front-End Development in experimentation
 
InfoSession2022_merged.pdf
InfoSession2022_merged.pdfInfoSession2022_merged.pdf
InfoSession2022_merged.pdf
 
Google Developer Student Clubs 2022 Solution Challenge
Google Developer Student Clubs 2022 Solution ChallengeGoogle Developer Student Clubs 2022 Solution Challenge
Google Developer Student Clubs 2022 Solution Challenge
 
ddw NCC education assingment l4dc
 ddw NCC education assingment l4dc ddw NCC education assingment l4dc
ddw NCC education assingment l4dc
 
A modern architecturereview–usingcodereviewtools-ver-3.5
A modern architecturereview–usingcodereviewtools-ver-3.5A modern architecturereview–usingcodereviewtools-ver-3.5
A modern architecturereview–usingcodereviewtools-ver-3.5
 
Layer Hack Launch Event
Layer Hack Launch EventLayer Hack Launch Event
Layer Hack Launch Event
 
Designing and developing products for multiple platforms
Designing and developing products for multiple platformsDesigning and developing products for multiple platforms
Designing and developing products for multiple platforms
 
Model Driven Architectures
Model Driven ArchitecturesModel Driven Architectures
Model Driven Architectures
 
A11yTC MeetUp: Role-based Analysis of WCAG 2.2
A11yTC MeetUp: Role-based Analysis of WCAG 2.2A11yTC MeetUp: Role-based Analysis of WCAG 2.2
A11yTC MeetUp: Role-based Analysis of WCAG 2.2
 
Product Owner Challenge game
Product Owner Challenge game Product Owner Challenge game
Product Owner Challenge game
 
BitDegree Public
BitDegree PublicBitDegree Public
BitDegree Public
 

More from Wey Wey Web

Portable, secure, and lightweight: Wasm runtimes and their use-cases - Natali...
Portable, secure, and lightweight: Wasm runtimes and their use-cases - Natali...Portable, secure, and lightweight: Wasm runtimes and their use-cases - Natali...
Portable, secure, and lightweight: Wasm runtimes and their use-cases - Natali...Wey Wey Web
 
Auditing Design Systems for Accessibility - Anna E. Cook
Auditing Design Systems for Accessibility - Anna E. CookAuditing Design Systems for Accessibility - Anna E. Cook
Auditing Design Systems for Accessibility - Anna E. CookWey Wey Web
 
Adaptive Designs, Beyond Pixel Perfection - Stephanie Walter
Adaptive Designs, Beyond Pixel Perfection - Stephanie WalterAdaptive Designs, Beyond Pixel Perfection - Stephanie Walter
Adaptive Designs, Beyond Pixel Perfection - Stephanie WalterWey Wey Web
 
Sharing is caring: what to know before you build a Research Repository - Juli...
Sharing is caring: what to know before you build a Research Repository - Juli...Sharing is caring: what to know before you build a Research Repository - Juli...
Sharing is caring: what to know before you build a Research Repository - Juli...Wey Wey Web
 
Unlocking collaboration: A framework for developers and designers - Alicia Ca...
Unlocking collaboration: A framework for developers and designers - Alicia Ca...Unlocking collaboration: A framework for developers and designers - Alicia Ca...
Unlocking collaboration: A framework for developers and designers - Alicia Ca...Wey Wey Web
 
3 reasons to switch to OKLCH - Anton Lovchikov
3 reasons to switch to OKLCH - Anton Lovchikov3 reasons to switch to OKLCH - Anton Lovchikov
3 reasons to switch to OKLCH - Anton LovchikovWey Wey Web
 
ChatGPT and AI for web developers - Maximiliano Firtman
ChatGPT and AI for web developers - Maximiliano FirtmanChatGPT and AI for web developers - Maximiliano Firtman
ChatGPT and AI for web developers - Maximiliano FirtmanWey Wey Web
 
Declarative Design - Jeremy Keith - Wey Wey Wey 2023
Declarative Design - Jeremy Keith - Wey Wey Wey 2023Declarative Design - Jeremy Keith - Wey Wey Wey 2023
Declarative Design - Jeremy Keith - Wey Wey Wey 2023Wey Wey Web
 
Form follows emotion - Isabella De Cuppis
Form follows emotion - Isabella De CuppisForm follows emotion - Isabella De Cuppis
Form follows emotion - Isabella De CuppisWey Wey Web
 
UX for emerging tech - Josephine Scholtes
UX for emerging tech - Josephine ScholtesUX for emerging tech - Josephine Scholtes
UX for emerging tech - Josephine ScholtesWey Wey Web
 
Collaborative software with State Machines - Laura Kalbag
Collaborative software with State Machines -  Laura KalbagCollaborative software with State Machines -  Laura Kalbag
Collaborative software with State Machines - Laura KalbagWey Wey Web
 
Lessons Learned from building Session Replay - Francesco Novy
Lessons Learned from building Session Replay - Francesco NovyLessons Learned from building Session Replay - Francesco Novy
Lessons Learned from building Session Replay - Francesco NovyWey Wey Web
 
Let's get visual. Visual testing in your project - Ramona Schwering
Let's get visual. Visual testing in your project - Ramona SchweringLet's get visual. Visual testing in your project - Ramona Schwering
Let's get visual. Visual testing in your project - Ramona SchweringWey Wey Web
 
Solving Common Web Component Problems - Simon MacDonald
Solving Common Web Component Problems - Simon MacDonaldSolving Common Web Component Problems - Simon MacDonald
Solving Common Web Component Problems - Simon MacDonaldWey Wey Web
 
The Future is Malleable - Aleksandra Sikora
The Future is Malleable - Aleksandra SikoraThe Future is Malleable - Aleksandra Sikora
The Future is Malleable - Aleksandra SikoraWey Wey Web
 
Trending tools & methodologies for UX - Josephine Scholtes.pdf
Trending tools & methodologies for UX - Josephine Scholtes.pdfTrending tools & methodologies for UX - Josephine Scholtes.pdf
Trending tools & methodologies for UX - Josephine Scholtes.pdfWey Wey Web
 
Decoding Web Accessibility through Testing - Anuradha Kumari
Decoding Web Accessibility through Testing  - Anuradha KumariDecoding Web Accessibility through Testing  - Anuradha Kumari
Decoding Web Accessibility through Testing - Anuradha KumariWey Wey Web
 
Good Security is one question away - Wiktoria Dalach
Good Security is one  question away - Wiktoria DalachGood Security is one  question away - Wiktoria Dalach
Good Security is one question away - Wiktoria DalachWey Wey Web
 
Dynamic CSS Secrets - Lea Verou
Dynamic CSS Secrets - Lea Verou Dynamic CSS Secrets - Lea Verou
Dynamic CSS Secrets - Lea Verou Wey Wey Web
 
The Misty Report - Douglas Crockford
The Misty Report - Douglas CrockfordThe Misty Report - Douglas Crockford
The Misty Report - Douglas CrockfordWey Wey Web
 

More from Wey Wey Web (20)

Portable, secure, and lightweight: Wasm runtimes and their use-cases - Natali...
Portable, secure, and lightweight: Wasm runtimes and their use-cases - Natali...Portable, secure, and lightweight: Wasm runtimes and their use-cases - Natali...
Portable, secure, and lightweight: Wasm runtimes and their use-cases - Natali...
 
Auditing Design Systems for Accessibility - Anna E. Cook
Auditing Design Systems for Accessibility - Anna E. CookAuditing Design Systems for Accessibility - Anna E. Cook
Auditing Design Systems for Accessibility - Anna E. Cook
 
Adaptive Designs, Beyond Pixel Perfection - Stephanie Walter
Adaptive Designs, Beyond Pixel Perfection - Stephanie WalterAdaptive Designs, Beyond Pixel Perfection - Stephanie Walter
Adaptive Designs, Beyond Pixel Perfection - Stephanie Walter
 
Sharing is caring: what to know before you build a Research Repository - Juli...
Sharing is caring: what to know before you build a Research Repository - Juli...Sharing is caring: what to know before you build a Research Repository - Juli...
Sharing is caring: what to know before you build a Research Repository - Juli...
 
Unlocking collaboration: A framework for developers and designers - Alicia Ca...
Unlocking collaboration: A framework for developers and designers - Alicia Ca...Unlocking collaboration: A framework for developers and designers - Alicia Ca...
Unlocking collaboration: A framework for developers and designers - Alicia Ca...
 
3 reasons to switch to OKLCH - Anton Lovchikov
3 reasons to switch to OKLCH - Anton Lovchikov3 reasons to switch to OKLCH - Anton Lovchikov
3 reasons to switch to OKLCH - Anton Lovchikov
 
ChatGPT and AI for web developers - Maximiliano Firtman
ChatGPT and AI for web developers - Maximiliano FirtmanChatGPT and AI for web developers - Maximiliano Firtman
ChatGPT and AI for web developers - Maximiliano Firtman
 
Declarative Design - Jeremy Keith - Wey Wey Wey 2023
Declarative Design - Jeremy Keith - Wey Wey Wey 2023Declarative Design - Jeremy Keith - Wey Wey Wey 2023
Declarative Design - Jeremy Keith - Wey Wey Wey 2023
 
Form follows emotion - Isabella De Cuppis
Form follows emotion - Isabella De CuppisForm follows emotion - Isabella De Cuppis
Form follows emotion - Isabella De Cuppis
 
UX for emerging tech - Josephine Scholtes
UX for emerging tech - Josephine ScholtesUX for emerging tech - Josephine Scholtes
UX for emerging tech - Josephine Scholtes
 
Collaborative software with State Machines - Laura Kalbag
Collaborative software with State Machines -  Laura KalbagCollaborative software with State Machines -  Laura Kalbag
Collaborative software with State Machines - Laura Kalbag
 
Lessons Learned from building Session Replay - Francesco Novy
Lessons Learned from building Session Replay - Francesco NovyLessons Learned from building Session Replay - Francesco Novy
Lessons Learned from building Session Replay - Francesco Novy
 
Let's get visual. Visual testing in your project - Ramona Schwering
Let's get visual. Visual testing in your project - Ramona SchweringLet's get visual. Visual testing in your project - Ramona Schwering
Let's get visual. Visual testing in your project - Ramona Schwering
 
Solving Common Web Component Problems - Simon MacDonald
Solving Common Web Component Problems - Simon MacDonaldSolving Common Web Component Problems - Simon MacDonald
Solving Common Web Component Problems - Simon MacDonald
 
The Future is Malleable - Aleksandra Sikora
The Future is Malleable - Aleksandra SikoraThe Future is Malleable - Aleksandra Sikora
The Future is Malleable - Aleksandra Sikora
 
Trending tools & methodologies for UX - Josephine Scholtes.pdf
Trending tools & methodologies for UX - Josephine Scholtes.pdfTrending tools & methodologies for UX - Josephine Scholtes.pdf
Trending tools & methodologies for UX - Josephine Scholtes.pdf
 
Decoding Web Accessibility through Testing - Anuradha Kumari
Decoding Web Accessibility through Testing  - Anuradha KumariDecoding Web Accessibility through Testing  - Anuradha Kumari
Decoding Web Accessibility through Testing - Anuradha Kumari
 
Good Security is one question away - Wiktoria Dalach
Good Security is one  question away - Wiktoria DalachGood Security is one  question away - Wiktoria Dalach
Good Security is one question away - Wiktoria Dalach
 
Dynamic CSS Secrets - Lea Verou
Dynamic CSS Secrets - Lea Verou Dynamic CSS Secrets - Lea Verou
Dynamic CSS Secrets - Lea Verou
 
The Misty Report - Douglas Crockford
The Misty Report - Douglas CrockfordThe Misty Report - Douglas Crockford
The Misty Report - Douglas Crockford
 

Recently uploaded

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 

Recently uploaded (20)

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 

Understanding Design Tokens, from UX tool to production - Débora Barreto Ornellas

  • 1. Understanding design tokens From UX tool to production Débora Barreto Ornellas Application Engineer at the LEGO Group ©2022 The LEGO Group | All Rights Reserved
  • 2. SCENE 1: A normal day in the office ©2022 The LEGO Group. Page 1 The primary button color is #00A3DA. Designer Cool, I’ll add it to a variable. Developer A I’m in a hurry, I’ll hardcode the color… Developer B
  • 3. SCENE 2: The update ©2022 The LEGO Group. Page 2 We’re changing our branding. New color is #008CBE Designer Ok, I’ll change the variable. that should do it... Right? Developer A Oh no! Developer B has changed teams.
  • 4. SCENE 3: The result The design looks inconsistent… This is not fun! I have no idea how many places are using the wrong color! Designer Developer A Now I must look for all hardcoded values. ©2022 The LEGO Group. Page 3
  • 5. What are the main goals of this talk? Understand the design tokens lifecycle See a demo of a tokens playground Learn from a team that has them in production ©2020 The LEGO Group. Page 4
  • 6. A quick intro about myself Hi, I’m Débora Ornellas! J Full-stack application engineer at the LEGO Group since February 2022. 3+ years experience as a software developer. Brazilian 🇧🇷 living in London 🇬🇧 GitHub/LinkedIn: deboraornellas ©2022 The LEGO Group. Page 5
  • 7. A quick intro about the LEGO Group One of the world's leading manufacturers of play materials. 1000+ employees in Digital Technology Offices in London 🇬🇧, Billund 🇩🇰 and Copenhagen 🇩🇰 We’re hiring! 😊 (And paying for relocation if needed) Page 6 ©2022 The LEGO Group.
  • 8. Page 7 What problem do we want to solve? ©2022 The LEGO Group.
  • 9. How can we improve design and developer collaboration on teams and reduce repetitive work, while still allowing frequent design iterations? The problem we want to solve…as a question ©2022 The LEGO Group. Page 8
  • 10. What are design tokens? And how can they help us? ©2022 The LEGO Group.
  • 11. What are design tokens? Key-value pairs for style properties ©2022 The LEGO Group. Page 10 Colors Spacing Typography Sizes Breakpoints font-size-150 0.75rem color-blue-100 #8cc9f5 breakpoint-x-large 100rem 2.5rem spacing-500
  • 12. Tokens and Aliasing ©2022 The LEGO Group. Page 11 font-size-150 0.75rem color-blue-100 #8cc9f5 breakpoint-x-large 100rem 2.5rem spacing-500 font-size-small color-primary max-width-desktop margin-large button-font-size button-default-color banner-width top-header-margin Aliasing:
  • 13. Tokens and Aliasing ©2022 The LEGO Group. Page 12 font-size-150 0.75rem color-blue-100 #8cc9f5 breakpoint-x-large 100rem 2.5rem spacing-500 font-size-small color-primary max-width-desktop margin-large button-font-size button-default-color banner-width top-header-margin Aliasing: font-size-200 1rem font-size-medium
  • 14. Designer & developer responsibilities Page 14 ©2022 The LEGO Group.
  • 15. Page 15 A starter kit on design tokens Understanding with practice ©2022 The LEGO Group.
  • 16. What do we need to get started? ©2022 The LEGO Group. Page 16 Tokens Plugin Code repository Webpage Tokens as JSON Tokens as CSS, JS, TS variables UX Tool Manual token edit The basic pipeline, from UX tool to the browser
  • 18. What do we need to get started? ©2022 The LEGO Group. Page 18 Tokens Studio Plugin (free tier) design-tokens-starter-kit (figma-sync branch) Local environment Figma (free account) Our starter kit pipeline, from UX tool to the browser style-dictionary (open-source) Manual token edit Tokens as JSON Tokens as JSON CSS, JS, TS variables
  • 19. What will we be seeing in the demo? ©2022 The LEGO Group. Page 19 Tokens Studio Plugin (free tier) Local environment Figma (free account) Our starter kit pipeline, from UX tool to the browser Manual token edit Tokens as JSON Tokens as JSON CSS, JS, TS variables Warning: Some “magic” will happen here J
  • 20. Demo time! Let’s see tokens in action! ©2020 The LEGO Group.
  • 21. Page 21 How is LEGO.com using design tokens? The learnings and challenges ©2022 The LEGO Group.
  • 22. Why we migrated to design tokens ©2020 The LEGO Group. Page 22 A need for a centralized design system Design-owned source of truth Brand consistency
  • 23. How it works for us ©2022 The LEGO Group. Page 23 Global design tokens Domain component library Domain component library Domain component library Domain squad Domain squad Domain squad Domain squad Domain squad Domain squad Domain squad Domain squad Domain squad Design systems team Domain alias tokens Domain alias tokens Domain alias tokens
  • 24. The LEGO.com design tokens pipeline ©2022 The LEGO Group. Page 24 1 2 3 4 Figma design-systems Component library App monorepo
  • 25. Skrøll: A LEGO.com component library, built with tokens ©2022 The LEGO Group. Page 25
  • 26. How are we using it at LEGO.com ©2022 The LEGO Group. Page 26 Responsive font-size, line- height All colours (default, active, hover, focused) Padding, margin, max- width Icon size, color
  • 28. Naming is hard! ©2022 The LEGO Group. Page 28 CHALLENGES: • Keeping token names coherent though time • Scaling the system without breaking what’s there #1 color-blue-light: #ADD8E6 color-core-blue-light: #ADD8E6 color-blue-light: #0CCDCF color-blue-light: #ADD8E6 BREAKING CHANGE! NOT A BREAKING CHANGE!
  • 29. Naming is hard! ©2022 The LEGO Group. Page 29 CHALLENGES: • Keeping token names coherent though time • Scaling the system without breaking what’s there LEARNINGS: • Alias everywhere! Avoid consuming global tokens in the code • Consider scalability from the start • Apply breaking changes sooner rather than later #1
  • 30. Versioning is hard! ©2022 The LEGO Group. Page 30 CHALLENGES: • Ensuring consistency among consuming teams • Deciding when and how to release LEARNINGS: • Controlling the version for everyone works for us • Semantic versioning can be painful, but it’s worth it #2
  • 31. Communication is hard! ©2022 The LEGO Group. Page 31 CHALLENGES: • Dev/design misalignment • Handling questions and requests from users • Convincing & advocating LEARNINGS: • Pairing sessions! • Sign-off before changes • Open communication channels with users #3
  • 32. Recap & conclusion ©2022 The LEGO Group.
  • 33. Recap & conclusion Page 33 Design tokens are key-value pairs of design properties, created in an UX tool and synced into a code repository. Their aim is to ensure consistency & save time for both designers and developers when updating a design system. ©2020 The LEGO Group.
  • 34. Recap & conclusion Page 34 With tokens, developers and designers gain more clarity and control over their domains. The main challenges are: communication, token naming and versioning. Tip: agree on strategies to mitigate these as early as possible. ©2020 The LEGO Group.
  • 35. Resources Page 35 ©2022 The LEGO Group. Scan this QR code to see a list of design tokens resources (including the starter kit repo)!
  • 36. Page 36 Thank you! ©2022 The LEGO Group.
  • 37. Figma Tokens Page 37 ©2022 The LEGO Group.
  • 38. The app Page 38 ©2022 The LEGO Group.
  • 39. The app Page 39 ©2022 The LEGO Group.
  • 40. The app Page 40 ©2022 The LEGO Group.
  • 41. Figma Tokens Page 41 ©2022 The LEGO Group.
  • 42. Token-transformer | style-dictionary Page 42 ©2022 The LEGO Group.
  • 43. After running yarn figma-sync Page 43 ©2022 The LEGO Group. Before