14 packages found
Pure functions for color conversion and parsing
colorParsley() • a lightweight yet versatile color parsing function with no dependencies. Takes various color strings, numbers, or objects, and turns them into simple arrays. Bonus utilities colorToHex() and colorToRGB() included
See Stars • a lightweight set of utilities to take an sRGB or displayP3 color, and extract the CIE Y relative luminance, and then convert to CIE L* (perceptual lightness). Takes RGB colors as simple arrays (as created with colorParsley). Bonus utilities t
css color parsing, manupulation and conversion
Parsing, conversion and manipulation of RGBA, CSS and HSV colours, as well as vectors
A package for parsing, converting and editing colors
Array-based color types, CSS parsing, conversions, transformations, declarative theme generation, gradients, presets
Gnjo JS is a Pure TypeScript library that provides utility functions for parsing, tokenizing, and evaluating color strings and converting them to JavaScript object representations of color spaces. It also allows for conversion between color spaces, obtain
A library for parsing colors within the sRGB color space. it includes rgb(a), hsl(a), hsv(a), hex and cmyk. It mainly focuses on web standards, which is why it has build in css support. However, it may be used in any application that follows the css color
CSS color values parsing and serialization plugin for Paint Bucket.
X11 color name parsing plugin for Paint Bucket.
Parse, convert and interpolate colors and create colormaps.
An ES2019+ color class that simplifies color parsing and conversion. Implements most common color functions.
An adaptation of `parse-color` that returns color values as objects, instead of arrays.