- What is awcodes/dimmer used for?
- awcodes/dimmer is a lightweight Composer package that adds a light, dark, or system mode switcher to a Laravel app. It is intended to be simple to install and easy to drop into a Livewire view. The package is from awcodes and focuses on a small, focused UI convenience rather than a full theming framework.
- How do I install awcodes/dimmer?
- Install it with Composer using the package name awcodes/dimmer, then follow the repository README for any required registration or view steps. Because the package is lightweight, setup is generally limited to pulling it in and wiring the switcher into your layout. Always check the README for the current install instructions.
- Does Dimmer support light, dark, and system modes?
- Yes. The package overview describes a light/dark/system mode switcher, so users can choose an explicit light or dark theme or defer to the operating system preference. That makes it suitable for apps that want to respect system-level appearance settings. Check the README for the exact persistence behavior.
- Is awcodes/dimmer a Filament plugin?
- The package is described as a lightweight Filament plugin from awcodes, and its overview also presents it as a simple light/dark/system mode switcher for Laravel. That means it is aimed at Filament or Livewire-based UI work rather than a standalone JavaScript theme library. Review the repository README to confirm the current Filament integration details.
- Which Laravel versions does awcodes/dimmer support?
- The provided context does not list explicit Laravel version constraints. Support is defined by the package composer.json requirements, so check the repository or Packagist listing before installing. That is the safest way to confirm compatibility with your Laravel and PHP versions.
- How do I add the Dimmer switcher to a Blade or Livewire view?
- The package is described as easy to drop into any Livewire view, so the typical approach is to place its switcher component or markup in your layout. Exact syntax depends on the package version and README instructions. Keep the switcher in a shared layout so the selected mode applies across pages.
- Can I customize how the light/dark/system switcher looks?
- The context emphasizes a simple, lightweight switcher rather than a heavily configurable theming system. You can generally style the surrounding markup with your own CSS or Tailwind classes. For published views or configuration options, check the README and package source.
- How should I test the dark mode switching in Laravel?
- Test that the switcher renders, that each mode updates the expected class or attribute on the page, and that the chosen mode persists where intended. If system mode is supported, verify behavior when the OS preference changes. Keep tests focused on the UI state rather than the package internals.
- Is awcodes/dimmer suitable for production?
- It is a small, focused package from awcodes, which makes it easy to audit and integrate. Production suitability depends on your Laravel/Filament version compatibility and whether the package is actively maintained for your stack. Check recent releases and issues before relying on it.
- What are alternatives to awcodes/dimmer?
- Alternatives include Laravel or Filament built-in dark mode features, Tailwind CSS dark mode classes with a small Livewire or Alpine.js toggle, or a custom theme switcher stored in localStorage. If you only need an overlay effect, plain CSS can also work. Dimmer is best when you want a minimal package instead of building the switcher yourself.