Welcome 👋🏼! Sketch files for Turning Green's footprint app are updated in this repository using a tool called Kactus.
If you're a team member looking to view the designs you'll be able to find them on Zeplin here. You'll need to have a Zeplin account and join the project as a member.
Kactus is used to version control Sketch files for this project to make sure that there is one source of truth and to make it easier to share designs. To get started:
- Download Kactus.
- Log into Kactus with your Github account.
- Click on the
Add
dropdown and selectingClone Repository
. - Under the GitHub.com tab find this repository (design_turninggreen), select and
Clone
it. This will add the selected repository to Kactus. - Under
Current Branch
, create and name a new branch. This branch will be where you will upload your work. - Switch the branch to the branch you just made and named. Always check that you're on your own branch before starting to work 🙏🏼.
- To open the Sketch file click the green
Open File
button.
After setting this up once, you won't need to do this again 🎉.
In addition to Kactus, you'll need Sketch to work on designs. Individual designers should be working on different pages in Sketch to reduce potential for merge conflicts. To contribute:
- In Kactus
Fetch origin
to get the most up to date designs. - Make sure you're on your own personal branch under
Current Branch
. - You can open the Sketch file either by clicking
Open File
button or just open Sketch how you normally would. - When you're finished working commit it in Kactus; add a summary at the bottom left detailing the changes you've made and click
commit to [your branch]
. - Click
Push origin
to upload changes to your branch on Github. - When you're ready to put the designs into the master branch of the repository (prior to design meetings) you'll need to go back to the repository on Github and create a pull request.
Commits are usually done to document small changes (ie. centering dashboard layout), whereas pull requests are typically a set of commits that culminate in a feature or features added (ie. adding onboarding flow).
The master
branch should only include approved designs that are the most up to date. To review designs remotely to merge into the master
branch, you'll need Kactus and Sketch to view designs. Designs are typically reviewed during design meetings. If approved:
- Designs should be merged into the master branch by merging the pull request.
- Designs should additionally be uploaded to Zeplin for handoff to engineers.
And you're done, fantastic job ☀️!
For additional information on how to work with Sketch + Kactus please refer to the Kactus documentation.