- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
15 lines
237 B
JavaScript
15 lines
237 B
JavaScript
/* IMPORT */
|
|
import Color from '../color/index.js';
|
|
/* MAIN */
|
|
const isValid = (color) => {
|
|
try {
|
|
Color.parse(color);
|
|
return true;
|
|
}
|
|
catch {
|
|
return false;
|
|
}
|
|
};
|
|
/* EXPORT */
|
|
export default isValid;
|