---
id: fast-foundation.darkmodestylesheetbehavior
title: darkModeStylesheetBehavior variable
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [darkModeStylesheetBehavior](./fast-foundation.darkmodestylesheetbehavior.md)

## darkModeStylesheetBehavior variable

This can be used to construct a behavior to apply a prefers color scheme: dark only stylesheet.

<b>Signature:</b>

```typescript
darkModeStylesheetBehavior: (styles: ElementStyles) => MatchMediaStyleSheetBehavior
```