Have you created a component as part of your designs? It’s a good idea to consider contributing this component so that it may be used again. However, if this component is to be used only once, contribution may not be necessary.
It may be difficult to identify when and if a component should be contributed, so we’ve created this workflow to help you make the decision.
To contribute a new component to Vega, please reach out to us via our Slack Channel, or through Email at vega@e-hps.com
Basic Guidelines To have a component considered for Vega, we only ask a few things:
Ideally, please design the component using the Vega plugin available in Figma, so as to be able to make best use of existing Vega design tokens to increase scalability and accessibility:
Please provide a sample use-case for this component.
If you need assistance within any of the above, do not hesitate to contact us first for assistance, and we will happily work with you.
Alternately, functionality now exists for submitting components through the Vega Plugin in Figma. If you have designed a component that you feel is worth submitting into the Vega system, please consider doing so through the Vega plugin.
First select your component, and then click on the three dots at the bottom right of the plugin and select Request a Component.
You will be presented with a form, which will provide you with a preview of your component, a place to name your component.
Provide information about which product it is for, and more details, including use case, any variants that may be needed.
Then click Submit.
The Vega team will be provided a notification including full information about your component and will be able to access it.
It is permissible to send incomplete components, as long as information is provided to us via the notes. The Vega team will work with you to make sure that we can provide what it is you need.
To determine when to submit a component to Vega, developers should follow a similar decision tree as described above under “Designers.”
If you would like to submit code patterns to Vega, it is important to keep in mind that the framework being used is Stencil.js in order to ensure that components created are platform agnostic.
Before considering a contribution, please follow the procedures on the following list.
Before contributing, please follow these steps:
main
.If all goes well, your request will be merged. If it is not merged, Vega developers will do their best to explain why.
After the change is merged, please feel free to close the Contribution request you creted in the issue queue.
Note: If there is a UI or design that needs to be associated with your component, please be sure to notify us with a copy of the Figma file or any specifications your new component may have. Alternately, you may submit the design using the Vega Figma Plugin.