carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.88k stars 1.82k forks source link

Improve the DX of Elements & Icons Packages #16497

Open sstrubberg opened 6 months ago

sstrubberg commented 6 months ago

User story

As a developer:

I need to: reference Carbon guidance when using elements in my project without leaving my native development environment.

so that I can: build products with less context shifting.

Additional information

REF https://marketplace.visualstudio.com/items?itemName=wzs1234566.ibm-carbon-react

Our adoption of TypeScript should cover this use-case:

code-completion

What if we had an icon preview?

hover-icon


REF https://ibm-studios.slack.com/archives/GCQ5R263T/p1714067810614929

We could utilize JSDocs to bring icon previews and color token previews into the developer's IDE.

image (7)

image (8)

Acceptance criteria

github-actions[bot] commented 6 months ago

Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.

If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.

tay1orjones commented 6 months ago

I love this idea! Maintaining an extension seems unnecessary if we can do all this with just jsdoc. It would be good to pin down how exactly this works natively within vscode. Maybe it works because vscode uses the jsdoc markdown plugin? I'm not sure. Finding out can help determine if/where it's documented and what the possibilities or limitations are.

A few thoughts: