Ushahidi Platform Pattern Library

How to Apply to the Platform

Make changes

After the initial installation and setup follow these instructions:

  • Make sure gulp is running in your Terminal
  • Edit and save the appropriate Sass files for your custom design
  • View Basics, Fragments, Modules, Blocks or Layouts to see your styles in action
  • Commit your changes

Test your changes on a local client

  • From within your platform-client installation run npm install ../platform-pattern-library/
  • Run gulp in your platform-client install
  • Check the results in the browser

Note: Its not 100% clear if this works as expected now we distribute the PL on npm.

Push changes to NPM

  • Assuming you have already committed your changes
  • Bump and tag a new version using npm version prepatch for a test release or npm version patch for a production release
  • Push the new version to npm using npm publish
  • Finally, push the new tag to git using git push --tags origin

Note: The pattern library version should stay in sync with the client.