Skip to main content

Installation & Updates

Requirements

darkMode 1.x requires:

  • Craft CMS 5.9 or later within 5.x
  • PHP 8.2 or later within PHP 8.x

Your site must also meet Craft 5’s system requirements. Use a current version of Chrome, Edge, Firefox, or Safari.

darkMode is free and open source. There are no paid editions or license purchases.

Installation

Install darkMode using Composer or the Craft Plugin Store.

Run these commands in your terminal. Recommended

1

Open your Craft project

cd /path/to/project
2

Get darkMode

composer require solspace/craft-dark-mode -w
3

Install darkMode

php craft plugin/install darkmode

Once installed, click the appearance icon beside your account avatar to choose Auto, Light, or Dark. There are no additional settings or build steps.

Updating

darkMode has no content tables or database migrations. You can update it using Craft’s updater, Composer, or the control panel.

Use Craft’s update command. Recommended

1

Open your Craft project

cd /path/to/project
2

Check for updates

php craft update
3

Update darkMode

php craft update darkmode

Check your team’s main screens after updating darkMode or another plugin. See Plugin Compatibility for supported versions.

Disable darkMode

Disable darkMode to temporarily turn it off for everyone without uninstalling it. To change only your own appearance, choose Light instead.

1

Open your Craft project

cd /path/to/project
2

Disable darkMode

php craft plugin/disable darkmode

To turn it back on, choose Enable from the same menu or run php craft plugin/enable darkmode.

Uninstall darkMode

Uninstalling darkMode returns Craft to its normal appearance. It does not affect your site’s content, and you can reinstall it at any time.

1

Open your Craft project

cd /path/to/project
2

Uninstall darkMode

php craft plugin/uninstall darkmode
3

Remove the package

After uninstalling the plugin:

composer remove solspace/craft-dark-mode

To reinstall, follow the installation steps above. For help, contact Solspace Support.