https://github.com/ezitisitis/laravel-dark-theme-switcher
Switcher between light and dark themes for Laravel
https://github.com/ezitisitis/laravel-dark-theme-switcher
Last synced: 12 months ago
JSON representation
Switcher between light and dark themes for Laravel
- Host: GitHub
- URL: https://github.com/ezitisitis/laravel-dark-theme-switcher
- Owner: ezitisitis
- License: mit
- Created: 2024-11-30T07:08:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-03T16:21:48.000Z (over 1 year ago)
- Last Synced: 2025-04-06T18:47:29.466Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Dark Theme Switcher for Laravel
[](https://packagist.org/packages/ezitisitis/laravel-dark-theme-switcher)
[](https://github.com/ezitisitis/laravel-dark-theme-switcher/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/ezitisitis/laravel-dark-theme-switcher/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[](https://packagist.org/packages/ezitisitis/laravel-dark-theme-switcher)
This package is made to provide good UX for theme switching and simplicity in implementation.
## Support us
If you are using this package for commercial use, that would be highly appreciated to support through [GitHub Sponsor](https://github.com/sponsors/ezitisitis)
program, as developing even small packages requires time and effort, while saving your precious time.
## Installation
You can install the package via composer:
```bash
composer require ezitisitis/laravel-dark-theme-switcher
```
Include next components in your layout to add the switching script and switch itself.
1. In the `` place next component:
```php
```
2. Add switch component somewhere in the ``:
```php
```
3. Add next code to your `app.js`
```js
import '../../vendor/ezitisitis/laravel-dark-theme-switcher/resources/js/themeSwitch.js';
```
## Configuration
You can publish the config file with:
```bash
php artisan vendor:publish --tag=dark-theme-switcher-config
```
Optionally, you can publish the views using
```bash
php artisan vendor:publish --tag=dark-theme-switcher-views
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Credits
- [Marks Bogdanovs](https://www.ezitisitis.com/)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.