@growth-tools/brand
v1.0.2
Published
A package for styles and branding shared across Growth Tools web domains.
Downloads
3
Readme
@growth-tools/brand npm package
This npm package contains styles and branding shared across Growth Tools web domains.
How to use
Install @growth-tools/brand
$ npm install --save @growth-tools/brand
File naming and file structure for scss files and styles
The scss files in this project are set up to house different functionalities. In order to keep consistent, the following guide outlines which files contain which types of styles.
assets fonts: this folder contains the actual font files (for now) js scss abstracts fonts: this is where font styles/font families are houses mixins: this is where mixins are housed variables_master: this is where your variables are houses ex: $green: #2cd886; base globals: this is where your base styles are housed ex: basic structure that is true across all pages resets: this is where your styles go that override and align various browser differences components buttons: global button styles, colors should correspond with brand forms: global form styles, colors should correspond with brand pages example: this is where page specific styles are located, ex: _home.scss main.scss: this is where all your import statements are located
How to test locally
- Clone this repository to your local machine.
- Navigate to the
brand
directory and install dependencies:
$ cd /path/to/@growth-tools/brand
$ npm install
- Link the package to your local test project:
$ npm link; # while still in @growth-tools/brand directory
$ cd /path/to/local/test/project
$ npm link @growth-tools/brand
(Documentation for npm link
).
- The package should now be accessible to your local project for testing. Use as described above.