hueStep
Returns any numbered step, 1 to 10, of a colour's hue as CSS.
@internote/canvas-sdkOn 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
colourA colour attribute value, or
undefined for grey.stepThe step of the scale, 1 palest to 10 darkest.
fallbackThe CSS to return for a literal.
Declared in packages/canvas-sdk/src/paint/index.ts:133.