hueStep

Returns any numbered step, 1 to 10, of a colour's hue as CSS.

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

The highlight rings step through the scale this way, starting dark and coming back paler. With no colour, it returns the grey at that step.

#Signature

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

#Parameters

colour
A colour attribute value, or undefined for grey.
step
The step of the scale, 1 palest to 10 darkest.
fallback
The CSS to return for a literal.

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

Last updated