method EmailKit.prototype.paint
EmailKit.prototype.paint(
roles: { fg?: PaletteRole; bg?: PaletteRole; bd?: PaletteRole; extra?: string[]; },
css?: string
): string

Returns the class and style attributes of an element colored by roles: fg for its text, bg for its fill, bd for its border. The classes let the dark block recolor it; css is the rest of its style.

Parameters

roles: { fg?: PaletteRole; bg?: PaletteRole; bd?: PaletteRole; extra?: string[]; }
optional
css: string =

Return Type

string

Usage

import { EmailKit } from "api/mail/layout.ts";