Skip to content

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

License

Notifications You must be signed in to change notification settings

hassandevtips/darktheme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dark Theme Toggle For Bootstrap

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published