Skip to main content
Version: 1.x

@microsoft/fast-components > isDark

isDark() function

Determines if a color should be considered Dark Mode

Signature:
export declare function isDark(color: Swatch): boolean;

Parameters

ParameterTypeDescription
colorSwatchThe color to check to mode of
Returns:

boolean

boolean