{"library":"color-fns","type":"library","category":null,"description":"color-fns is a modern, modular, and tree-shakable JavaScript utility library designed for comprehensive color manipulation and conversion. Inspired by the API design of `date-fns`, it emphasizes lightweight, individual function imports for optimal bundle sizes. The current stable version is 0.1.1, following a significant rewrite in version 0.1.0 that introduced a new, TypeScript-first API with reduced overloads and clearer handling of color values. The library supports multiple color models (RGB, HSL, HSV, CMYK, Hex) and offers functions for parsing, conversion, operations (like mixing), formatting to CSS-compatible output, validation, and querying (e.g., contrast, darkness). While still in pre-1.0 status, its development appears active, with a focus on type safety and modern JavaScript practices. Key differentiators include its modularity, explicit TypeScript types, and a clear, functional API.","language":"javascript","status":"active","version":"0.1.1","tags":["javascript","color","utility","functions","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install color-fns","imports":["import { toRgb } from 'color-fns';","import { mix } from 'color-fns';","import { formatHex } from 'color-fns';"]},{"cmd":"yarn add color-fns","imports":[]},{"cmd":"pnpm add color-fns","imports":[]}],"homepage":null,"github":"https://github.com/baianat/color-fns","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/color-fns","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/color-fns/compatibility"}}