Skip to content

readableTextColor

readableTextColor(color): string

Defined in: theme.ts:84

The ink that reads on a given hex color — the SDK twin of the shell’s ReadableTextColor (mosaic-edge-serve/internal/theme/theme.go) and the TS resolver’s readableTextColor (mosaic/services/themeService.ts). Same perceived-luminance rule in all three places; change them together. Non-hex input returns light ink, matching both twins.

string

string