Skip to content

Commit

Permalink
Merge pull request #44 from Esri/es6
Browse files Browse the repository at this point in the history
Add ES6 module
  • Loading branch information
paulcpederson authored Jan 3, 2020
2 parents 9b65321 + af396f1 commit ef81614
Show file tree
Hide file tree
Showing 4 changed files with 528 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## 1.7.0 - 2020-01-03
* Add ES6 module format

## 1.6.0 - 2019-12-05
* updated nomenclature for pressed to press. Keep consistent with hover/press vs hovered/pressed.
* Added border color values for light and dark theme. border 1, 2, 3, hover, and press states.
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ The following links are to download the .ase swatch for use in Adobe products su
## SASS Variables file
A [SASS](http://sass-lang.com/) variables file can be found in the root directory `colors.scss`. This is the main source to consume the color variables.

## ES6 Export
In a modern javascript environment you can import the colors via ES6 import:

```js
import colors from "@esri/calcite-colors/colors.js";

console.log(colors["ui-blue"]); // => "#007ac2"
```

## JSON file
A simple JSON file is also included in the root directory `colors.json`. This file includes a simple object containing every color of the palette as key value pairs.

Expand Down
Loading

0 comments on commit ef81614

Please sign in to comment.