- types:
values.rgb
- TS type definitions
- README: replace david-dm.org with libraries.io
- upgrade and pin dependencies:
- mix-css-color 0.2.0
- parse-css-color 0.2.0
- parse-color 1.3.0
- alpha support
- #RRGGBBAA
- RGB CSS Color Module Level 4
- HSL CSS Color Module Level 4 (number, deg, rad & turn)
alpha
property to hold a value within0
and1
- pre-defined color keywords support
- transparent - Shorthand for transparent black, rgba(0,0,0,0)
- default value
#000
for whenundefined
,null
or<empty>
is passed to the constructor - editorconfig
- .eslintrc
lighthouse-ci
action forgh-pages
- refactor code
- move validations to parse-css-color
- move mix color functionality to mix-css-color
- add pure-color for color format conversion
throw
error if input is not a CSS string recognized byparse-css-color
rgb
property now returns an array in the form of[r, g, b]
instead of{ r: number, g: number, b: number }
hex
is now a getter (access backward-compatible)- if alpha is less than
1
it returns 8 digits now#RRGGBBAA
otherwise 6#RRGGBB
- if alpha is less than
hexString
method return value could include alpha- if alpha is less than
1
it returns 8 digits now#RRGGBBAA
otherwise 6#RRGGBB
- if alpha is less than
isTint
,isShade
andisBaseColor
properties replaced by newtype
fieldtype="tint"
type="shade"
type="base"
percentage
property is nowweight
and, it is included on every instance instead of just for tints and shadessetColor
return null if color is not accepted
- bower distribution
- properties
hsl
isTint
,isShade
,isBaseColor
- methods
hslString
- static utils functions
isHex
,isRGB
andisHSL
logic moved to parse-css-colormix
(moved to mix-css-color)
- shade is not defined
- ✨ new properties to the Array result of
vallues.all()
5f204a2
isTint: true
for tintsisShade: true
for shadesisBaseColor: true
for the original input color
- Added Changelog (this)
- updated README
f226453
- added params signature for methods
- added
hexString
,rgbString
andhslString
missing methods
- updated tests for new properties
1.0.3 - 2015-10-20
- npm and bower version badges
a7f04f5
1.0.2 - 2015-03-12
- CommonJS on linux: Require() is case sensitive on linux, so the example only worked on OSX. #1
1.0.1 - 2015-03-08
- white list distributed files on NPM
fc2ece8
- revert / return duplicated tints and shades, using an object to filter was messing the results ordering
79294f8
1.0.0 - 2015-03-08
- refactor
55bc6e6
- fixed tints and shades output actually mixing with white and black
- renamed methods
- getTints => tints
- getShades => shades
- getAll => all
- methods
- tint
- shade
- getBrightness
- hexString
- rgbString
- hslString
- methods
- setStep
- lighteness
- minified dist version
0.1.5 - 2014-09-16
- ignore case to isRGB and isHSL Util methods
17cf7d5
0.1.4 - 2014-09-16
- 0.1.4
287ba66
- add / hsl validaton support
- update / rgb validation
- add / tests
0.1.3 - 2014-09-06
0.1.2 - 2014-07-12
- bower support
- NPM main file
0.1.1 - 2014-07-02
- initial release