Skip to content

Variable: textColor ​

ts
const textColor: (options) => Extension;

Text colour as a mark, from your palette. Stores { color: id }; renders <span data-color="id" style="color: …">.

Parameters ​

ParameterType
optionsTextColorOptions

Returns ​

Extension

Example ​

ts
textColor({
  colors: [
    { id: 'brand', label: 'Red', value: '#C00414' },
    { id: 'muted', label: 'Gray', value: '#475467' },
  ],
})