FluxUI Design Lab
Interactive design-engineering studio built on Laravel 13 and Livewire 4 that lets developers customize Flux UI tokens, synthesize 11-step neutral ramps and contrast-safe dark schemes via OKLCH math, import daisyUI themes, and export production Tailwind v4 CSS.
01 // Problem Space & Architecture & Delivery
The Challenge
Crafting cohesive custom themes for Flux UI and Tailwind CSS v4 requires balancing accent tokens, 11 neutral zinc steps (50–950), corner radii, and accessible dark-mode contrast without forcing users to create accounts or store state in a database.
What We Built
Built a stateless, zero-database theme studio powered by a pure-PHP OKLCH perceptual color engine, automatic contrast-checked dark-mode synthesis, compressed ?theme=... shareable URLs, private browser localStorage bookmarks, live multi-tab component previews, and an Artisan theme:export CLI.
02 // Architecture & Engineering Highlights
Technical Deep DivePure-PHP OKLCH Perceptual Color Engine
ARCH-01Custom Color, Palette, DarkScheme, and ThemeScheme domain classes calibrated to Tailwind CSS v4 lightness curves for one-click neutral ramp tinting and contrast-verified dark inversion.
Zero-Database Stateless URL Codec
ARCH-02Compact ThemeCodec serialization encoding complete token states into shareable ?theme=... query parameters paired with private browser localStorage bookmarks.
daisyUI Interoperability & CSS Compiler
ARCH-03DaisyThemeMapper translates external palettes cleanly into Flux UI tokens with explicit drop reporting, while ThemeCompiler outputs ready-to-paste @theme CSS blocks.
Strict Engineering Quality & CLI Tooling
ARCH-04Engineered on Laravel 13 and Livewire 4 with PHPStan Level 7 static analysis, PHPUnit 12 test coverage, Pint formatting, and a php artisan theme:export command.