定制 hassandevtips/darktheme 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hassandevtips/darktheme

最新稳定版本:v0.0.2

Composer 安装命令:

composer require hassandevtips/darktheme

包简介

DarkTheme - A simple Laravel package to enable dark mode using Bootstrap 5.

README 文档

README

A Simple Package to add dark mode toggle feature to Bootstrap 5x

Screenshots

Installation

Install the package by the following command, (try with --dev if you want to not install it on production environment)

composer require  hassandevtips/darktheme

Add Provider (Optional)

Add the provider to your config/app.php into provider section if using lower version of laravel,

Hassandevtips\DarkTheme\Providers\DarkThemeProvider::class,

Publish the Assets

Run the following command to publish config file,

php artisan vendor:publish --tag=dark-theme-assets

Configure Dark Mode On App

Add following code in root blade file in header section.

<!-- Dark Mode Toggle -->
<x-darktheme::dark-mode-toggle />

Or Can Also Add A Blade Directive

 <!-- Dark Mode Toggle -->
 @darkmodetoggle

License

The MIT License (MIT). Please see License File for more information

Buy Me A Coffee

Note

Dark Theme only works with Bootstrap 5x.

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-29