Closed Bug 1857330 Opened 1 year ago Closed 10 months ago

Add a table to Storybook that displays our collection of design tokens

Categories

(Toolkit :: Themes, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: jules, Assigned: hjones)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fidefe-reusable-components])

Attachments

(1 file)

We'd like to have a table that displays our existing design tokens' variables, with previews of the styles if possible (e.g. for color a swatch, for typography some text, for border a transparent square with a 1px border, etc.). Previews may not be possible for every token type, however, but we can brainstorm ideas.

This work can be done with JSON to HTML. For previews, we can set the 'type' on the token so the script knows what type of preview (swatch, border, etc.) to show.

Whiteboard: [fidefe-reusable-components]
Blocks: 1850611
No longer blocks: 1850611
Depends on: 1850611
Assignee: nobody → hjones
Attachment #9393633 - Attachment description: Bug 1857330 - Add a design tokens table to storybook r=#recomp-reviewers → WIP: Bug 1857330 - Add a design tokens table to storybook r=#recomp-reviewers
Attachment #9393633 - Attachment description: WIP: Bug 1857330 - Add a design tokens table to storybook r=#recomp-reviewers → Bug 1857330 - Add a design tokens table to storybook r=#recomp-reviewers
Blocks: 1889758
Pushed by hjones@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ff7a1382c006 Add a design tokens table to storybook r=reusable-components-reviewers,desktop-theme-reviewers,tgiles,jules
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: