The Patterns Color repo is where we host Esri's official color documentation that can be see on the forth coming Patterns.esri.com site. Currently the repo contains a mixture of CSS, SASS and Stylus files tha you can use in your projects.
Feel free to download the files for use in your project or add a reference in your files that points to the CDN files CDN Link Coming Soon
. Also feel free to use a Submodule
to import these files into your project.
The following links are to download .ase swatch files for use in Adobe Products such as Photoshop and Illustrator.
A SASS variables file can be found in the SCSS folder scss/variables.scss
. To learn how to use Variable
files within SASS please read USING SASS Variables.
A Stylus variables file can be found in the Styus folder stylus/variables.scss
. To learn how to use Variable
files within Styus please read USING Styus Variables.
A set of CSS reference files have been added to the CSS folder:
css/brand_colors.css
css/calcite_core_colors.css
css/calcite_gray_colors.css
css/calcite_highlight_colors.css
css/calcite_vibrant_colors.css
css/complete.css
<- all of the above compiled into one file.
Very shortly we will list out a set of URL's from our CDN which can be used in your local projects.
The Patterns JSON folder contains the source files that are used to build the pages on Patterns.esri.com and should NOT be used within a project as they contain lots of information not needed for standalone projects. These files are created using SCSS.
Installing Patterns Color was designed to be fairly painless. If you have any problems, be sure to submit an issue.
All the code for Patterns Color lives on GitHub. We use the fork and pull model to manage contribution.
- Fork the repository so you have your own copy (
your-username/patterns-color
) - Clone the repo locally with
git clone https://github.com/your-username/patterns-color
- Move into the clone repo:
cd patterns-color
You should also add Esri/patterns-color
as a remote at this point. We generally call this remote branch 'upstream':
git remote add upstream https://github.com/Esri/patterns-color
All the code for Patterns Color lives on GitHub. We use the fork and pull model to manage contribution. To contribute, you should:
- Commit your changes.
- Note your changes in
CHANGELOG.md
- Make sure your copy is up to date:
git pull upstream master
- Push your changes to your fork:
/your-username/patterns-color
- Open a pull-request from your fork (
/your-username/patterns-color
) to the 'upstream' fork (/Esri/patterns-color
).
To release a new version of Patterns Color:
- Update the
CHANGELOG.md
with documentation about the release. Preserve the existing format. - Update the
package.json
with the new version number. - From the command line:
$ npm run release
- Add Color swatch files for Adobe
- Add Color PDF file
- Add link to the CDN