README
Graphene Style Kit
Introduction
The Graphene Style Kit was developed for 3 reasons:
- To give developers access to re-usable styles, modules, mixins and functions that will help them develop more consistent website experiences.
- To maintain consistency between sites across the Akwaba ecosystem (akwabasystems.com, 1universityavenue, etc).
- To support a living styleguide for Akwaba sites, which includes base typographic styles, a uniform color palette, and cool modules that should be used throughout the sites.
The Graphene Style Kit should not:
- Limit developers to building "templated product sites". Each site should be free to tell its story, in its own way.
- Limit developers' ability to develop new experiences.
- Force itself entirely on developers. Modules should be "pick and choose", and customizable. Overhead and over-writing in projects should be avoided.
Usage
// First, add the required version of "@akwaba/graphene" as a dependency to your project. Add the following
// to your package.json file:
"devDependencies": {
"@akwaba/graphene": "1.0.0",
...
}
// Second, import the toolkit at the top of your main style file (i.e. app.scss)
// Note the "~" at the beginning of the URL; it instructs Webpack to treat the URL as absolute
@import '~@akwaba/graphene/src/scss/core';
// Finally, define all additional CSS declarations and/or imports
Development with Graphene
First, add @akwaba/graphene to your project as specified in the Usage section
Build your app (this code snippet assumes a production build)
$ npm install $ npm run build
- If using Webpack Dev Server, run the following script:
npm start
- If using Webpack Dev Server, run the following script:
Create something cool!