承接 qalainau/bonsai-theme 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Table List

Edit Form

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 6px padding), 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 qalainau/bonsai-theme 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 226
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 38
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 1
  • 开发语言: CSS

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-01