You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This does not include the additional complexity of what types of assets are provided through each package. Elements packages for instance sometimes contain js and/or sass exports. What exactly they export is not well documented.
Points of confusion
When would a dev need to install @carbon/elements?
When would a dev need to install @carbon/colors or @carbon/grid or ... etc. for all elements packages
What's included in an elements package? Styles? JS Exports?
Why are tokens listed on the color tokens documentation page different than what's actually exported from @carbon/colors? When/why do I use @carbon/themes with/instead of @carbon/colors
What parts of the elements packages are available through @carbon/styles?
When/why would I install @carbon/colors (or any other elements package) alongside @carbon/styles?
How does @carbon/react play into all of this?
When/why would I install @carbon/colors (or any other elements package) alongside @carbon/react?
... what else?
Proposal
To try and improve this situation I think we could explore the following ideas to be more clear in the documentation.
The content you are editing has changed. Please copy your edits and refresh the page.
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.
Just have docs explain every way you can import smtn like myColor can either be imported by import @carbon/react, import @carbon/color||style , or use @carbon/color||style/scss/myColor
The landscape of our elements packages leads to a lot of confusion.
Click to expand a chart of the current landscape
This does not include the additional complexity of what types of assets are provided through each package. Elements packages for instance sometimes contain js and/or sass exports. What exactly they export is not well documented.
Points of confusion
@carbon/elements
?@carbon/colors
or@carbon/grid
or ... etc. for all elements packages@carbon/colors
? When/why do I use@carbon/themes
with/instead of@carbon/colors
@carbon/styles
?@carbon/colors
(or any other elements package) alongside@carbon/styles
?@carbon/react
play into all of this?@carbon/colors
(or any other elements package) alongside@carbon/react
?Proposal
To try and improve this situation I think we could explore the following ideas to be more clear in the documentation.
Tasks
The text was updated successfully, but these errors were encountered: