Skip to content
🤔 Documentation issue? Report or edit

How to detect dark mode


This is the API of 1.0.2. 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: September 1, 2021
Back to top