Skip to content

Commit

Permalink
feat(Color): Returns most readable color, black or white (#217)
Browse files Browse the repository at this point in the history
Uses W3C convention to determine if black or white is more readable (greater luminosity difference)
  • Loading branch information
bhough committed Aug 8, 2017
1 parent 01c02e4 commit 147370e
Show file tree
Hide file tree
Showing 7 changed files with 533 additions and 294 deletions.
1 change: 1 addition & 0 deletions .documentation.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"opacify",
"parseToHsl",
"parseToRgb",
"readableColor",
"rgb",
"rgba",
"saturate",
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ In the documentation you will see examples using [object spread properties](http
<li><a href="http://polished.js.org/docs/#opacify">opacify</a></li>
<li><a href="http://polished.js.org/docs/#parsetohsl">parseToHsl</a></li>
<li><a href="http://polished.js.org/docs/#parsetorgb">parseToRgb</a></li>
<li><a href="http://polished.js.org/docs/#readablecolor">readableColor</a></li>
<li><a href="http://polished.js.org/docs/#rgb">rgb</a></li>
<li><a href="http://polished.js.org/docs/#rgba">rgba</a></li>
<li><a href="http://polished.js.org/docs/#saturate">saturate</a></li>
Expand Down

0 comments on commit 147370e

Please sign in to comment.