---
title: prefersDarkUserInterfaceStyle
framework: carplay
role: symbol
role_heading: Instance Property
path: carplay/cpinterfacecontroller/prefersdarkuserinterfacestyle
---

# prefersDarkUserInterfaceStyle

A Boolean value that determines whether the system draws the user interface in Dark Mode.

## Declaration

```swift
var prefersDarkUserInterfaceStyle: Bool { get set }
```

## Discussion

Discussion To adopt the dark user interface style, set this value to true before you provide the root template or push any templates. The default value is false, which allows templates to change between light and dark styles.

## See Also

### Configuring the Interface Controller

- [delegate](carplay/cpinterfacecontroller/delegate.md)
- [CPInterfaceControllerDelegate](carplay/cpinterfacecontrollerdelegate.md)
- [setRootTemplate(_:animated:completion:)](carplay/cpinterfacecontroller/setroottemplate(_:animated:completion:).md)
