Skip to content

Commit ef00b00

Browse files
committed
3.0.1
1 parent 6a1a6fc commit ef00b00

File tree

7 files changed

+23
-8
lines changed

7 files changed

+23
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changes to PostCSS color-mod() Function
22

3+
### 3.0.1 (September 18, 2018)
4+
5+
- Fixed an issue with using the `transparent` color keyword
6+
- Updated to PostCSS Values Parser 2
7+
38
### 3.0.0 (August 30, 2018)
49

510
- Added `importFrom` option which allows you to import Custom Properties from

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[![NPM Version][npm-img]][npm-url]
44
[![CSS Standard Status][css-img]][css-url]
55
[![Build Status][cli-img]][cli-url]
6-
[![Windows Build Status][win-img]][win-url]
76
[![Support Chat][git-img]][git-url]
87

98
[PostCSS color-mod() Function] lets you modify colors using the `color-mod()`
@@ -199,8 +198,6 @@ be used.
199198
[git-url]: https://gitter.im/postcss/postcss
200199
[npm-img]: https://img.shields.io/npm/v/postcss-color-mod-function.svg
201200
[npm-url]: https://www.npmjs.com/package/postcss-color-mod-function
202-
[win-img]: https://img.shields.io/appveyor/ci/jonathantneal/postcss-color-mod-function.svg
203-
[win-url]: https://ci.appveyor.com/project/jonathantneal/postcss-color-mod-function
204201

205202
[CSS Color Module Level 4]: https://www.w3.org/TR/css-color-4/#funcdef-color-mod
206203
[Gulp PostCSS]: https://github.com/postcss/gulp-postcss

lib/conversions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ export function convertNtoRGB(name) {
172172
teal: [0, 128, 128],
173173
thistle: [216, 191, 216],
174174
tomato: [255, 99, 71],
175+
transparent: [0, 0, 0],
175176
turquoise: [64, 224, 208],
176177
violet: [238, 130, 238],
177178
wheat: [245, 222, 179],

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "postcss-color-mod-function",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "Modify colors using the color-mod() function in CSS",
55
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
66
"license": "CC0-1.0",
77
"repository": "jonathantneal/postcss-color-mod-function",
88
"homepage": "https://github.com/jonathantneal/postcss-color-mod-function#readme",
99
"bugs": "https://github.com/jonathantneal/postcss-color-mod-function/issues",
1010
"main": "index.cjs.js",
11-
"module": "index.es.js",
11+
"module": "index.es.mjs",
1212
"files": [
1313
"index.cjs.js",
1414
"index.cjs.js.map",
@@ -29,12 +29,12 @@
2929
"dependencies": {
3030
"@csstools/convert-colors": "^1.4.0",
3131
"postcss": "^7.0.2",
32-
"postcss-values-parser": "^1.5.0"
32+
"postcss-values-parser": "^2.0.0"
3333
},
3434
"devDependencies": {
35-
"@babel/core": "^7.0.1",
35+
"@babel/core": "^7.1.0",
3636
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
37-
"@babel/preset-env": "^7.0.0",
37+
"@babel/preset-env": "^7.1.0",
3838
"babel-eslint": "^9.0.0",
3939
"echint": "^4.0.1",
4040
"eslint": "^5.6.0",

test/basic.colors.expect.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,7 @@ test-linear-gradient {
141141
test-var-blend {
142142
color: rgb(90% 0% 10%);
143143
}
144+
145+
test-transparent {
146+
color: rgb(0% 0% 0%);
147+
}

test/basic.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,7 @@ test-linear-gradient {
141141
test-var-blend {
142142
color: color-mod(var(--color-red) blend(var(--color) 10%));
143143
}
144+
145+
test-transparent {
146+
color: color-mod(transparent shade(10%));
147+
}

test/basic.expect.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,7 @@ test-linear-gradient {
141141
test-var-blend {
142142
color: rgb(230, 0, 26);
143143
}
144+
145+
test-transparent {
146+
color: rgb(0, 0, 0);
147+
}

0 commit comments

Comments
 (0)