Page MenuHomePhabricator

Add design tokens visualization to Codex demo site
Closed, ResolvedPublic

Description

Goal

As part of T293127 and for better designers and developer experience, the Codex demo site should feature tokens list and visualization.

Prior art

WiKit implemented similar visualization in their Storybook demo.

image.png (1×2 px, 240 KB)

Event Timeline

Keep in mind that this is a universe in itself, with complexity only limited by imagination. The beauty of the topic is that it really lends itself to a generic solution. When we touched on this in wikit, design system / token support in storybook was still in its infancy (I was looking at this at the time), but there has been some movement since. Maybe you can find a ready-made building block which works well enough (and potentially contribute to it) to avoid having to create+own a custom one.

Change 745956 had a related patch set uploaded (by Catrope; author: Catrope):

[design/codex@main] vitepress: Add design tokens visualization

https://gerrit.wikimedia.org/r/745956

Change 745957 had a related patch set uploaded (by Catrope; author: Catrope):

[design/codex@main] design-tokens: Make \"npm run doc:dev\" also watch tokens for changes

https://gerrit.wikimedia.org/r/745957

Change 745956 merged by jenkins-bot:

[design/codex@main] vitepress: Add design tokens visualization

https://gerrit.wikimedia.org/r/745956

Change 745957 merged by jenkins-bot:

[design/codex@main] tokens: Make \"npm run doc:dev\" also watch tokens for changes

https://gerrit.wikimedia.org/r/745957

Volker_E reassigned this task from Volker_E to Catrope.