hassandevtips / darktheme
DarkTheme - A simple Laravel package to enable dark mode using Bootstrap 5.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
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
Note
Dark Theme only works with Bootstrap 5x.