Skip to content
🤔 Documentation issue? Report or edit

How to detect dark mode


This is the API of 1.0.5. 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: November 16, 2021
Back to top