UNPKG

@fluentui/react

Version:

Reusable React components for building web experiences.

9 lines (8 loc) 406 B
import type { IRGB } from './interfaces'; /** * Converts a valid CSS color string to an RGB color. * Note that hex colors *must* be prefixed with # to be considered valid. * Alpha in returned color defaults to 100. * Four and eight digit hex values (with alpha) are supported if the current browser supports them. */ export declare function cssColor(color?: string, doc?: Document): IRGB | undefined;