nehalpatel/filament-compact-theme
Composer 安装命令:
composer require nehalpatel/filament-compact-theme
包简介
Reusable compact dark-first Filament v5 admin theme (Tailwind CSS, CSS hooks)
README 文档
README
Reusable Filament v5 admin theme: compact, dark-first, flat surfaces, blue accent. Built with the official custom-theme flow (Tailwind CSS + fi-* hooks).
Requirements
- PHP 8.2+
- Laravel 12+
- Filament 5.x
- Vite +
@tailwindcss/vite(Tailwind v4), as used by Filament’s theme scaffold
Install in a Laravel app
1. Require the package
From Packagist (after publishing) or VCS:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/NehalPatel/filament-compact-theme.git"
}
],
"require": {
"nehalpatel/filament-compact-theme": "^1.0"
}
}
Local development (path repository) — set url to the folder that contains this package’s composer.json (the root of a clone of this repository):
{
"repositories": [
{
"type": "path",
"url": "../path/to/filament-compact-theme",
"options": { "symlink": true }
}
],
"require": {
"nehalpatel/filament-compact-theme": "@dev"
}
}
Then:
composer update nehalpatel/filament-compact-theme
2. Register Vite entry
In vite.config.js, add the package stylesheet to Laravel Vite input:
import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; import tailwindcss from '@tailwindcss/vite'; export default defineConfig({ // If you use a Composer path repository (symlink to `packages/...`), keep manifest keys under `vendor/...`: resolve: { preserveSymlinks: true }, plugins: [ laravel({ input: [ 'resources/css/app.css', 'resources/js/app.js', 'vendor/nehalpatel/filament-compact-theme/resources/css/theme.css', ], refresh: true, }), tailwindcss(), ], });
Or keep the string in sync with FilamentCompactTheme::viteEntry() from PHP.
3. Point your Filament panel at the theme
In your panel provider (e.g. AdminPanelProvider):
use NehalPatel\FilamentCompactTheme\FilamentCompactTheme; $panel ->viteTheme(FilamentCompactTheme::viteEntry());
4. Panel styling (colors, font, density toggles)
This package only ships CSS. Set ->colors(), ->font(), ->defaultThemeMode(), ->sidebarWidth(), ->globalSearch(), etc. in your own panel provider as needed.
5. Build assets
npm run build
Optional publish
To copy the raw CSS into your app (e.g. to fork it):
php artisan vendor:publish --tag=filament-compact-theme
This writes to resources/css/filament/admin/theme.publish.css. Switch your Vite input and viteTheme() to that file if you use it.
License
MIT.
nehalpatel/filament-compact-theme 适用场景与选型建议
nehalpatel/filament-compact-theme 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 nehalpatel/filament-compact-theme 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nehalpatel/filament-compact-theme 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 41
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-12