Search results

98 packages found

React higher-order component to automatically enforce color accessibility

published 1.3.4 14 days ago
M
Q
P

Color utilities and parsers

published 0.0.2 8 years ago
M
Q
P

This package could get the contrast ratio between two colors, one color & the main color of an image, or the top-2 main colors of an image.

published 1.0.2 a year ago
M
Q
P

Converts a RGG color, of a specific base palette, to a desired contrast value. This allows any primary color to be WCAG 2.0 Level AAA accessible.

published 6.0.0 5 years ago
M
Q
P

a vanilla js function that takes in an array of colors and returns the wcag contrast scors of all of their combinaations

published 4.0.0 3 years ago
M
Q
P

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

published 0.0.1 2 years ago
M
Q
P

An Angular-compatible color generator package that creates a color palette with 10 variations from a single base color, ranging from lighter to darker shades. It is an adaptation of the 'color-scheme-figma-plugin' package, modified to seamlessly integrate

published 1.17.0 6 months ago
M
Q
P

Calculate the color in an array of colors that gives the highest contrast to another color.

published 0.3.1 5 years ago
M
Q
P

test whether a color is dark or light

published 1.0.4 9 years ago
M
Q
P

JavaScript module to use black or white font according to the given background color

published 11.1.0 2 years ago
M
Q
P

A selection of a11y helpful functions for working with HEX colors.

published 1.0.2 3 years ago
M
Q
P

JavaScript Library for Setting Text Color According to Background-Color

published 1.0.2 6 years ago
M
Q
P

color contrast utils

published 1.0.0 3 years ago
M
Q
P

Evaluate if a to colors have sufficient contrast to pass WCAG requirements.

published 0.2.1 5 years ago
M
Q
P

evaluate the wcag color contrast score for two colors

published 3.0.0 5 years ago
M
Q
P

Allows you to control Hue, Saturation, and Relative Luminance as if it where a color space. Inputs are the Hue, Saturation, and Relative Luminance of a color, and output is an array of RGB values ranging from 0 to 1, 0 to 255, and a string containing the

published 1.0.0 5 months ago
M
Q
P

Delta Phi Star is a general purpose method of determining perceptual lightness contrast developed by Andrew Somers (Myndex Research), and is a sibling of APCA and SACAM. It is a simplified method using easily invertible standardized maths, however it lack

published 0.0.1 2 years ago
M
Q
P

Utility functions for working with colors in adherence to WCAG 2.1 guidelines.

published 1.0.5 10 months ago
M
Q
P

Get relative luminance from a color string.

published 1.0.0 5 years ago
M
Q
P

WCAG 2.0 AA contrast checker for DOM elements

published 1.0.2 7 years ago
M
Q
P