Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.6.0 release #210

Merged
merged 1 commit into from
Dec 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 28 additions & 28 deletions docs/formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ You created a format and think it should be included? [Send us a PR](https://git

Creates a CSS file with variable definitions based on the style dictionary

**Example**
**Example**
```css
:root {
--color-background-base: #f0f0f0;
Expand All @@ -107,7 +107,7 @@ Creates a CSS file with variable definitions based on the style dictionary

Creates a Sass file with a flat map based on the style dictionary

**Example**
**Example**
```scss
$tokens: (
$color-background-base: #f0f0f0;
Expand All @@ -122,7 +122,7 @@ $tokens: (

Creates a Sass file with a deep map based on the style dictionary

**Example**
**Example**
```scss
$color-background-base: #f0f0f0 !default;
$color-background-alt: #eeeeee !default;
Expand All @@ -144,7 +144,7 @@ $tokens: {

Creates a SCSS file with variable definitions based on the style dictionary

**Example**
**Example**
```scss
$color-background-base: #f0f0f0;
$color-background-alt: #eeeeee;
Expand All @@ -157,7 +157,7 @@ $color-background-alt: #eeeeee;

Creates a SCSS file with variable definitions and helper classes for icons

**Example**
**Example**
```scss
$content-icon-email: '\E001';
.icon.email:before { content:$content-icon-email; }
Expand All @@ -170,11 +170,11 @@ $content-icon-email: '\E001';

Creates a LESS file with variable definitions based on the style dictionary

**Color-background-base:**: #f0f0f0;
**Color-background-alt:**: #eeeeee;
```
**Example**
**Example**
```less
@color-background-base: #f0f0f0;
@color-background-alt: #eeeeee;
```

* * *

Expand All @@ -183,11 +183,11 @@ Creates a LESS file with variable definitions based on the style dictionary

Creates a LESS file with variable definitions and helper classes for icons

**Content-icon-email:**: '\E001';
.icon.email:before { content:@content-icon-email; }
```
**Example**
**Example**
```less
@content-icon-email: '\E001';
.icon.email:before { content:@content-icon-email; }
```

* * *

Expand All @@ -196,7 +196,7 @@ Creates a LESS file with variable definitions and helper classes for icons

Creates a CommonJS module with the whole style dictionary

**Example**
**Example**
```js
module.exports = {
color: {
Expand All @@ -217,7 +217,7 @@ module.exports = {
Creates a JS file a global var that is a plain javascript object of the style dictionary.
Name the variable by adding a 'name' attribute on the file object in your config.

**Example**
**Example**
```js
var StyleDictionary = {
color: {
Expand All @@ -239,7 +239,7 @@ Creates a [UMD](https://github.com/umdjs/umd) module of the style
dictionary. Name the module by adding a 'name' attribute on the file object
in your config.

**Example**
**Example**
```js
(function(root, factory) {
if (typeof module === "object" && module.exports) {
Expand Down Expand Up @@ -290,7 +290,7 @@ Creates a ES6 module of the style dictionary.
}
```

**Example**
**Example**
```js
export const ColorBackgroundBase = '#ffffff';
export const ColorBackgroundAlt = '#fcfcfcfc';
Expand All @@ -303,7 +303,7 @@ export const ColorBackgroundAlt = '#fcfcfcfc';

Creates a color resource xml file with all the colors in your style dictionary.

**Example**
**Example**
```xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
Expand All @@ -319,7 +319,7 @@ Creates a color resource xml file with all the colors in your style dictionary.

Creates a dimen resource xml file with all the sizes in your style dictionary.

**Example**
**Example**
```xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
Expand All @@ -335,7 +335,7 @@ Creates a dimen resource xml file with all the sizes in your style dictionary.

Creates a dimen resource xml file with all the font sizes in your style dictionary.

**Example**
**Example**
```xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
Expand All @@ -356,7 +356,7 @@ style properties by `prop.attributes.category === 'time'`

- Update the filter on this.

**Example**
**Example**
```xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
Expand All @@ -373,7 +373,7 @@ style properties by `prop.attributes.category === 'time'`
Creates a resource xml file with all the strings in your style dictionary. Filters your
style properties by `prop.attributes.category === 'content'`

**Example**
**Example**
```xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
Expand All @@ -389,7 +389,7 @@ style properties by `prop.attributes.category === 'content'`

Creates an Objective-C header file with macros for style properties

**Example**
**Example**
```objectivec
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
Expand Down Expand Up @@ -525,7 +525,7 @@ Creates CSS file with @font-face declarations

Creates a JSON file of the style dictionary.

**Example**
**Example**
```json
{
"color": {
Expand All @@ -545,7 +545,7 @@ Creates a JSON file of the style dictionary.

Creates a JSON file of just the assets defined in the style dictionary.

**Example**
**Example**
```js
{
"asset": {
Expand All @@ -565,7 +565,7 @@ Creates a JSON file of just the assets defined in the style dictionary.

Creates a JSON nested file of the style dictionary.

**Example**
**Example**
```json
{
"color": {
Expand All @@ -583,7 +583,7 @@ Creates a JSON nested file of the style dictionary.

Creates a JSON flat file of the style dictionary.

**Example**
**Example**
```json
{
"color-base-red": "#ff000"
Expand All @@ -597,7 +597,7 @@ Creates a JSON flat file of the style dictionary.

Creates a sketchpalette file of all the base colors

**Example**
**Example**
```json
{
"compatibleVersion": "1.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/advanced/assets-base64-embed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "2.5.0"
"style-dictionary": "2.6.0"
}
}
4 changes: 2 additions & 2 deletions examples/advanced/auto-rebuild-watcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"license": "Apache-2.0",
"devDependencies": {
"chokidar-cli": "^1.2.0",
"style-dictionary": "2.4.0"
"style-dictionary": "2.6.0"
}
}
}
4 changes: 2 additions & 2 deletions examples/advanced/custom-templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"handlebars": "^4.0.12",
"lodash": "^4.17.11",
"pug": "^2.0.3",
"style-dictionary": "2.4.0"
"style-dictionary": "2.6.0"
}
}
}
4 changes: 2 additions & 2 deletions examples/advanced/custom-transforms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "2.4.0"
"style-dictionary": "2.6.0"
}
}
}
4 changes: 2 additions & 2 deletions examples/advanced/multi-brand-multi-platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "2.4.0"
"style-dictionary": "2.6.0"
}
}
}
2 changes: 1 addition & 1 deletion examples/advanced/npm-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "2.5.0"
"style-dictionary": "2.6.0"
}
}
4 changes: 2 additions & 2 deletions examples/advanced/referencing_aliasing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "2.5.0"
"style-dictionary": "2.6.0"
}
}
}
2 changes: 1 addition & 1 deletion examples/advanced/s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"devDependencies": {
"aws-sdk": "^2.7.21",
"fs-extra": "^1.0.0",
"style-dictionary": "2.5.0"
"style-dictionary": "2.6.0"
}
}
2 changes: 1 addition & 1 deletion examples/complete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "2.5.0"
"style-dictionary": "2.6.0"
}
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "style-dictionary",
"version": "2.5.0",
"version": "2.6.0",
"description": "Style once, use everywhere. A build system for creating cross-platform styles.",
"keywords": [
"style dictionary",
Expand Down