🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

ember-cli-tinycolor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-tinycolor

Ember Addon wrapping TinyColor.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

ember-cli-tinycolor

Simply wraps tinycolor into Ember, allowing you to do a wide range of color tests, conversions and transformations, such as:

tinycolor("#fff").isDark();  // false
tinycolor("#fff").isLight(); // true
tinycolor("#f00").lighten().toString(); // "#ff3333"
tinycolor("#f00").brighten().toString(); // "#ff1919"
tinycolor("#f00").darken().toString(); // "#cc0000"
tinycolor("#f00").desaturate().toString(); // "#f20d0d"
tinycolor("hsl(0, 10%, 50%)").saturate().toString(); // "hsl(0, 20%, 50%)"
tinycolor("#f00").greyscale().toString(); // "#808080"

... and many others - check out the tinycolor README for more.

Big thanks to Brian Grinstead for TinyColor!

Installation

ember install ember-cli-tinycolor

Usage

Simply import tinycolor from 'tinycolor'; in any controller/service/component/route etc as needed.

Keywords

ember-addon

FAQs

Package last updated on 14 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts