What is a design system? | |
|
My journey Curiosity ➡️ Research ➡️ Trial and Error with Copilot ➡️ Working Design System
| |
History of design systems | |||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||
Some companies and their design systems | |||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||
Open Source CMS platforms and design systems | ||||||||||||
|
| ||||||||||||
The design system is the Single Source of Truth . . . | |
|
. . . for describing and communicating design information Product goals and user needs are determined. ↓ Product team + researchers
Designers, developers, and product team propose improvements to the system.
| |
Useful tools and web platforms | ||||||||||||||||||
|
(Source and more information: https://bencallahan.com/design-system-tooling)
| ||||||||||||||||||
Penpot is appealing because it's Open Source | |
|
| |
The parts of a design system | |
|
| |
Design Tokens W3C Community Group | |
|
The Design Tokens W3C Community Group (DTCG) is a community of designers, developers, and tooling vendors standardizing how design tokens are defined and exchanged. We steward the Design Tokens specification so teams can share visual language reliably across design tools, codebases, and platforms. By collaborating in the open, we collect real-world use cases, document best practices, and publish technical reports that help an ecosystem of tools stay interoperable.
(Source: https://www.designtokens.org/
| |
Could it be useful for Tiki? | |
|
?
| |
Potential Tiki design-system resources | |
|
| |
Design Tokens - the heart of the design system | |||||||||||||||
|
A token with these attributes:
Is formatted in tokens.json like:
{
"semantic": {
"color": {
"brand": {
"primary": {
"$value": "{global.color.teal.500}"
}
}
}
}
}
and the token path is visible
semantic
└─ color
└─ brand
└─ primary
which yields:
semantic.color.brand.primary . ⬅️This is the token name, by the way.
| |||||||||||||||
Global tokens | |
|
There usually are at least three layers of tokens. The first of these is global. In this example -
global.color.red.500 global.color.orange.500 global.color.yellow.500 global.color.green.500 global.color.teal.500 global.color.blue.500 global.color.purple.500 global.color.pink.500 global.color.gray.500
| |
Semantic tokens | |
|
This is the second layer of tokens. It contains intent-based names: semantic.color.brand.primary semantic.color.brand.secondary semantic.color.feedback.success semantic.color.feedback.info semantic.color.feedback.warning semantic.color.feedback.danger semantic.color.tone.light semantic.color.tone.dark
| |
Component tokens | |
|
This is the third layer of tokens. It contains usage names: component.color.button.surface component.color.button.text component.color.code.surface component.color.navbar.surface
| |
Token attributes | |
|
Each token has at least the mandatory attributes and can have some optional ones
| |
Tokens in the context of the whole design system | |
|
💠Documentation 💠💠The types and attributes of the tokens need to be well-documented. 💠💠This also includes info on procedures and tools for handling tokens. 💠Guidance 💠💠Good communication channels are important for design system information flow. 💠Governance 💠💠Within each organization using a design system, there must be well-understood procedures for editing or adding tokens and so on, to keep everyone on the same page.
| |
Tiki's particular situation regarding a design system | |
|
💠Usual context of a design system 💠💠Large organization 💠💠Many departments 💠💠Multiple products and websites 💠Tiki project context of a design system 💠💠Small organization 💠💠One product and just a few websites but 💠Tiki-using organization 💠💠Potentially larger organizations 💠💠Potentially multiple products and/or websites
| |
Goals for this Tiki design system implementation | |
|
This isn't a Figma-level design system that covers every page element detail.
| |
Working with Copilot | |
|
Excerpt from typical Copilot chat: Acknowledging here that
| |
Evolution of my process | |
|
➡️ In the beginning, edited tokens.json files manually or with Copilot. ➡️ Later wanted to identify Bootstrap variables typically overridden by themes. ➡️ Used a spreadsheet to record that information. ➡️ Realized a spreadsheet or similar could be useful as a tool to maintain tokens.json. ➡️ Developed, with Copilot, a script to generate the tokens.json file from the spreadsheet file.
| |
What new files does this design system need? | |
Provided by the theme author (for each design-system-processed theme)🗃️ a tokens.json file🗃️ a spreadsheet file (or soon, a CSV file or Tiki Tracker) if this method is used to create/maintain the tokens.json file Provided by Tiki⚙️ New: generate_tokens.py - Generates a tokens.json file from an Excel spreadsheet (.xlsx file) or (soon) a CSV file⚙️ New: build-tokens.mjs - Generates a /scss/tokens.scss file and /scss/design-system-css-vars.scss file from a tokens.json file. ⚙️ New and modified: several .php and .tpl files are added or modified for the L&F Design System tab. ⚙️ (I need to check about any others. The methods have evolved and I'm not sure which files in this project are obsolete and which are still used.) ⚙️ Optionally, a design-system-processed theme to be a model (I used Amelia).
| |
Let's look at the files and results | |
|
in: 💠Editor (VS Code) 💠Web browser (Edge) 💠Spreadsheet (Excel)
| |
Conclusion | |
|
What's next on this journey? 😊 | |