Skip to content

Commit

Permalink
2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanksdesign committed Jun 8, 2018
1 parent cdc96db commit 8d00d8e
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 14 deletions.
12 changes: 6 additions & 6 deletions docs/formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,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**
```less
@color-background-base: #f0f0f0;
@color-background-alt: #eeeeee;
```
* * *
Expand All @@ -96,11 +96,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**
```less
@content-icon-email: '\E001';
.icon.email:before { content:@content-icon-email; }
```

* * *

Expand Down
5 changes: 3 additions & 2 deletions docs/transform_groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Transforms:
[attribute/cti](transforms.md#attributecti)
[name/cti/kebab](transforms.md#namectikebab)
[size/px](transforms.md#sizepx)
[color/hex](transforms.md#colorhex)
[color/css](transforms.md#colorcss)


* * *
Expand All @@ -44,7 +44,8 @@ Transforms:
[time/seconds](transforms.md#timeseconds)
[content/icon](transforms.md#contenticon)
[size/rem](transforms.md#sizerem)
[color/hex](transforms.md#colorhex)
[color/css](transforms.md#colorcss)


* * *

Expand Down
15 changes: 15 additions & 0 deletions docs/transforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,21 @@ Transforms the value into an UIColor class for iOS
```
* * *
### color/css
Transforms the value into a hex or rgb string depending on if it has transparency
```css
// Matches: prop.attributes.category === 'color'
// Returns:
#000000
rgba(0,0,0,0.5)
```


* * *

### size/sp
Expand Down
2 changes: 1 addition & 1 deletion example/complete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "2.1.0"
"style-dictionary": "2.2.0"
}
}
2 changes: 1 addition & 1 deletion example/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "2.1.0"
"style-dictionary": "2.2.0"
}
}
2 changes: 1 addition & 1 deletion example/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "2.1.0"
"style-dictionary": "2.2.0"
}
}
2 changes: 1 addition & 1 deletion example/s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"devDependencies": {
"aws-sdk": "^2.7.21",
"fs-extra": "^1.0.0",
"style-dictionary": "2.1.0"
"style-dictionary": "2.2.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.1.0",
"version": "2.2.0",
"description": "Style once, use everywhere. A build system for creating cross-platform styles.",
"keywords": [
"style dictionary",
Expand Down

0 comments on commit 8d00d8e

Please sign in to comment.