Search results

41 packages found

A utility library for calculating luminance, contrast ratio, and appropriate contrast colors to ensure web accessibility.

published version 1.1.0, 9 months ago0 dependents licensed under $MIT
21,071

APCA: the Accessible Perceptual Contrast Algorithm, a modern contrast method that improves readability contrast on self-illuminated displays. Developed for the W3C's WCAG 3 and other standards.

published version 0.1.9, 3 years ago20 dependents licensed under $Limited W3 License
103,359

Calculate contrast ratio between two CSS color strings.

published version 0.2.1, 6 years ago9 dependents licensed under $GPL-3.0
6,654

The Color Contrast Finder is a library that automatically selects text colors that contrast with a given color.

published version 1.0.4, 18 days ago0 dependents licensed under $MIT
3,895

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

published version 0.3.1, 6 years ago4 dependents licensed under $GPL-3.0
1,609

Calculate theme contrast based on canvas image data

published version 1.2.95, a month ago0 dependents licensed under $MIT
418

A package based on WCAG 2.0 to easily check contrast ratio.

published version 1.1.7, 2 years ago0 dependents licensed under $MIT
737

Calculate theme contrast based on canvas image data

published version 1.2.92, a month ago0 dependents licensed under $MIT
143

SafeColor generates accessible colors that compiles with WCAG success criteria 1.4.3 (or any contrast ratio of your choice). It can generate either a random color that is contrast safe with a given color, or a consistent color for a given string.

published version 1.0.1, 6 years ago0 dependents licensed under $MIT
510

Library for converting colour codes and manipulating relative luminance and contrast ratio

published version 0.0.9, a year ago1 dependents licensed under $MIT
263

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

published version 1.0.8, 5 months ago5 dependents licensed under $MIT
2,796

helper function for WCAG contrast criterion

published version 0.1.6, 3 years ago0 dependents licensed under $MIT
15

calculate relative luminance

published version 2.0.1, 6 years ago6 dependents licensed under $BSD-2-Clause
369,570

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

published version 1.0.3, a year ago0 dependents licensed under $GPL-3.0
39

Color utilities

published version 1.4.9, 3 hours ago0 dependents licensed under $MIT
738

Detects if a hex color is dark or light. It is based on the w3 documentation for color luminance: https://www.w3.org/TR/WCAG20/#relativeluminancedef

published version 1.2.0, 7 years ago13 dependents licensed under $MIT
72,174

Relative luminance formula

published version 2.1.3, 11 days ago0 dependents licensed under $MIT
6,735

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

published version 0.2.1, 6 years ago0 dependents licensed under $GPL-3.0
30

Get relative luminance from a color string.

published version 1.0.0, 6 years ago2 dependents licensed under $GPL-3.0
7,643

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 version 0.0.1, 3 years ago0 dependents licensed under $AGPL v3
47