buffer-style
buffer-style copied to clipboard
The Buffer Style Guide
buffer-style-guide
A unified style and components to use across Buffer applications and services
Usage
To use in your project. Use npm to install and use either Webpack or browserify to build your project:
$ npm install --save buffer-style
React components
// ES5
var Card = require('buffer-style').Card;
// ES2015
import { Card } from 'buffer-style'
CSS
To use the css in your project copy the stylesheet from your node_modules
directory. Example:
$ cp ./node_modules/buffer-style/dist/css/style.css ./my-app/assets/style-code.css
Development
Installing
$ git clone [email protected]:bufferapp/buffer-style.git
$ npm install
$ npm install -g gulp
Start the dev server and watch compilation
This will start a server at http://localhost:3000 and auto-compile all css and
javascript bundles.
$ npm start
Webpack dev Server
*Work in Progress*
Publishing
To publish the style guide for consumption on npm, first run the prepublish task.
$ npm run prepublish
$ npm publish
To publish on Github pages run:
WARNING! Commit all changes! 😅👍
$ npm run github-pages
Directory Structure
/src - all source files for react components and scss files
/public - all files for rendering the style guide only
/dist - all css and js files built to be included in other projects