3 Repos
Utilities for verifying that a given input string or object is a valid representation of a color.
Distinguishing note: Shortlist candidates are either generic color libraries or specific UI components; this is a validation utility.
Explore 3 awesome GitHub repositories matching user interface & experience · Color Format Validators. Refine with filters or upvote what's useful.
chroma.js is a JavaScript library for color manipulation, space conversion, and the generation of data visualization color scales. It provides a system for transforming colors between formats including RGB, HSL, Lab, LCH, OKLab, and CMYK, alongside tools for parsing and modifying colors across these spaces. The library specializes in data-driven color mapping, using algorithms such as Cubehelix, Bezier interpolation, and ColorBrewer palettes to translate numeric data into visual gradients. It includes a perceptual color difference calculator that utilizes CIE 2000 Delta E and Euclidean metric
Checks if a given input can be correctly parsed as a valid color format.
Valibot is a modular, type-safe schema library for validating and parsing structural data in TypeScript environments.
Verifies that a string is a valid hexadecimal color representation.
Any-rule is a multi-platform regular expression tool that provides a curated catalog of over 70 ready-to-use patterns for validating and extracting common data formats. The project separates its static regex collection from editor-specific plugins, allowing the same pattern library to be accessed through VS Code, IntelliJ IDEA, Alfred Workflow, and a web interface. The tool enables keyword-based pattern retrieval, letting users search for the correct regex by typing descriptive terms rather than remembering exact syntax. It covers a broad range of validation needs including email addresses, U
Provides a regex pattern to validate hex color code format.