Skip to content

Interface: TextColorOptions ​

Options for textColor().

Properties ​

PropertyTypeDescription
background?stringBackground the text is read on, for the contrast check (hex). Default '#ffffff'. A colour under 4.5:1 (WCAG AA) logs a warning while you develop. var() colours are not checked.
colorsreadonly ColorOption[]The colours the user can choose. Text without a colour uses the editor's own.