Rename design tokens to improve consistency
Categories
(Toolkit :: Themes, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox150 | --- | affected |
People
(Reporter: dwhisman, Assigned: dwhisman)
References
(Blocks 1 open bug)
Details
(Whiteboard: [recomp][acorntractors])
Attachments
(4 files, 1 obsolete file)
Some of our design tokens are named inconsistently, requiring custom logic and workarounds to categorize them correctly. For example, --heading-font-size could be renamed to --font-size-heading to more easily group it with the other font size tokens. Similarly, the --icon-size-* tokens could be renamed to --size-icon-* to follow the same convention as other size tokens.
There are other token categories that are nested, like { "attention": { "dot": { ... } } } that make more sense to treat as one conceptual category, like { "attention-dot": { ... } }. The same goes for box-shadow tokens. This affects the Figma output, which would group box-shadow tokens under a top-level box category, rather than a more meaningful box-shadow category.
Any tokens that are renamed will need to be updated where they're used, and we'll need to check that the Figma output is still usable.
Updated•2 months ago
|
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
| Assignee | ||
Comment 2•2 months ago
|
||
| Assignee | ||
Comment 3•2 months ago
|
||
Updated•2 months ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 4•1 month ago
|
||
After discussion, we decided to leave --icon-size tokens as-is, but we may want to take card tokens, like border-color-card and box-shadow-card and group them together as card tokens. Later on, we may take other card tokens from moz-card and tokenize them as well.
| Assignee | ||
Comment 5•1 month ago
|
||
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Comment 7•1 month ago
|
||
| bugherder | ||
Comment 8•1 month ago
|
||
Reopened for unpublished changesets.
Updated•1 month ago
|
Comment 10•1 month ago
|
||
| bugherder | ||
| Assignee | ||
Comment 11•1 month ago
|
||
Comment 12•1 month ago
|
||
Comment 13•29 days ago
|
||
| bugherder | ||
Comment 14•29 days ago
|
||
Comment 15•29 days ago
|
||
| bugherder | ||
| Assignee | ||
Updated•28 days ago
|
Updated•28 days ago
|
Description
•