ezitisitis/laravel-dark-theme-switcher
最新稳定版本:v1.1.0
Composer 安装命令:
composer require ezitisitis/laravel-dark-theme-switcher
包简介
This is my package laravel-dark-theme-switcher
README 文档
README
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 program, as developing even small packages requires time and effort, while saving your precious time.
Installation
You can install the package via composer:
composer require ezitisitis/laravel-dark-theme-switcher
Include next components in your layout to add the switching script and switch itself.
- In the
<head>place next component:
<x-dark-theme-switcher::script/>
- Add switch component somewhere in the
<body>:
<x-dark-theme-switcher::/>
- Add next code to your
app.js
import '../../vendor/ezitisitis/laravel-dark-theme-switcher/resources/js/themeSwitch.js';
Configuration
You can publish the config file with:
php artisan vendor:publish --tag=dark-theme-switcher-config
Optionally, you can publish the views using
php artisan vendor:publish --tag=dark-theme-switcher-views
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 2.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-30