Pinion UI: Restyle an Entire Laravel App by Changing Two HTML Attributes

Last updated on by

Pinion UI: Restyle an Entire Laravel App by Changing Two HTML Attributes image

When a client asks for a different look — new colors, tighter spacing, a more corporate feel — the usual answer is to change code. You rewrite the templates yourself, or you hand the job to an AI agent and review a diff that touches every view in the project. Either way, a style decision turns into a code change, and the next restyle costs just as much.

Pinion UI is built on a simple position: a full restyle should be a job for attributes, not a rewrite. It is a free, MIT-licensed UI component library for Laravel that separates color and shape into two HTML attributes:

<html data-theme="finance" data-tune="corporate">

data-theme controls color. data-tune controls shape — spacing, border radius, type scale, shadows. The two axes are independent, so any theme works with any tune. With 39 themes, 11 tunes, and a light/dark pair for every theme, the same markup can take 858 different looks. Change one value and the whole app restyles at once, consistently, on every screen.

What a restyle actually involves

A real restyle is more than a new primary color. It is spacing, type scale, radius, and shadows, kept consistent across every page. That consistency is exactly what is hard to get from an AI agent: models handle intent well but drift on details, and each run lands somewhere slightly different. Pinion UI handles this part deterministically. Each theme is a complete, tuned palette; each tune is a coherent system of shape, spacing, and typography. The design decisions are made once, in the library, and applied uniformly.

(A live version of this comparison is on pinion-ui.dev — you can drag the divider yourself.)

Built on standard tools

Pinion UI is a plugin for the TALL stack — Tailwind, Alpine.js, Laravel, Livewire. It stands on two well-known pieces: daisyUI, used only for its color tokens, and Alpine.js for lightweight reactivity. It introduces no new abstraction on top of them. All 56 Blade components render plain, readable Tailwind classes:

<x-button color="primary" icon="rocket">Ship it</x-button>
<x-badge color="success">Active</x-badge>
<x-input label="Email" type="email" />
<x-rating :value="4" />

What lands in your repository is ordinary Blade and ordinary Tailwind. You can read it, debug it, and maintain it — including the parts an AI agent wrote for you.

Working with AI coding agents

Pinion UI is designed around a clear division of labor. The agent is good at understanding intent; the library is good at applying styles consistently, because the same attribute always produces the same result. Running php artisan ui:install --ai places an AGENTS.md file in your project, which gives a coding agent enough context to choose components and themes on its own — for example, picking data-theme="health" for a healthcare app without being told.

Two commands support this workflow. ui:lint checks generated Blade for classes outside the library's vocabulary, so agent output stays consistent. And ui:eject converts everything back to vanilla Tailwind whenever you want — there is no lock-in.

39 themes, ready to use

Themes are named after the domains they were designed for — payments, legal, education, health, kids, estate — alongside mood themes such as zen and vapor. In total: one brand default, 11 mood themes, 11 SaaS themes, and 16 industry themes. Every theme ships as a light/dark pair that follows prefers-color-scheme, so dark mode comes with the theme instead of being a separate project.

Getting started

Setup is two commands:

composer require sparrowhawk-labs/pinion-ui
php artisan ui:install --ai

The next time a project needs a different look, change the attribute instead of the code. All 858 combinations can be previewed live at pinion-ui.dev. Pinion UI is free and MIT-licensed, developed by Sparrowhawk Labs.

Akihiko Takai photo

Founder of Sparrowhawk Labs. Building Pinion UI — an open-source Blade UI library for Laravel.

Filed in:
Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.

image
Acquaint Softtech

Hire Laravel developers with AI expertise at $20/hr. Get started in 48 hours.

Visit Acquaint Softtech
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $9500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media

The latest

View all →
Building a Live Match Scoreboard With Laravel Reverb image

Building a Live Match Scoreboard With Laravel Reverb

Read article
BindWhen Container Attribute in Laravel 13.22 image

BindWhen Container Attribute in Laravel 13.22

Read article
Building and Deploying a Laravel App With Claude Code on Zerops image

Building and Deploying a Laravel App With Claude Code on Zerops

Read article
The first hands-on AI Developer Certification image

The first hands-on AI Developer Certification

Read article
Heimdall: A Minimum Age Policy for Your Composer Dependencies image

Heimdall: A Minimum Age Policy for Your Composer Dependencies

Read article
Laravel Announces the Founders Summit, a One-Day Event for Founders image

Laravel Announces the Founders Summit, a One-Day Event for Founders

Read article