Ideas by Idean
Published in

Ideas by Idean

How to implement a dark theme on Android

Illustration from idean.com

1. Declare dependencies

2. Inherit from a DayNight theme

3. Use theme attributes for colors

FloatingActionButton in a light theme
FloatingActionButton in a dark theme

4. Allow users to change the app’s theme

5. Run your app

--

--

A collaborative collection of stories and musings from us, a global design studio

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store