Download the PHP package awcodes/dimmer without Composer
On this page you can find all versions of the php package awcodes/dimmer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download awcodes/dimmer
More information about awcodes/dimmer
Files in awcodes/dimmer
Package dimmer
Short Description Dimmer is a simple package to easily add a light/dark/system mode switcher to your Laravel app.
License MIT
Homepage https://github.com/awcodes/dimmer
Informations about the package dimmer
Dimmer
Dimmer is a simple package to easily add a light/dark/system mode switcher to your Laravel app.
Requirements
- Alpine JS
- Tailwind CSS
Installation
You can install the package via composer:
Next, you need to add the views to your tailwind.config.js
file:
Optionally (not recommended), you can publish the views using
You can also update the translations by publishing the lang files:
Usage
Just include the dimmer
component in your layout or anywhere you would to use it.
Forcing a default mode
Should you wish to force a default mode for when a user first visits the site, you can do so by setting the force-mode
attribute on the dimmer
component. Without this attribute set, the default mode will be determined by the user's system preferences.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Adam Weston
- All Contributors
License
The MIT License (MIT). Please see License File for more information.