Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "appearance", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Appearance customization", | ||
@@ -5,0 +5,0 @@ "main": [ "main.js" ], |
16
index.js
@@ -30,6 +30,6 @@ (function() { | ||
if (label.contains('tinted')) { | ||
if (label.indexOf('tinted') != -1) { | ||
color = _this.spectra(value); | ||
value = color.mix(_this.spectra('white'), 80); | ||
if (label.contains('background-color')) { | ||
if (label.indexOf('background-color') != -1) { | ||
property = 'background-color'; | ||
@@ -39,6 +39,6 @@ } else { | ||
} | ||
} else if (label.contains('hover')) { | ||
} else if (label.indexOf('hover') != -1) { | ||
color = _this.spectra(value); | ||
value = color.isLight() ? color.darken(10).hex() : color.lighten(10).hex(); | ||
if (label.contains('background-color')) { | ||
if (label.indexOf('background-color') != -1) { | ||
property = 'background-color'; | ||
@@ -48,11 +48,11 @@ } else { | ||
} | ||
} else if (label.contains('contrast-color')) { | ||
} else if (label.indexOf('contrast-color') != -1) { | ||
color = _this.spectra(value); | ||
value = color.isLight() ? '#111' : '#fff'; | ||
property = 'color'; | ||
} else if (label.contains('background')) { | ||
} else if (label.indexOf('background') != -1) { | ||
property = 'background-color'; | ||
} else if (label.contains('border')) { | ||
} else if (label.indexOf('border') != -1) { | ||
property = 'border-color'; | ||
} else if (label.contains('font')) { | ||
} else if (label.indexOf('font') != -1) { | ||
property = 'font-family'; | ||
@@ -59,0 +59,0 @@ value += ', sans-serif'; |
{ | ||
"name": "appearance", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"repository": "thoughtindustries/appearance", | ||
@@ -5,0 +5,0 @@ "description": "Appearance customization", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3334