office-ui-fabric-react
Version:
Reusable React components for building experiences for Microsoft 365.
9 lines (8 loc) • 385 B
TypeScript
import { 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): IRGB | undefined;