Search results
98 packages found
React higher-order component to automatically enforce color accessibility
Color utilities and parsers
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.
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.
a vanilla js function that takes in an array of colors and returns the wcag contrast scors of all of their combinaations
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
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
- color-scheme-figma-plugin
- angular-color-generator
- angular-color-palette
- angular-color-scheme
- styling
- contrast
- angular-palette-generator
- angular-material
- angualr-material-custom-theme
- angualr-tailwind-custom-theme
Calculate the color in an array of colors that gives the highest contrast to another color.
test whether a color is dark or light
JavaScript module to use black or white font according to the given background color
A selection of a11y helpful functions for working with HEX colors.
JavaScript Library for Setting Text Color According to Background-Color
Evaluate if a to colors have sufficient contrast to pass WCAG requirements.
- wcag
- color
- contrast
- luminance
- contrast-ratio
- accessibility
- a11y
- relative-luminance
- color-contrast
- text-legibility
evaluate the wcag color contrast score for two colors
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
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
Utility functions for working with colors in adherence to WCAG 2.1 guidelines.
- wcag
- wcag-2.1
- accessibility
- accessible
- color
- colors
- contrast
- contrast-ratio
- luminance
- luminosity
- suggestion
- generator
Get relative luminance from a color string.
WCAG 2.0 AA contrast checker for DOM elements