qalainau/bonsai-theme
Composer 安装命令:
composer require qalainau/bonsai-theme
包简介
High-density, compact UI theme for Filament v5
README 文档
README
High-density, compact UI theme for Filament v5.
Inspired by Japanese business applications (sales, inventory, order management) that prioritize information density, Bonsai Theme reduces padding, gaps, and font sizes across all Filament components to fit more data on screen.
Installation
composer require qalainau/bonsai-theme
Usage
Register the plugin in your panel provider:
use Qalainau\BonsaiTheme\BonsaiThemePlugin; public function panel(Panel $panel): Panel { return $panel // ... ->plugin(BonsaiThemePlugin::make()); }
No Tailwind build required. The theme ships as pre-compiled CSS and is loaded automatically.
Screenshots
Table List
Edit Form
Features
- Zero-gap form fields — No spacing between fields for maximum information density
- Compact inputs — Reduced padding (
2px 8px) and font size (13px) across all input types - Tight field labels — 12px labels with zero gap to input
- Solid input borders — 1px solid border, 4px radius, no box-shadow
- Borderless repeater table inputs — Inputs inside table repeaters have no border for a clean spreadsheet look
- Compact repeater tables — Minimal cell padding in table-layout repeaters
- Compact sections — Reduced padding (12px) in Section, Fieldset, and Tabs
- Dense tables — Minimal cell padding (
2px 4px), 11px uppercase headers, compact row height - Compact table chrome — Tight toolbar, filter panels, pagination, and indicators
- Small buttons & badges — Reduced padding and font size (badges: 11px)
- Compact sidebar — Tight nav items (
2px 6pxpadding), 13px font, uppercase group labels - Compact page headers — Reduced heading (18px) and subheading (13px) sizes
- Compact dropdowns — 13px font size in dropdown menus
- Compact modals — Reduced content padding (12px)
- Compact repeaters — Minimal gap and padding for inline editing
- Dark mode support — All overrides include dark mode variants
What It Changes
Form Fields
| Component | Default | Bonsai |
|---|---|---|
| Field gap | gap-6 |
0 |
| Input padding | py-1.5 px-3 |
py-0.125rem px-0.5rem |
| Input font | text-sm (14px) |
13px |
| Input border | ring-based | 1px solid, no shadow |
| Label font | text-sm |
12px |
| Label-to-input gap | gap-y-2 |
0 |
| Section content | p-6 |
0.75rem |
| Fieldset padding | p-6 |
0.75rem |
| Input border-radius | rounded-lg |
rounded (4px) |
Repeater Table
| Component | Default | Bonsai |
|---|---|---|
| Header padding | 8px 12px |
2px 6px |
| Cell padding | 4px 0 |
1px 2px |
| Compact header | — | 1px 4px |
| Compact cell | — | 0 1px |
| Input borders | visible | none |
Tables
| Component | Default | Bonsai |
|---|---|---|
| Column padding | py-4 px-3 |
2px 4px |
| Header padding | py-3.5 px-3 |
2px 4px |
| Header font | text-sm |
11px uppercase |
| Text column | text-sm |
13px |
| Toolbar padding | p-4 sm:px-6 |
4px 8px |
| Pagination | py-3 px-3 |
4px 8px |
| Container radius | rounded-xl |
rounded-md (6px) |
Global
| Component | Default | Bonsai |
|---|---|---|
| Base font | 14px | 13px |
| Page heading | 24px | 18px |
| Page subheading | 14px | 13px |
| Page content gap | gap-y-8 |
gap-y-2 |
| Button font | 14px | 13px |
| Badge font | — | 11px |
| Sidebar item | 8px padding |
2px 6px, 13px font |
| Dropdown items | 14px | 13px |
| Modal content | p-6 |
0.75rem |
Supported Filament Components
All standard Filament form fields and table columns are styled:
Form Fields: TextInput, Select (native & JS), Textarea, DatePicker, DateTimePicker, Toggle, Checkbox, Radio, ToggleButtons, CheckboxList, ColorPicker, TagsInput, Slider, KeyValue, RichEditor, MarkdownEditor, CodeEditor, FileUpload, Repeater (standard & table layout)
Table Columns: TextColumn, IconColumn, ColorColumn, ToggleColumn, CheckboxColumn, ImageColumn
Layout: Section, Fieldset, Tabs, Grid, Flex
Requirements
- PHP 8.2+
- Filament v5
- Laravel 13.x
License
MIT
qalainau/bonsai-theme 适用场景与选型建议
qalainau/bonsai-theme 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 226 次下载、GitHub Stars 达 3, 最近一次更新时间为 2026 年 05 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「theme」 「laravel」 「japanese」 「compact」 「bonsai」 「filament」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 qalainau/bonsai-theme 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 qalainau/bonsai-theme 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 qalainau/bonsai-theme 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Translate comments in laravel/laravel 5.* project to Japanese
A Bootstrap 4.x base theme for SilverStripe
Faker Japanese is a Faker provider that generates fake Japanese related data for you.
Translate your Japanese into Kansai dialect.
Lucency Theme
Just a little help for them. This is a Markdown dialect optimized for EPUB 3.
统计信息
- 总下载量: 226
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 38
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-01

