Nocturnal Pajama Mutants

    112 packages found

    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 0.1.9 7 months ago
    M
    Q
    P

    Core module for image-filter

    published 2.0.2 6 years ago
    M
    Q
    P

    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 0.1.8 8 months 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 6 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 6 months ago
    M
    Q
    P

    Get relative luminance from a color string.

    published 1.0.0 3 years ago
    M
    Q
    P

    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 1.0.1 2 years ago
    M
    Q
    P

    根据图片平均色值生成文本最佳展示颜色

    published 2.2.0 a year ago
    M
    Q
    P

    Converts hex color to rgb and calculates appropriate corresponding foreground.

    published 2.2.0 8 years ago
    M
    Q
    P

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

    published 2.1.0 a year ago
    M
    Q
    P

    vivid colors that stick since 2018

    published 0.5.0 4 months ago
    M
    Q
    P

    Color combination contrast tester

    published 1.0.5 8 years ago
    M
    Q
    P

    Small library to apply a contrast transformation to a image

    published 1.0.0 6 years ago
    M
    Q
    P

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

    published 11.1.0 a year ago
    M
    Q
    P

    Usefull React hooks set

    published 1.0.6 a year ago
    M
    Q
    P

    Calculate contrast ratio between two CSS color strings.

    published 0.2.1 4 years ago
    M
    Q
    P

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

    published 2.0.0 4 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 2 years ago
    M
    Q
    P

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

    published 1.0.2 a year ago
    M
    Q
    P

    evaluate the wcag color contrast score for two colors

    published 3.0.0 3 years ago
    M
    Q
    P