---
id: fast-components.isdark
title: isDark() function
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-components](./fast-components.md) &gt; [isDark](./fast-components.isdark.md)

## isDark() function

Determines if a color should be considered Dark Mode

<b>Signature:</b>

```typescript
export declare function isDark(color: Swatch): boolean;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  color | [Swatch](./fast-components.swatch.md) | The color to check to mode of |

<b>Returns:</b>

boolean

boolean
