Skip to main content
Version: v8

Dark Mode

Ionic makes it easy to change the palettes of your app, including supporting dark color schemes. Dark mode is a display setting that changes all of an app's views to a dark palette. It has system-wide support on iOS and Android, making it highly desirable for developers to add to their apps.

Enabling Dark Palette

There are three provided ways to enable the dark palette in an app: always, based on system settings, or by using a CSS class.

Always

The default palette provided with Ionic Framework is a light palette, consisting of a light background and dark text. However, the default palette can be changed to the dark palette by importing the following stylesheet in the appropriate files:

@import '@ionic/angular/css/palettes/dark.always.css';

This sets the application colors and stepped colors on the