update
This commit is contained in:
+5
-1
@@ -55,7 +55,7 @@ color.rgbNumber() // 16777215 (0xffffff)
|
||||
Get the rgb number value.
|
||||
|
||||
```js
|
||||
color.hex() // 0xffffff
|
||||
color.hex() // #ffffff
|
||||
```
|
||||
Get the hex value.
|
||||
|
||||
@@ -93,7 +93,11 @@ Get whether the color is "light" or "dark", useful for deciding text color.
|
||||
color.negate() // rgb(0, 100, 255) -> rgb(255, 155, 0)
|
||||
|
||||
color.lighten(0.5) // hsl(100, 50%, 50%) -> hsl(100, 50%, 75%)
|
||||
color.lighten(0.5) // hsl(100, 50%, 0) -> hsl(100, 50%, 0)
|
||||
color.darken(0.5) // hsl(100, 50%, 50%) -> hsl(100, 50%, 25%)
|
||||
color.darken(0.5) // hsl(100, 50%, 0) -> hsl(100, 50%, 0)
|
||||
|
||||
color.lightness(50) // hsl(100, 50%, 10%) -> hsl(100, 50%, 50%)
|
||||
|
||||
color.saturate(0.5) // hsl(100, 50%, 50%) -> hsl(100, 75%, 50%)
|
||||
color.desaturate(0.5) // hsl(100, 50%, 50%) -> hsl(100, 25%, 50%)
|
||||
|
||||
+15
-15
@@ -1,32 +1,32 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"color@3.1.2",
|
||||
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
|
||||
"color@3.2.1",
|
||||
"/home/node/nuxt"
|
||||
]
|
||||
],
|
||||
"_from": "color@3.1.2",
|
||||
"_id": "color@3.1.2",
|
||||
"_from": "color@3.2.1",
|
||||
"_id": "color@3.2.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-vXTJhHebByxZn3lDvDJYw4lR5+uB3vuoHsuYA5AKuxRVn5wzzIfQKGLBmgdVRHKTJYeK5rvJcHnrd0Li49CFpg==",
|
||||
"_integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==",
|
||||
"_location": "/color",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "color@3.1.2",
|
||||
"raw": "color@3.2.1",
|
||||
"name": "color",
|
||||
"escapedName": "color",
|
||||
"rawSpec": "3.1.2",
|
||||
"rawSpec": "3.2.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "3.1.2"
|
||||
"fetchSpec": "3.2.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/postcss-colormin"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/color/-/color-3.1.2.tgz",
|
||||
"_spec": "3.1.2",
|
||||
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
|
||||
"_resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz",
|
||||
"_spec": "3.2.1",
|
||||
"_where": "/home/node/nuxt",
|
||||
"authors": [
|
||||
"Josh Junon <i.am.qix@gmail.com>",
|
||||
"Heather Arthur <fayearthur@gmail.com>",
|
||||
@@ -36,12 +36,12 @@
|
||||
"url": "https://github.com/Qix-/color/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"color-convert": "^1.9.1",
|
||||
"color-string": "^1.5.2"
|
||||
"color-convert": "^1.9.3",
|
||||
"color-string": "^1.6.0"
|
||||
},
|
||||
"description": "Color conversion and manipulation with CSS string support",
|
||||
"devDependencies": {
|
||||
"mocha": "^6.1.4",
|
||||
"mocha": "9.0.2",
|
||||
"xo": "0.12.1"
|
||||
},
|
||||
"files": [
|
||||
@@ -65,7 +65,7 @@
|
||||
"pretest": "xo",
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "3.1.2",
|
||||
"version": "3.2.1",
|
||||
"xo": {
|
||||
"rules": {
|
||||
"no-cond-assign": 0,
|
||||
|
||||
Reference in New Issue
Block a user