For Designers
Any designer at Alan can contribute to the Design System. If you need to edit a component or to create a new one, let’s talk about it first!
Keep in mind that the truth is in the code! Whenever you’re editing a component or creating a new one, you need to make sure that these changes are going to be implemented by an engineer in our codebase & report it back to Figma.
Contribution types
All our components are written in PascalCase. We should strive to sync names between Figma & code as much as possible.
| Type | Common Examples | When you should contribute |
|---|---|---|
| Bug fix | Auto layout bug, incorrect color, spacing or type style being applied. | These can be fixed & published right away by any designer. They just help making sure things work within Figma. |
| Component design change | When you need to change or improve the visual design of an existing component. The component is keeping the same variants & functions but its style is evolving. | During UI reviews |
| New component variant | Your crew is adding a new prop or variant to an existing component. | During UI reviews |
| New component | Your crew needs a new component | When your design process is between 50-75% done |
Process
We use a Linear board to keep track of all the changes we want applied to the design system in order to make sure the code as well as the documentation is updated.
- Ask for a UI review or a pairing.
- Create an issue or assign yourself to an existing one in the Murray team on Linear.
- Unless it’s a bug fix or a new component, create a branch in the Murray Components Figma library. Give your branch a descriptive name, ideally referring to the Linear issue. Learn more about branching.
- Make the necessary changes in the new branch. Update the documentation of the component if necessary.
- Document all changes in the Linear issue for UI specialists to skim through & for the engineer implementing the change.
- Request a UI specialist to review the changes on your branch. This can also be done during the UI review.
- Ping the engineer referent on the Linear issue, once it’s been implemented, the UI specialists will take care of merging the changes into the main branch & publish the updates.
Best practices
Read our articles about Naming Conventions & Managing a Component's Lifecycle to learn more about how to best contribute.
Use auto-layout
Even when it may not seem totally necessary, things in Figma just work and scale better when auto layout is utilized. Prefer auto-layout to absolute positioning.
Name your layouts & frames
Naming things makes it so much easier for others when they use the file or components from it down the road.
Align naming with React component
- Align naming with the corresponding property or component. Doing this helps designers and developers speak the same language and removes barriers to collaboration.
- Follow formatting conventions
- Do your best to follow the layout and labeling conventions already existing. This makes it easier to maintain over time and keeps our quality standards high.
Test your changes
It isn’t always clear how an component change will effect an existing component instance in someones file. One way to get a better sense of this is to drag out a few instances to the side of your canvas before you start working. Changing some of the overrides is also a good idea. This way if a change you make is going to break a component you will see it happen.
Think globally
A component is always used in different ways in different places, try to gather these usages to enhance your thought process.
If at any point you get stuck, have questions or need assistance please don’t hesitate to reach out @murray-designers on Slack.
Resources
- (Managing contributions issue)[https://github.com/alan-eu/Topics/issues/18698] on Github
- (Figma tutorial: Branching & merging)[https://www.youtube.com/watch?v=tbNCGEC2G1E] on YouTube