Docs (4.0.0)
class UIColor method

text

Returns a new UIColor instance for a suitable text color (black or white).

text(): UIColor

Notes

Return value

A new instance of UIColor.

Example

// Using a suitable text color on the primary theme background color
ui.cell(
  {
    background: ui.color.PRIMARY_BG,
    textColor: ui.color.PRIMARY_BG.text()
  },
  // ...
)

Related