Check if a string is CSS color stop

\href{https://npmjs.org/package/is-color-stop}{\texttt{ }} \href{https://travis-ci.org/pigcan/is-color-stop}{\texttt{ }} \href{https://coveralls.io/r/pigcan/is-color-stop}{\texttt{ }} \href{https://npmjs.org/package/is-color-stop}{\texttt{ }} \href{https://david-dm.org/pigcan/is-color-stop}{\texttt{ }}\hypertarget{md_sfcode_node_modules_is_color_stop_README_autotoc_md12999}{}\doxysection{Install}\label{md_sfcode_node_modules_is_color_stop_README_autotoc_md12999}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install is-\/color-\/stop }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_color_stop_README_autotoc_md13000}{}\doxysection{Usage}\label{md_sfcode_node_modules_is_color_stop_README_autotoc_md13000}

\begin{DoxyCode}{0}
\DoxyCodeLine{const isColorStop = require('is-\/color-\/stop');}
\DoxyCodeLine{}
\DoxyCodeLine{isColorStop('yellow') // true}
\DoxyCodeLine{isColorStop('yellow', '12px') // true}
\DoxyCodeLine{isColorStop('yellow', 'calc(100\%)') // true}
\DoxyCodeLine{isColorStop('yellow', 'px') // false}
\DoxyCodeLine{}
\DoxyCodeLine{isColorStop.isColor('red') // true}
\DoxyCodeLine{isColorStop.isColor('rgb(255)') // false}
\DoxyCodeLine{}
\DoxyCodeLine{isColorStop.isRGB('rgb(255, 0, 0)') // true}
\DoxyCodeLine{isColorStop.isRGB('rgb(255)') // false}
\DoxyCodeLine{}
\DoxyCodeLine{isColorStop.isRGBA('rgba(255, 0, 0, .8)') // true}
\DoxyCodeLine{isColorStop.isRGBA('rgba(255, 0, 0)') // false}
\DoxyCodeLine{}
\DoxyCodeLine{isColorStop.isHSL('hsl(123, 45\%, 67\%)') // true}
\DoxyCodeLine{isColorStop.isHSL('hsl(123, 45\%)') // false}
\DoxyCodeLine{}
\DoxyCodeLine{isColorStop.isHSLA('hsla(123, 45\%, 67\%, 0.4)') // true}
\DoxyCodeLine{isColorStop.isHSLA('hsla(123, 45\%, 67\%)') // false}
\DoxyCodeLine{}
\DoxyCodeLine{isColorStop.isHex('\#fff') // true}
\DoxyCodeLine{isColorStop.isHex('\#ff') // false}
\DoxyCodeLine{}
\DoxyCodeLine{isColorStop.isCSSColorName('tomato') // true}
\DoxyCodeLine{isColorStop.isCSSColorName('hoge') // false}
\DoxyCodeLine{}
\DoxyCodeLine{isColorStop.isCSSLengthUnit('px') // true}
\DoxyCodeLine{isColorStop.isCSSLengthUnit('x') // false}
\DoxyCodeLine{}
\DoxyCodeLine{isColorStop.isTransparent('transparent') // true }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_color_stop_README_autotoc_md13001}{}\doxysection{License}\label{md_sfcode_node_modules_is_color_stop_README_autotoc_md13001}
The MIT License (MIT)

Copyright (c) 2017 Pigcan 