@symbo.ls/scratch 2.11.524 → 2.11.525
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/utils/color.js +1 -1
- package/dist/cjs/utils/index.js +1 -1
- package/package.json +2 -2
- package/src/utils/color.js +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -774,7 +774,7 @@ var mixTwoRgba = (colorA, colorB, range = 0.5) => {
|
|
|
774
774
|
var opacify = (color, opacity) => {
|
|
775
775
|
const arr = colorStringToRgbaArray(color);
|
|
776
776
|
if (!arr) {
|
|
777
|
-
if (ENV === "
|
|
777
|
+
if (ENV === "testing" || ENV === "development")
|
|
778
778
|
console.warn(color + " color is not rgba");
|
|
779
779
|
return;
|
|
780
780
|
}
|
package/dist/cjs/utils/color.js
CHANGED
|
@@ -223,7 +223,7 @@ var mixTwoRgba = (colorA, colorB, range = 0.5) => {
|
|
|
223
223
|
var opacify = (color, opacity) => {
|
|
224
224
|
const arr = colorStringToRgbaArray(color);
|
|
225
225
|
if (!arr) {
|
|
226
|
-
if (ENV === "
|
|
226
|
+
if (ENV === "testing" || ENV === "development")
|
|
227
227
|
console.warn(color + " color is not rgba");
|
|
228
228
|
return;
|
|
229
229
|
}
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -596,7 +596,7 @@ var mixTwoRgba = (colorA, colorB, range = 0.5) => {
|
|
|
596
596
|
var opacify = (color, opacity) => {
|
|
597
597
|
const arr = colorStringToRgbaArray(color);
|
|
598
598
|
if (!arr) {
|
|
599
|
-
if (ENV === "
|
|
599
|
+
if (ENV === "testing" || ENV === "development")
|
|
600
600
|
console.warn(color + " color is not rgba");
|
|
601
601
|
return;
|
|
602
602
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@symbo.ls/scratch",
|
|
3
3
|
"description": "Φ / CSS framework and methodology.",
|
|
4
4
|
"author": "symbo.ls",
|
|
5
|
-
"version": "2.11.
|
|
5
|
+
"version": "2.11.525",
|
|
6
6
|
"files": [
|
|
7
7
|
"src",
|
|
8
8
|
"dist"
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"@symbo.ls/utils": "^2.11.512",
|
|
31
31
|
"color-contrast-checker": "^1.5.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "bb2c3e1bde158c44d3104c787eaa8b2b88ffa2d7"
|
|
34
34
|
}
|
package/src/utils/color.js
CHANGED
|
@@ -152,7 +152,7 @@ export const mixTwoRgba = (colorA, colorB, range = 0.5) => {
|
|
|
152
152
|
export const opacify = (color, opacity) => {
|
|
153
153
|
const arr = colorStringToRgbaArray(color)
|
|
154
154
|
if (!arr) {
|
|
155
|
-
if (ENV === '
|
|
155
|
+
if (ENV === 'testing' || ENV === 'development') console.warn(color + ' color is not rgba')
|
|
156
156
|
return
|
|
157
157
|
}
|
|
158
158
|
arr[3] = opacity
|