Skip to main content

Installation & Updates

​Requirements

Dark Mode 1.x requires:

  • Craft CMS 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.

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

​Installation

Install Dark Mode 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 Dark Mode

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

Install Dark Mode

php craft plugin/install dark-mode

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

Dark Mode 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 Dark Mode

php craft update dark-mode

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

​Disable Dark Mode

Disable Dark Mode 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 Dark Mode

php craft plugin/disable dark-mode

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

​Uninstall Dark Mode

Uninstalling Dark Mode 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 Dark Mode

php craft plugin/uninstall dark-mode
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.