The graze front end framework and style guide.
Pistachio is available on the CloudFront CDN, with CORS support enabled.
A development release is available, uncached, and redeployed on every push to the master branch. Not recommended for use in live websites, use the latest versioned release instead.
<link href="https://pistachio-cdn.graze.com/dev/css/pistachio.css" rel="stylesheet">
For versioned releases of modules modify the url like so: https://pistachio-cdn.graze.com/<version>/css/<module>.css
- Accordion
- Alerts
- Breadcrumb
- Buttons
- Forms
- Navigation
- Off-screen-menu
- Page-sections
- Pagination
- Panels
- Progress
- Stickers
- Tables
A development release is available, uncached, and redeployed on every push to the master branch. Not recommended for use in live websites, use the latest versioned release instead.
<script src="https://pistachio-cdn.graze.com/dev/js/pistachio.js"></script>
Requires Jquery which can be loaded via CDN or locally.
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
~$ git clone https://github.com/graze/pistachio.git
~$ npm install -g gulp
~$ cd pistachio
To view the style guide locally:
~$ npm install
~$ npm start
Docs should now be visible on http://localhost:4000/
.
Make sure to regularly run npm update
to keep your dependencies up to date.
The style guide is a simple express app. More information about the express app can be found in the site README.
To watch LESS for changes and recompile the CSS:
~$ gulp dev
To compile the JavaScript:
~$ gulp build:js
The projects documentation and style guide is deployed to Heroku on every push to the master branch and is visible at http://pistachio.graze.com/.
Follow these simple steps to deploy a new version:
- Update
version
withinpackage.json
- Commit the changes to a new branch (with a good commit message)
- Push the new branch (
git push
) - Open a pull request and get it merged
- Tag the change (
git tag v0.0.x
) - Push the tag (
git push --tags
) - Travis CI will publish the new version to CloudFront
- Update the release notes on GitHub