定制 slym758/filacraft 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

slym758/filacraft

Composer 安装命令:

composer require slym758/filacraft

包简介

FilaCraft - A comprehensive Filament panel customization toolkit with theme presets, color palettes, fonts, density, table styles, card styles, and more.

README 文档

README

FilaCraft Banner

FilaCraft

The ultimate theming & customization toolkit for Filament admin panels.

Latest Version Total Downloads PHP 8.2+ Filament 4.x | 5.x License

About

FilaCraft transforms your Filament admin panel into a fully customizable, visually stunning experience. It provides a built-in theme customization page where each user can personalize their panel — from layout presets and color palettes to fonts, spacing, table styles, and more. All settings are persisted per user, so every team member gets their own look and feel.

Theme Presets

FilaCraft ships with 5 professionally designed theme presets, each with its own layout and aesthetic:

Akdeniz Ruhu
Akdeniz Ruhu
Soft pastel tones with rounded corners
Atlas
Atlas
Layered surfaces with premium elevation
Ege Esintisi
Ege Esintisi
Classic sidebar layout with clean lines
Gün Batımı
Gün Batımı
Warm sunset tones with expressive styling
Kutup Işığı
Kutup Işığı
Top navigation with frosted glass effect

Features

Theming & Layout

  • 5 Theme Presets — Each preset transforms the entire panel layout, sidebar, topbar, and overall aesthetic
  • Top Navigation Support — The "Kutup Işığı" preset automatically switches to a top navigation layout
  • Frosted Glass Effects — Backdrop blur and translucent surfaces for a modern look

Color & Typography

  • 13 Color Palettes — Turquoise, Ocean, Emerald, Violet, Rose, Amber, Indigo, Slate, Cyan, Fuchsia, Red, Lime, Sky
  • OKLCH Color Space — Every palette includes precise shade variations from 50 to 950
  • Google Fonts Integration — Pick any Google Font family; weights are loaded dynamically

UI Customization

  • Border Radius — Sharp, Small, Default, or Large
  • Density / Spacing — Compact, Default, or Comfortable
  • Table Styles — Default, Striped, Bordered, or Minimal
  • Card Styles — Default, Flat, Raised, or Bordered
  • Error Page Styles — Default, Minimal, Illustrated, or Gradient (for 403, 404, 500 pages)

Per-User Persistence

  • Settings stored in the database per user
  • Instant sync via localStorage for zero-latency UI updates
  • Automatic fallback to database when localStorage is empty

Developer Experience

  • One-command installer — Registers the plugin, publishes assets, runs migrations
  • Filament 4 & 5 compatible
  • Multi-language support — Turkish & English built-in
  • Zero configuration required — Works out of the box after install

Requirements

Requirement Version
PHP 8.2+
Laravel 11+
Filament 4.x or 5.x

Installation

1. Install via Composer

composer require slym758/filacraft

2. Run the installer

php artisan filacraft:install

The installer will automatically:

  1. Register FilaCraftPlugin in your AdminPanelProvider
  2. Add the required CSS import and @source directive to your theme file
  3. Publish custom error page views (403, 404, 500)
  4. Run the database migration to create the user_theme_settings table

3. Build your assets

npm run build

That's it — you're ready to go.

Usage

Once installed, a "Themes" menu item appears in the user menu (bottom-left corner of your panel). Clicking it opens the full customization page where users can:

  1. Select a theme preset — Preview and apply any of the 5 built-in themes
  2. Choose a primary color — Pick from 13 carefully crafted color palettes
  3. Set a font — Search and apply any Google Font
  4. Adjust border radius — From sharp edges to pill-shaped corners
  5. Control density — Compact, default, or comfortable spacing
  6. Style tables — Striped rows, bordered cells, or minimal headers
  7. Style cards — Flat, raised, or bordered sections
  8. Customize error pages — Choose from 4 different error page designs
  9. Switch language — Toggle between Turkish and English

All changes are applied instantly with no page reload and persisted to the database automatically.

How It Works

User selects theme → JavaScript applies CSS classes & data attributes → Settings saved to localStorage + database
                                                                          ↓
                                            Next page load → Read from localStorage (instant) → Fallback to DB API
  • CSS data attributes (data-radius, data-density, data-table-style, data-card-style) control styling
  • CSS custom properties set the primary color shades dynamically
  • Middleware handles layout switching (e.g., top navigation for Kutup Işığı)
  • Google Fonts are loaded dynamically via <link> injection

API Endpoints

FilaCraft exposes the following authenticated API routes:

Method Endpoint Description
GET /api/theme-settings Retrieve current user's settings
POST /api/theme-settings Save/update user's settings
DELETE /api/theme-settings Reset user's settings to default

Customization Options Reference

Theme Presets
Key Name Description
ege Ege Esintisi Classic sidebar layout, clean and minimal
akdeniz Akdeniz Ruhu Pastel tones, rounded corners, shadow effects
kutup Kutup Işığı Top navigation, gradient background, glass effect
atlas Atlas Layered surfaces, premium shadows, silk feel
gunbatimi Gün Batımı Warm color temperature, expressive borders
Color Palettes

turquoise · ocean · emerald · violet · rose · amber · indigo · slate · cyan · fuchsia · red · lime · sky

Border Radius
Key Style
sharp Minimal rounding (0.25rem)
small Subtle rounding (0.5–0.75rem)
default Standard rounding (1–2rem)
large Extra round / pill shapes (9999px)
Density
Key Style
compact Tight spacing, minimal padding
default Standard spacing
comfortable Extra breathing room
Table Styles
Key Style
default Standard table appearance
striped Alternating row backgrounds
bordered Visible cell borders
minimal Clean, borderless, uppercase headers
Card Styles
Key Style
default Standard card styling
flat No shadow, minimal look
raised Prominent shadow (elevated)
bordered Border-focused styling
Error Page Styles
Key Style
default Standard error design
minimal Clean, text-focused
illustrated Visual design with illustrations
gradient Gradient background effects

Database Structure

FilaCraft creates a single user_theme_settings table:

user_theme_settings
├── id
├── user_id (foreign key → users, unique, cascade on delete)
├── settings (JSON)
├── created_at
└── updated_at

The settings JSON stores all user preferences in a single field for efficient read/write operations.

Troubleshooting

Theme not applying after install?

Make sure you rebuilt your frontend assets:

npm run build

Plugin not registered?

The installer auto-registers the plugin, but you can also add it manually in your AdminPanelProvider:

use Slym758\FilaCraft\FilaCraftPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugins([
            FilaCraftPlugin::make(),
        ]);
}

Styles not loading?

Ensure your theme CSS file includes the FilaCraft import. The installer adds this automatically, but you can verify it exists in your resources/css/filament/admin/theme.css:

@import '/vendor/slym758/filacraft/resources/css/theme.css';
@source '/vendor/slym758/filacraft/resources/**/*.php';

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.

Built with care for the Filament community.

slym758/filacraft 适用场景与选型建议

slym758/filacraft 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 24 次下载、GitHub Stars 达 4, 最近一次更新时间为 2026 年 04 月 07 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「theme」 「laravel」 「admin-panel」 「customization」 「filament」 「filacraft」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 slym758/filacraft 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 slym758/filacraft 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 24
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 35
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-07