Closed Bug 2013342 Opened 2 months ago Closed 28 days ago

Rename design tokens to improve consistency

Categories

(Toolkit :: Themes, task, P3)

task

Tracking

()

RESOLVED FIXED
150 Branch
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.

Assignee: nobody → dwhisman
Status: NEW → ASSIGNED
Severity: -- → S4
Priority: -- → P3
Attachment #9541802 - Attachment is obsolete: true

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.

Blocks: 2017174
Attachment #9541801 - Attachment description: WIP: Bug 2013342 - Rename design tokens for consistency r=jules → WIP: Bug 2013342 - Rename design tokens for consistency r=reusable-components-reviewers-rotation
Attachment #9541803 - Attachment description: WIP: Bug 2013342 - Rename heading font tokens to be consistent with base font tokens r=jules → WIP: Bug 2013342 - Rename heading font tokens to be consistent with base font tokens r=reusable-components-reviewers-rotation
Attachment #9545767 - Attachment description: WIP: Bug 2013342 - Categorize card, popup, and tab tokens as component tokens r=jules → WIP: Bug 2013342 - Categorize card, popup, and tab tokens as component tokens r=reusable-components-reviewers-rotation
Attachment #9541801 - Attachment description: WIP: Bug 2013342 - Rename design tokens for consistency r=reusable-components-reviewers-rotation → Bug 2013342 - Rename design tokens for consistency r=jules
Attachment #9541803 - Attachment description: WIP: Bug 2013342 - Rename heading font tokens to be consistent with base font tokens r=reusable-components-reviewers-rotation → Bug 2013342 - Rename heading font tokens to be consistent with base font tokens r=reusable-components-reviewers-rotation
Attachment #9545767 - Attachment description: WIP: Bug 2013342 - Categorize card, popup, and tab tokens as component tokens r=reusable-components-reviewers-rotation → Bug 2013342 - Categorize card, popup, and tab tokens as component tokens r=reusable-components-reviewers-rotation
Pushed by dwhisman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/996275da9f88 https://hg.mozilla.org/integration/autoland/rev/4f7e8bbbf065 Rename heading font tokens to be consistent with base font tokens r=mtigley,desktop-theme-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,tabbrowser-reviewers,places-reviewers,omc-reviewers,home-newtab-reviewers,urlbar-reviewers,ai-frontend-reviewers,profiles-reviewers,ip-protection-reviewers,akulyk,kpatenio,nsharpley,chutten,nchevobbe,sclements,mossop,jules,mlucks,emcminn,maxx
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch

Reopened for unpublished changesets.

Status: RESOLVED → REOPENED
Keywords: leave-open
Resolution: FIXED → ---
Pushed by dwhisman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/39d81e0c49e4 https://hg.mozilla.org/integration/autoland/rev/ee58fea018f9 Categorize card, popup, and tab tokens as component tokens r=mtigley,extension-reviewers,desktop-theme-reviewers,credential-management-reviewers,tabbrowser-reviewers,omc-reviewers,home-newtab-reviewers,ai-frontend-reviewers,profiles-reviewers,ip-protection-reviewers,janerik,jules,mossop,nsharpley,kpatenio,robwu,emcminn,jlewis,maxx
Pushed by dwhisman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1fb7fc7e7728 https://hg.mozilla.org/integration/autoland/rev/95f56eca350c Rename design tokens for consistency r=jules,desktop-theme-reviewers,credential-management-reviewers,fxview-reviewers,tabbrowser-reviewers,omc-reviewers,jsudiaman,mtigley,sclements,emcminn
Status: REOPENED → RESOLVED
Closed: 1 month ago28 days ago
Resolution: --- → FIXED
Regressions: 2025576
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: