import * as a11yColorContrast from "https://deno.land/x/a11y_color_contrast@v0.2.0/apca_tables.ts";
Functions
From a Lc value, interpolate and calculate the approriate font sizes. | |
With a given Lc value, a list or a specific font size and if desired the font weights considered, does the Lc value satisfy the required minimum Lc value for the font. | |
A utility function for looking up the contrast data for a font size. | |
A utility function for looking what font sizes work for a specific, supported contrast. |
Type Aliases
Value for a specific font size with its corresponding font weights and ratings. | |
Modifiers for a Lc rating: | |
The Lc rating of a contrast value: |