lookColourCss

One value's colour as CSS: a name or a literal through the palette, a ramp's { apply } finished at its place, fallback for anything else.

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

#Signature

(value: unknown, fallback: string): string

#Parameters

value
One look, as a style attribute's expression evaluates to.
fallback
The CSS where the value gives no colour.

Declared in packages/canvas-sdk/src/data/item-looks.ts:158.

Last updated