Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codewithdennis/filament-theme-inspector
Easily see the fi- class of any element on the page by hovering over it. A tooltip displays the class name, and you can copy it with a click!
https://github.com/codewithdennis/filament-theme-inspector
custom-theme filament filamentphp laravel php plugin theme
Last synced: 1 day ago
JSON representation
Easily see the fi- class of any element on the page by hovering over it. A tooltip displays the class name, and you can copy it with a click!
- Host: GitHub
- URL: https://github.com/codewithdennis/filament-theme-inspector
- Owner: CodeWithDennis
- License: mit
- Created: 2024-10-18T07:57:11.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-13T09:22:15.000Z (about 2 months ago)
- Last Synced: 2024-12-25T19:06:19.331Z (8 days ago)
- Topics: custom-theme, filament, filamentphp, laravel, php, plugin, theme
- Language: PHP
- Homepage:
- Size: 3.76 MB
- Stars: 47
- Watchers: 2
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# Filament Theme Inspector
[![Latest Version on Packagist](https://img.shields.io/packagist/v/codewithdennis/filament-theme-inspector.svg?style=flat-square)](https://packagist.org/packages/codewithdennis/filament-theme-inspector)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/codewithdennis/filament-theme-inspector/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/codewithdennis/filament-theme-inspector/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/codewithdennis/filament-theme-inspector/fix-php-code-styling.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/codewithdennis/filament-theme-inspector/actions?query=workflow%3A"Fix+PHP+code+styling"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/codewithdennis/filament-theme-inspector.svg?style=flat-square)](https://packagist.org/packages/codewithdennis/filament-theme-inspector)Easily see the fi- class of any element on the page by hovering over it. A tooltip displays the class name, and you can copy it with a click!
https://github.com/user-attachments/assets/d8ecbc95-cfbf-4340-8405-2814a03739c5
## Installation
You can install the package via composer:
```bash
composer require codewithdennis/filament-theme-inspector
```Make sure you clear the cache after installing the package.
```bash
php artisan filament:upgrade
```## Usage
Add the following plugin to your plugins method on your panel.
```php
use CodeWithDennis\FilamentThemeInspector\FilamentThemeInspectorPlugin;->plugins([
FilamentThemeInspectorPlugin::make()
->disabled(fn () => ! app()->hasDebugModeEnabled())
])
```### Freeze (Hold / Toggle)
By default, the freeze button (ALT or CMD) needs to be held down to freeze the tooltip in place. You can change this behavior to toggle by using the toggle method.```php
FilamentThemeInspectorPlugin::make()
->toggle(),
```## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [CodeWithDennis](https://github.com/CodeWithDennis)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.