quinoa-design-library
v0.1.10
Published
design library (components and styling themes) for quinoa components
Downloads
4
Readme
Quinoa design library (WIP)
This repository exposes the design library used in quinoa projects. A design library/system is a centralized and general set of rules and operational elements (design files, stylesheets, components) to use within a family of user interfaces.
Usage
For developers
yarn add quinoa-design-library
# or
npm install --save quinoa-design-library
Then :
// importing a component
import Button from 'quinoa-design-library/components/Buttons';
// importing style from one of the themes
import style from 'quinoa-design-library/themes/millet/style.css';
// import icon assets from one of the themes
import icons from 'quinoa-design-library/themes/millet/icons';
Development
git clone https://github.com/medialab/quinoa-design-library
cd quinoa-design-library
yarn
Development scripts :
# run storybook to review components and mock views
yarn run storybook
# take screenshots of components and mock views (for design purposes or visual regression testing)
yarn screenshots
# lint code (autofix enabled)
yarn lint
# transpile babel code to plain js and package themes styles and assets
yarn build
For designers (WIP)
The system relies on story2sketch tool.
Use this design library in sketch :
- copy from this repostory to your drive the content the asketch file representing this library
- install the asketch2sketch.sketch plugin
- in sketch, go to
Plugins > From *Almost* Sketch to Sketch in Sketch menu bar.
and select the file copied from step 1. You should have added to your file a library of symbols taken from the library