Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IReadable

Options for determining if a color is readable

Hierarchy

Index

Properties

Properties

Optional bgColor

bgColor: ColorMaster | TInput

The background color to contrast against

Optional level

level: "minimum" | "enhanced"

WCAG 2.0 level

  • minimum → AA rating
  • enhanced → AAA rating

Optional size

size: "body" | "large"

Text size

  • body → Regular typically 12pt/16px and not bold
  • large → Large is typically 14pt/18.66px or larger and bold OR 18pt/24px or larger and not bold