1.0.0 • Published 5 years ago

is-css3-color v1.0.0

Weekly downloads
36
License
MIT
Repository
github
Last release
5 years ago

is-css3-color

A simple tool to check whether a supplied string is a valid CSS3 compatible color value.

🤝 Contributing

Feel free to branch directly from /master and submit a pull request.

🚀 Getting Started

Using npm:

npm install --save is-css3-color

Using yarn:

yarn add is-css3-color

✍️ Example

const isCss3Color = require('is-css3-color');
isCss3Color('firebrick'); // true
isCss3Color('skyblue'); // true
isCss3Color('lightgrey'); // true
isCss3Color('#FFF'); // true
isCss3Color('hsl(360, 100%, 50%)'); // true
isCss3Color(undefined); // false
isCss3Color('cawfree'); //false

🙏 Dependencies

✌️ License

MIT