PHPackages                             hassandevtips/darktheme - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hassandevtips/darktheme

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hassandevtips/darktheme
=======================

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

v0.0.2(2y ago)39MITBlade

Since Apr 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/hassandevtips/darktheme)[ Packagist](https://packagist.org/packages/hassandevtips/darktheme)[ RSS](/packages/hassandevtips-darktheme/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Dark Theme Toggle For Bootstrap
===============================

[](#dark-theme-toggle-for-bootstrap)

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

Screenshots
-----------

[](#screenshots)

[![](https://camo.githubusercontent.com/35cc0865c61b24ec24c04288fe45b2ba508ae43b5d2b0d8c8a22deb935635f3c/68747470733a2f2f692e736e6970626f6172642e696f2f35455965324c2e6a7067)](https://i.snipboard.io/5EYe2L.jpg)

Installation
------------

[](#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-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
------------------

[](#publish-the-assets)

Run the following command to publish config file,

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

```

Configure Dark Mode On App
--------------------------

[](#configure-dark-mode-on-app)

Add following code in root blade file in header section.

```

```

Or Can Also Add A Blade Directive

```

 @darkmodetoggle

```

### License

[](#license)

The MIT License (MIT). Please see [License](LICENSE.md) File for more information

[![Buy Me A Coffee](https://camo.githubusercontent.com/af7c4175cb725540f9b150c8450be14b719748cbe0445c56e51c70bb51fad263/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d7265642e706e67)](https://buymeacoffee.com/hassandevtips)

Note
----

[](#note)

Dark Theme only works with Bootstrap 5x.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

749d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/42751c932e6cf2e7e21ebee47a08cb3f5904bedc11b07f23f881185ecbf23e42?d=identicon)[hassandevtips](/maintainers/hassandevtips)

---

Top Contributors

[![hassandevtips](https://avatars.githubusercontent.com/u/43532954?v=4)](https://github.com/hassandevtips "hassandevtips (10 commits)")

### Embed Badge

![Health badge](/badges/hassandevtips-darktheme/health.svg)

```
[![Health](https://phpackages.com/badges/hassandevtips-darktheme/health.svg)](https://phpackages.com/packages/hassandevtips-darktheme)
```

###  Alternatives

[mglaman/composer-drupal-lenient

1317.4M15](/packages/mglaman-composer-drupal-lenient)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
