import * as a11yColorContrast from "https://deno.land/x/a11y_color_contrast@v0.2.0/apca.ts";
Functions
This function calculates the contrast value between two colors based on WCAG contrast readability criteria. The first color is the foreground color and the second the background color (defaulting to pure white, "#fff" / [255, 255, 255]). | |