Skip to content

@fabwcie/free-drawing / utils/export / toDarkColor

Function: toDarkColor() ​

toDarkColor(color): string

Defined in: packages/free-drawing/src/utils/export.ts:77

Color of dark mode, as css filter invert(93%) hue-rotate(180deg): lightness inverted, hue kept

Parameters ​

color ​

string

any CSS color of a shape or background

Returns ​

string

#rrggbb color, rgba(...) when not opaque (alpha kept)