Skip to content
🤔 Documentation issue? Report or edit

How to detect dark mode

Info

This is the API of version alpha08. Newer versions may have a different one

Inside your composable you can use isSystemInDarkTheme to detect if the device is running in dark mode.

    val dark = isSystemInDarkTheme()

See also:


Last update: December 5, 2020