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
| Parameter | Type |
|---|---|
options | TextColorOptions |
Returns
Example
ts
textColor({
colors: [
{ id: 'brand', label: 'Red', value: '#C00414' },
{ id: 'muted', label: 'Gray', value: '#475467' },
],
})