Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appearance

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appearance - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

bower.json
{
"name": "appearance",
"version": "0.0.1",
"version": "0.0.2",
"description": "Appearance customization",

@@ -5,0 +5,0 @@ "main": [ "main.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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc