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.
- Composer (CLI)
- Control Panel
Run these commands in your terminal. Recommended
Open your Craft project
cd /path/to/project
Get darkMode
- Latest Version
- Specific Version
composer require solspace/craft-dark-mode -w
composer require solspace/craft-dark-mode:1.1.0 -w
Install darkMode
- CLI
- Control Panel
php craft plugin/install darkmode
To finish installation in the Craft control panel:
- Go to Settings → Plugins.
- Open darkMode’s action menu.
- Choose Install.
Find darkMode
Open the Plugin Store in your Craft control panel and search for darkMode by Solspace.
Install the plugin
Open darkMode’s product page and click Install.
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.
- Craft Update (CLI)
- Composer (CLI)
- Control Panel
Use Craft’s update command. Recommended
Open your Craft project
cd /path/to/project
Check for updates
php craft update
Update darkMode
- Latest Version
- Specific Version
php craft update darkmode
php craft update darkmode:1.1.0
Use Composer to update darkMode within the version allowed by your project.
Update composer.json
- Latest Versions
- Locked Versions
Use ^1.0.0 to allow updates within darkMode 1.x:
{
"require": {
"craftcms/cms": "^5.0.0",
"solspace/craft-dark-mode": "^1.0.0"
}
}
If your project uses an exact version, change it to the release you want to install:
"require": {
"craftcms/cms": "^5.0.0",
- "solspace/craft-dark-mode": "1.0.0"
+ "solspace/craft-dark-mode": "1.1.0"
}
Open your Craft project
cd /path/to/project
Get updates
composer update solspace/craft-dark-mode --with-dependencies
Check for updates
Open Utilities → Updates in the Craft control panel and review the available darkMode update.
Run the update
Click Update for darkMode and follow Craft’s prompts to finish the update.
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.
- CLI
- Control Panel
Open your Craft project
cd /path/to/project
Disable darkMode
php craft plugin/disable darkmode
Go to Settings → Plugins.
Click the Cog button for darkMode.
Select Disable.
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.
- CLI
- Control Panel
Open your Craft project
cd /path/to/project
Uninstall darkMode
php craft plugin/uninstall darkmode
Remove the package
After uninstalling the plugin:
composer remove solspace/craft-dark-mode
Uninstall darkMode
Go to Settings → Plugins, open darkMode’s action menu, and choose Uninstall.
Remove the package
From your Craft project directory:
composer remove solspace/craft-dark-mode
To reinstall, follow the installation steps above. For help, contact Solspace Support.