[go: up one dir, main page]

Search results

143 packages found

Convert colors between RGB, HEX, HSL, HWB, LAB, LCH, and more

published version 2.0.0, 6 years ago14 dependents licensed under $CC0-1.0
6,225,753

Modify colors using the color-mod() function in CSS

published version 4.1.1, a month ago38 dependents licensed under $CC0-1.0
6,199,042

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

published version 11.1.0, 3 years ago36 dependents licensed under $MIT
114,082

evaluate the wcag color contrast score for two colors

published version 3.0.0, 5 years ago131 dependents licensed under $BSD-2-Clause
206,306

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

published version 0.1.8, 2 years ago9 dependents licensed under $AGPL v3
56,387

Get the contrast ratio and WCAG score between common CSS color types.

published version 3.0.0, 4 years ago23 dependents licensed under $MIT
22,693

This is an accessibility validator based on WCAG 2.0 standard for checking the color contrast.

published version 2.1.0, 3 years ago18 dependents licensed under $Apache-2.0
40,363

Determines the best contrast color to use. Give it a background color and it returns a foreground color (black or white by default but customizable).

published version 1.0.1, 4 years ago7 dependents licensed under $ISC
27,115

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, 2 years ago15 dependents licensed under $Limited W3 License
44,126

A simple utility package for working with WCAG 2.2/3.0 color contrasts

published version 0.2.0, 2 years ago0 dependents licensed under $MIT
13,675

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

published version 1.1.0, 3 months ago0 dependents licensed under $MIT
14,924

Calculate contrast ratio between two CSS color strings.

published version 0.2.1, 5 years ago9 dependents licensed under $GPL-3.0
7,770

Get relative luminance from a color string.

published version 1.0.0, 5 years ago2 dependents licensed under $GPL-3.0
8,406

Elegant UI Kit and reusable components for building mobile-first, responsive webistes and web apps

published version 1.5.19, 8 months ago26 dependents licensed under $SEE LICENSE IN license.pdf
6,218

WCAG 2.0 AA contrast checker for DOM elements

published version 1.0.2, 7 years ago2 dependents licensed under $MIT
5,031

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

published version 1.0.2, 4 months ago0 dependents licensed under $MIT
6,327

Color Check is a very tine library for checking your foreground and backgorunds colors against the WCAG2 color compliance standard.

published version 0.0.2, 8 years ago2 dependents licensed under $MIT
4,577

Converts hex color to rgb and calculates appropriate corresponding foreground.

published version 2.2.0, 10 years ago2 dependents
2,795

Convert CSS color strings to RGBA and check whether they are light or dark

published version 2.0.0, 2 years ago0 dependents licensed under $MIT
2,985

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

published version 0.3.1, 5 years ago4 dependents licensed under $GPL-3.0
1,942