hueText

Returns step 10 of a colour's hue as CSS, the text colour for a label on a hueTint background.

@internote/canvas-sdkFunction
On this page
import { hueText } from '@internote/canvas-sdk';

#Signature

(colour: string | undefined, fallback?: string): string

#Parameters

colour
A colour attribute value.
fallback
The CSS to return for a literal or an absent colour.

Declared in packages/canvas-sdk/src/paint/index.ts:118.

Last updated